Skip to content
Failed

Changes

Summary

  1. PositionChecks.c: Refactor small functions (commit: 7e8999d) (details)
  2. Server: Check for invalid floats in all packets (commit: 4b03847) (details)
Commit 7e8999d17dda8a12150f01b34d7891b2930cccf0 by 16738302+Haxk20
PositionChecks.c: Refactor small functions

- `inline`d small functions
- removed unnecessary if() statements
- added nan checks using asserts
(commit: 7e8999d)
The file was modified Source/Util/Checks/PositionChecks.c (diff)
Commit 4b03847eb3c3d040c589d1e5bfd727e0cf6b16e6 by 16738302+Haxk20
Server: Check for invalid floats in all packets

This adds checks for nan/inf in all instances where a float is read
from a packet, and drops it if an invalid value is found.

The vector3f_t check is located in a new file, VectorChecks.c.

Credits to burner (DavidCo113 <[email protected]>) for telling me about this.
(commit: 4b03847)
The file was modified Source/Util/CMakeLists.txt (diff)
The file was modified Source/Server/Packets/Grenade.c (diff)
The file was addedSource/Util/Checks/VectorChecks.c
The file was modified Source/Server/Packets/PositionData.c (diff)
The file was addedSource/Util/Checks/VectorChecks.h
The file was modified Source/Server/Packets/OrientationData.c (diff)