More fixes for memory access errors when running readelf on fuzzed binaries.