summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-10-17 10:06:44 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-10-17 10:06:44 +0000
commit7d97e735892b478bde261c6a2f197c6deec1e18c (patch)
tree87f987f306336d001b66d2263b41abbd390f0b1b /lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py
parentbd31488083f3d3db2603464026853d528cfdc07e (diff)
downloadbcm5719-llvm-7d97e735892b478bde261c6a2f197c6deec1e18c.tar.gz
bcm5719-llvm-7d97e735892b478bde261c6a2f197c6deec1e18c.zip
[Object/ELF] - Check that e_shnum is null when e_shoff is.
Spec says (http://www.sco.com/developers/gabi/1998-04-29/ch4.eheader.html) : e_shnum This member holds the number of entries in the section header table. Thus the product of e_shentsize and e_shnum gives the section header table's size in bytes. If a file has no section header table, e_shnum holds the value zero. Revealed using "id_000037,sig_11,src_000015,op_havoc,rep_8" from PR30540 That was the reason of crash in lld on incorrect input file. Binary reduced using afl-min. Differential revision: https://reviews.llvm.org/D25090 llvm-svn: 284371
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud