Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix note parsing for notes with n_namesz == (align * x + 1)
The saturating_sub(1) which omitted the trailing NUL from the parsed name &str wasn't being properly taken into account when moving the offset forward in the buffer. The subsequent alignment calculation would fix that up for us in the other cases (align * x + n where n > 1 && n < align), but the x + 1 case would end up with an offset exactly at the previous alignment boundary and thus not roll forward the correct alignment amount This fixes #35 on the v0.7 branch. It was already fixed on tip
- Loading branch information