Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Feb 28, 2024
1 parent 495e99d commit 7f9feed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int checkELFheader(char *path, int type)
genLseek(fd, 0, SEEK_SET);
genRead(fd, boot_elf, sizeof(elf_header_t));
genClose(fd);
DPRINTF("%s: ELF magic %d\n", __FUNCTION__, eh->type);
DPRINTF("%s: ELF magic 0x%x, ELF ident 0x%x\n", __FUNCTION__, _lw((u32)&eh->ident), eh->type);
if ((_lw((u32)&eh->ident) != ELF_MAGIC) || eh->type != MAGICS[type])
goto error;

Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ static void Execute(char *pathin)
return;
}
IRXFound:

Check warning on line 2439 in src/main.c

View check run for this annotation

codefactor.io / CodeFactor

src/main.c#L2439

Buffer copy without checking size of input (CWE-120) (flawfinder7-sprintf)
p = strrchr(fullpath, '/');
p = strrchr(path, '/');
sprintf(mainMsg, LNG(confirm_irx_exec), '\n', (p!=NULL) ? p : "");
if (ynDialog(mainMsg)>0) {
int ret, id;
Expand Down

0 comments on commit 7f9feed

Please sign in to comment.