d00ca2e9b7
ehdr->e_shentshize and ehdr->e_shnum are both 16-bit unsigned integers and so their types get implicitly promoted to signed int automatically during the multiplication, they must be explicitly cast into a larger unsigned type, otherwise if the signed product is large enough the value is sign extended resulting in incorrect values. Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>