Verify section table name size before strcmp.

If an elf file has a malformed section names, skip processing of the name.
Also, verify the return value of the allocations.

Bug: 24279745
Change-Id: Ic51bd9df7142bc599dc51bfdcab87ff20fe8a389
(cherry picked from commit 834ed932095aec986a8a86ba542fd19b12151aca)
1 file changed