mirror of https://git.musl-libc.org/git/musl
Browse Source
The original logic considered each byte until it either found a 0 value or a value >= 192. This means if a string segment contained any byte >= 192 it was interepretted as a compressed segment marker even if it wasn't in a position where it should be interpretted as such. The fix is to adjust dn_skipname to increment by each segments size rather than look at each character. This avoids misinterpretting string segment characters by not considering those bytes.master
committed by
Rich Felker
1 changed files with 5 additions and 2 deletions
Loading…
Reference in new issue