`Parser3::parse` previously formed `buf + len` immediately, so passing a
negative `len` from the C API caused undefined pointer arithmetic. Add an
explicit `len < 0` check that returns `WeaselJson_REJECT` (and makes the
rejected state sticky) before any `buf + len` computation.
Also document the non-negative length precondition in the public header
and add a regression test.
Closes#24
andrew
merged commit 8d37b9b602 into main2026-06-22 18:53:22 +00:00
andrew
deleted branch weaselbot/issue-242026-06-22 18:53:22 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #24