summaryrefslogtreecommitdiff
path: root/crates/gipfel-wasm/build.sh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-28 09:23:55 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-28 10:35:03 +0100
commitcfe81453ee279fb4d6e2c5e47bdde312025ab021 (patch)
tree9bdecf3c6e00a4d60603f362f7df6b68d51c9edc /crates/gipfel-wasm/build.sh
parent8a4fea421c5a1701889b42bd5100d70999709c40 (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 'crates/gipfel-wasm/build.sh')
0 files changed, 0 insertions, 0 deletions