Hacker News new | past | comments | ask | show | jobs | submit login

You can do the same thing using VLQ, with less wastage. Just scan for the next cleared high bit.



You can also construct malicious payloads which will DoS many implementations with architecture like that.


You can also trivially defend against that by having a max travel distance of, say, 4.


Exactly, so you arrived at the same conclusion - fixed distance so you can safely pick up stream at arbitrary position.


The difference is that the distance limits would be inherent to the codec itself, rather than taking up extra space in the data stream.


Is that guaranteed to catch all valid cases?




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: