[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (bin
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148) |
Date: |
Fri, 28 Apr 2017 09:40:24 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21437
--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 10031
--> https://sourceware.org/bugzilla/attachment.cgi?id=10031&action=edit
Possible patch
Hi Brian,
Fascinating. I still cannot reproduce this failure, which leads me to
believe that it may very well be a clang/llvm bug. One obvious possibility for
this is that it may be miscompiling the test for buffer overflow just before
the read at line 10189. So please could you try out the uploaded patch and let
me know if it has any effect. All that the patch does is to rearrange the code
slightly and change the check to be a pointer comparison rather than an integer
comparison.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/21437] New: heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), brian.carpenter at gmail dot com, 2017/04/26
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), nickc at redhat dot com, 2017/04/27
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), brian.carpenter at gmail dot com, 2017/04/27
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), brian.carpenter at gmail dot com, 2017/04/27
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148),
nickc at redhat dot com <=
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), nickc at redhat dot com, 2017/04/28
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), cvs-commit at gcc dot gnu.org, 2017/04/28
- [Bug binutils/21437] heap-buffer-overflow in byte_get_little_endian (binutils/elfcomm.c:148), nickc at redhat dot com, 2017/04/28