More fixes for memory access violations triggered by running readelf on fuzzed binaries.