mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
buffer overflow fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@932 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
95ce326e5b
commit
eba2af633f
3 changed files with 3 additions and 3 deletions
|
@ -1067,7 +1067,7 @@ static int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * r
|
|||
char * passed_p;
|
||||
|
||||
if (interpreter_type == INTERPRETER_AOUT) {
|
||||
sprintf(passed_fileno, "%d", bprm->fd);
|
||||
snprintf(passed_fileno, sizeof(passed_fileno), "%d", bprm->fd);
|
||||
passed_p = passed_fileno;
|
||||
|
||||
if (elf_interpreter) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue