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

@ -10,6 +10,10 @@
#include <pipewire/extensions/protocol-native.h>
#define MAX_DICT 1024
#define MAX_PARAM_INFO 128
#define MAX_PERMISSIONS 4096
#ifdef __cplusplus
extern "C" {
#endif