71e7f664187dc4a4f273edfddb9a766ed32a6f21
Ini::parse split the value using delimiter + 1, assuming the delimiter occupies a single byte. With a multi-byte UTF-8 delimiter this offset lands inside the delimiter character, and slicing the string there panics. Advance by the delimiter's actual UTF-8 length instead.
Description
My contributions to QEDK/configparser-rs: 3 commits, 1 merged PRs
118 KiB
0 Stars
1 Watchers
0 Forks
Languages
Rust
100%