Skip to content

Commit 465b3ab

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #78819: Heap Overflow in msg_send
2 parents d71a0dc + 9494b1c commit 465b3ab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ PHP NEWS
1515
- Standard:
1616
. Fixed bug #71542 (disk_total_space does not work with relative paths). (cmb)
1717

18+
- SysVMsg:
19+
. Fixed bug #78819 (Heap Overflow in msg_send). (cmb)
20+
1821
- XML:
1922
. Fixed bug #81351 (xml_parse may fail, but has no error code). (cmb, Nikita)
2023

ext/sysvmsg/sysvmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ PHP_FUNCTION(msg_send)
368368
sysvmsg_queue_t * mq = NULL;
369369
struct php_msgbuf * messagebuffer = NULL; /* buffer to transmit */
370370
int result;
371-
int message_len = 0;
371+
size_t message_len = 0;
372372

373373
RETVAL_FALSE;
374374

0 commit comments

Comments
 (0)