fix: security issues #192 #191 #190 #189 #188 #187

This commit is contained in:
2026-07-30 18:49:25 +02:00
parent e876055167
commit 80768d64d4
3 changed files with 77 additions and 2 deletions
+3
View File
@@ -11,6 +11,9 @@
/* Maximum allowed data payload size for receive_data (100 MB) */
#define MAX_DATA_PAYLOAD_SIZE (100ULL * 1024 * 1024)
/* Maximum chunk size (64 MB) — prevents unbounded allocation from the wire */
#define MAX_CHUNK_SIZE (64ULL * 1024 * 1024)
typedef struct ssl_st SSL;
typedef int Status;