Closed
Description
Describe the bug
The subtraction at the below line is underflowing with a super large file.
sax-wasm/src/sax/grapheme_iterator.rs
Line 267 in e4ea343
To Reproduce
Steps to reproduce the behavior:
- Download and extract https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com/planet/replication/day/000/004/543.osc.gz
- Parse the file with the
OpenTag
event enabled. - Wait for crash.
Expected behavior
Underflow does not occur, file parses correctly.
Desktop (please complete the following information):
- OS: Linux
- Browser: Chromium 133.0.6943.98
Additional context
I am testing on a branch with #108 fixed by bumping the offset to 1024, and may be able to provide a smaller reproduction later.