Skip to content

Uninitilalized pointer passed into memcpy #673

@partimScurra

Description

@partimScurra

If len <= len1, buf1 remains unallocated and gets passed into memcpy:

rsync/checksum.c

Lines 369 to 376 in 321dd78

if (len > len1) {
if (buf1)
free(buf1);
buf1 = new_array(char, len+4);
len1 = len;
}
memcpy(buf1, buf, len);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions