Merge commit from fork

fix too short length guard
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2026-08-11 09:05:40 -03:00
commit 5cdb25f05a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -17049,7 +17049,7 @@ static int mg_tls_recv_record(struct mg_connection *c) {
msgsz = MG_LOAD_BE16(rio->buf + 3);
msg = rio->buf + 5;
if (msgsz < 16) {
if (msgsz < 17) {
mg_error(c, "wrong size");
return -1;
}
+1 -1
View File
@@ -559,7 +559,7 @@ static int mg_tls_recv_record(struct mg_connection *c) {
msgsz = MG_LOAD_BE16(rio->buf + 3);
msg = rio->buf + 5;
if (msgsz < 16) {
if (msgsz < 17) {
mg_error(c, "wrong size");
return -1;
}