Block a user
After WeaselJson_OVERFLOW, a following EOF call can return WeaselJson_OK for an incomplete document
Fix null pointers passed to memcmp/memcpy in skip_list
I missed that there was a downstream length comparison. First commit was fine. Please remove the last commit
make WeaselJson_OVERFLOW a terminal state like WeaselJson_REJECT
We should just have one "sticky status" and if it's non-zero return that. That way we don't need separate branches for rejected and overflowed
Fix null pointers passed to memcmp/memcpy in skip_list
If one of them is non-empty, this could compare them incorrectly
skip_list: addWrites passes null pointers to memcmp (undefined behavior) on every call
The skip_list is not shipped. It's test only. Let's fix it anyway though
Return 0 instead of -1 from hash_table getBytes()
hash_table implementation returns -1 from getBytes(), violating the API contract
hash_table implementation returns -1 from getBytes(), violating the API contract
Hash table is test only and does not satisfy the contract. It’s for comparing how fast point ops could be. Returning 0 for bytes used seems ok too
Add some basic CI using gitea actions
Add basic Gitea Actions CI workflow