mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-18 23:07:56 -04:00
Checks to avoid null dereferences in NetworkServer
Various commands in NetworkServer require extra data. However, if the packet size is set to 0 for these, the code will skip over reading the data in and allocating memory. This results in null dereferences. This patch adds checks to the relevant commands to make sure they don't continue reading a null pointer.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f