]> git.ipfire.org Git - thirdparty/valgrind.git/commit
android: compute possible size of a symbol of unknown size
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 31 Oct 2017 16:30:14 +0000 (17:30 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 31 Oct 2017 17:00:38 +0000 (18:00 +0100)
commit0eea388934a228231843d8c13cfd99bb170074f1
tree5c8288fd68a60d4e7dccb735b1018100cf6446b7
parent2f9cceafa34e1df39ddc5fe431fdb5c3a984e402
android: compute possible size of a symbol of unknown size

Under specific circumstances, setting 2048 as a size of symbol of unknown
size causes that symbol crosses unmapped region. This further causes an
assertion in Valgrind.

Compute possible size by computing maximal size the symbol can have within
its section.

Patch by Tamara Vlahovic.
coregrind/m_debuginfo/readelf.c