protocl-native: v0: Fix integer overflow to buffer overflow

Too many dict items could cause an integer overflow leading to a
stack-based buffer overflow.
This commit is contained in:
Demi Marie Obenour 2025-07-09 14:25:32 -04:00 committed by Wim Taymans
parent 9a66938283
commit adb3a55703
3 changed files with 12 additions and 4 deletions

View file

@ -15,10 +15,6 @@
#include "connection.h"
#define MAX_DICT 1024
#define MAX_PARAM_INFO 128
#define MAX_PERMISSIONS 4096
PW_LOG_TOPIC_EXTERN(mod_topic);
#define PW_LOG_TOPIC_DEFAULT mod_topic