gimli-rs / gimli

A library for reading and writing the DWARF debugging format
https://docs.rs/gimli/
Apache License 2.0
846 stars 108 forks source link

read/cfi: add parse_encoded_value #725

Closed philipc closed 3 months ago

philipc commented 3 months ago

This directly parses an encoded value, instead of relying on parse_encoded_pointer to skip the pointer handling. This is preparation for changing parse_encoded_pointer to return a different address type.

Also add more validation for the FDE count encoding, since it seems like the right thing to do, but this could be removed again if it is a problem.