Summary: | global-buffer-overflow in print_insn_score16 | ||
---|---|---|---|
Product: | binutils | Reporter: | Alexandre Adamski <aadamski> |
Component: | binutils | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nickc |
Priority: | P2 | ||
Version: | 2.29 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
testcase
report |
Description
Alexandre Adamski
2017-06-13 17:38:21 UTC
Created attachment 10098 [details]
testcase
Created attachment 10099 [details]
report
Additional Information: The command used was `objdump -D <file>`. The compilation flags used were `-g -O2 -fno-omit-frame-pointer -fsanitize=address -fno-sanitize-recover=undefined`. The configuration settings used were `--enable-targets=all --disable-shared`. The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e64519d1ed7fd8f990f05a5562d5b5c0c44b7d7e commit e64519d1ed7fd8f990f05a5562d5b5c0c44b7d7e Author: Nick Clifton <nickc@redhat.com> Date: Wed Jun 14 17:10:28 2017 +0100 Fix seg-fault when trying to disassemble a corrupt score binary. PR binutils/21576 * score7-dis.c (score_opcodes): Add sentinel. Hi Aadamski, Thanks for reporting this bug. This time it was a good old fashioned bug. The disassembler was expecting its opcode table to end with a NULL sentinel but it had been omitted from the table. I have checked in a patch to fix this. Cheers |