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);
strcpy(entry->archive,archive);
strncpy(entry->archive,archive,strlen(archive)+1);

Check failure

Code scanning / CodeQL

Possibly wrong buffer size in string copy Critical

Potentially unsafe call to strncpy; third argument should be size of destination.

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

Check failure

Code scanning / CodeQL

Possibly wrong buffer size in string copy Critical

Potentially unsafe call to strncpy; third argument should be size of destination.

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

Check failure

Code scanning / CodeQL

Possibly wrong buffer size in string copy Critical

Potentially unsafe call to strncpy; third argument should be size of destination.
}

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