Added some boundary checking to try to correct some vulns in the ELF parser