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

And here is an interesting conversation when Binbin came to the Kvrocks community: https://github.com/apache/kvrocks/pull/1581#issuecomment-163...

* Me: @enjoy-binbin Out of curiosity, do you have a fuzzer to test out Kvrocks? Your recent great fixes seem like a combo rather than random findings :D

* Binbin: They were actually random findings.I may be sensitive to this, doing code review and found them (also based on my familiarity with redis)




Yeah some folks are built different. I’ve a colleague who once every few weeks opens random files and notices weird patterns, I’ve no idea how his mind works but boy does it work.


Why does the fix work like that - only checking for this one scenario when you decrement by type max? [1]

In Solidity, where it's a serious security risk, before the language performed overflow checks itself, library authors would perform the arithmetic operation and then e.g. check if the result is larger than the original value in the case of a positive subtrahend [2].

[1] https://github.com/apache/kvrocks/pull/1581/commits/dc5140dd...

[2] https://github.com/KingdomStudiosIO/contracts/blob/51873b574...




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

Search: