Fix a problem in readelf where memcpy could be called with a NULL second argument.
authorNick Clifton <nickc@redhat.com>
Tue, 6 Sep 2016 14:42:12 +0000 (15:42 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 6 Sep 2016 14:42:12 +0000 (15:42 +0100)
commit21b65bac42c899df2049cdbd472b2e7242a40fbe
treea50524f920a87b6e7bbc70a136a9a666d620cb19
parentbf1865065f64af2f32798c0327143baf99634e8d
Fix a problem in readelf where memcpy could be called with a NULL second argument.

* readelf.c (request_dump_bynumber): Only call memcpy if
dump_sects is not NULL.
binutils/ChangeLog
binutils/readelf.c