QElfParser: double check section size before using it.
authorArvid E. Picciani <arvid.picciani@nokia.com>
Tue, 15 May 2012 10:29:53 +0000 (12:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 02:25:07 +0000 (04:25 +0200)
commitd5000e82e3d17532b76d5a69fd35ac4e8f3b9d18
treeec191f6791a81a7fc8000fd014c2cd9404fab133
parent7f3f3a0858ac743802b80cc5490747ae024b5574
QElfParser: double check section size before using it.

In rare cases, if the section is empty, we're reading the whole object
into memory because size -1 = UINT_MAX.

Change-Id: Ibf9a1534159ce626e4f2327536076d0cc1ebf0ba
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/plugin/qelfparser_p.cpp