mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
8d61322ca3
4788: Add size checks to CVariableInt::Pack and ::Unpack, refactoring r=def- a=Robyt3 - Refactor `CVariableInt::Pack` some more according to upstream: - avoid right shift of negative number - rewrite loop smarter - Add size parameters to `CVariableInt::Pack` and `CVariableInt::Unpack`. Adjust tests and add tests with too small buffer sizes. ## Checklist - [x] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [X] Written a unit test if it works standalone, system.c especially - [X] Considered possible null pointers and out of bounds array indexing - [X] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Robert Müller <robert.mueller@uni-siegen.de> Co-authored-by: Robert Müller <robytemueller@gmail.com> |
||
---|---|---|
.. | ||
client | ||
docs | ||
external | ||
server | ||
shared | ||
antibot.h | ||
client.h | ||
config.h | ||
console.h | ||
demo.h | ||
discord.h | ||
editor.h | ||
engine.h | ||
friends.h | ||
ghost.h | ||
graphics.h | ||
input.h | ||
kernel.h | ||
keys.h | ||
map.h | ||
masterserver.h | ||
message.h | ||
server.h | ||
serverbrowser.h | ||
sound.h | ||
sqlite.h | ||
steam.h | ||
storage.h | ||
textrender.h | ||
updater.h | ||
uuid.h | ||
warning.h |