Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions async-toolkit/atools/lib/archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@
entry->uses=1;

entry->archive=leak_realloc(entry->archive,strlen(archive)+1);
strncpy(entry->archive,archive,strlen(archive)+1);
strcpy(entry->archive,archive);

Check failure

Code scanning / CodeQL

Unbounded write Critical

This 'call to strcpy' with input from
a command-line argument
may overflow the destination.

entry->member=leak_realloc(entry->member,strlen(member)+1);
strncpy(entry->member,member,strlen(member)+1);
strcpy(entry->member,member);

Check failure

Code scanning / CodeQL

Unbounded write Critical

This 'call to strcpy' with input from
a command-line argument
may overflow the destination.

entry->output=leak_realloc(entry->output,strlen(output)+1);
strncpy(entry->output,output,strlen(output)+1);
strcpy(entry->output,output);
}

int archive_extract(char *archive, char *member, char *output)
Expand Down
Loading