Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upstorage: Check sign of decoded varints #1800
Comments
beorn7
added
kind/enhancement
priority/P2
component/local storage
labels
Jul 8, 2016
beorn7
self-assigned this
Jul 8, 2016
beorn7
referenced this issue
Jul 8, 2016
Closed
Fatal Error : concurrent map read and map write #1786
beorn7
added a commit
that referenced
this issue
Apr 4, 2017
beorn7
referenced this issue
Apr 4, 2017
Merged
storage: Check for negative values from varint decoding #2576
beorn7
closed this
in
#2576
Apr 4, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
beorn7 commentedJul 8, 2016
When designing the checkpoint format, we used varints a lot, even for inherently unsigned ints (that should have used a uvarint). If the data is corrupted, negative values could be decoded, which will wreak havoc later (allocating buffers with negative size and such(. To avoid panics, we should catch that case.