google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.79k stars 346 forks source link

Fix bloaty error if zero-sized segment is at offset larger than file size #379

Closed kjteske closed 1 month ago

kjteske commented 4 months ago

https://github.com/google/bloaty/issues/378

google-cla[bot] commented 4 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

kjteske commented 4 months ago

I can add a test if this fix looks good.

kjteske commented 3 months ago

@haberman - any thoughts on this PR? I can look into adding a test if this makes sense and looks good.