[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/20499] gprof: segmentation fault on invalid symbol file
From: |
tobias at stoeckmann dot org |
Subject: |
[Bug binutils/20499] gprof: segmentation fault on invalid symbol file |
Date: |
Mon, 22 Aug 2016 16:30:45 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20499
--- Comment #3 from Tobias Stoeckmann <tobias at stoeckmann dot org> ---
It is possible to access uninitialized memory now.
Take this symbol file for example:
x
x
x
a t a
The variable "name" is malloc()ed, so the content cannot be guaranteed to be
nul-terminated after first iteration (scanf fails, of course). The current
implementation would call strlen() on it anyway, so this might -- in very rare
occassions -- lead to another segmentation fault due to going past the malloc
boundaries.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/20499] New: gprof: segmentation fault on invalid symbol file, tobias at stoeckmann dot org, 2016/08/21
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, cvs-commit at gcc dot gnu.org, 2016/08/22
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, nickc at redhat dot com, 2016/08/22
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file,
tobias at stoeckmann dot org <=
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, nickc at redhat dot com, 2016/08/22
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, tobias at stoeckmann dot org, 2016/08/22
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, nickc at redhat dot com, 2016/08/23
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, tobias at stoeckmann dot org, 2016/08/23
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, cvs-commit at gcc dot gnu.org, 2016/08/23
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, nickc at redhat dot com, 2016/08/23
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, tobias at stoeckmann dot org, 2016/08/23
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, nickc at redhat dot com, 2016/08/24
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, nickc at redhat dot com, 2016/08/24
- [Bug binutils/20499] gprof: segmentation fault on invalid symbol file, tobias at stoeckmann dot org, 2016/08/26