diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-28 09:23:55 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-28 10:34:53 +0100 |
| commit | f0cf0c3e95ca0518de754f7915458bd90e8abf32 (patch) | |
| tree | bbc1020e198487bef95d2cd07e10e92f03690ccd /wipfel-droid/gradle/wrapper | |
| parent | 11689fb14f3a4d0291e2ccc05d6cb3556e4ea1ab (diff) | |
core: guard atof prefix slicing against char boundaries
The longest-numeric-prefix fallback sliced s[..i] at every byte index,
which panics when i lands inside a multi-byte character (reachable via
lossy-decoded Latin-1 database fields, e.g. a trailing degree sign).
Skip non-boundary indices; behavior on ASCII numeric fields is
unchanged. Includes regression test atof("12.5 deg").
Diffstat (limited to 'wipfel-droid/gradle/wrapper')
0 files changed, 0 insertions, 0 deletions
