diff options
author | 2020-02-09 18:40:50 -0800 | |
---|---|---|
committer | 2020-02-09 18:40:50 -0800 | |
commit | 891450ddec92a972562d091bb637f9b167218740 (patch) | |
tree | b20a753aad510b841233691c129995baa0c6343e /projects/binutils | |
parent | 3f808990afc5cd988f08012da56b37eabd16cc37 (diff) |
Revert "Fix overflow in binutils fuzz target (#3363)" (#3364)
This reverts commit 3f808990afc5cd988f08012da56b37eabd16cc37.
Diffstat (limited to 'projects/binutils')
-rw-r--r-- | projects/binutils/fuzz_disassemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/binutils/fuzz_disassemble.c b/projects/binutils/fuzz_disassemble.c index e2d942da..aaf7564e 100644 --- a/projects/binutils/fuzz_disassemble.c +++ b/projects/binutils/fuzz_disassemble.c @@ -46,7 +46,7 @@ static int objdump_sprintf (void *vf, const char *format, ...) va_end (args); f->pos += n; //reset to keep just one line - if (f->pos != 0 && f->buffer[f->pos - 1] == '\n' && f->pos <= MAX_TEXT_SIZE) + if (f->pos != 0 && f->buffer[f->pos - 1] == '\n') f->pos = 0; return n; } |