Skip to content

Commit

Permalink
Fix #78819: Heap Overflow in msg_send
Browse files Browse the repository at this point in the history
We need to use the proper type.

Closes GH-7386.
  • Loading branch information
cmb69 committed Aug 18, 2021
1 parent 0b7dffb commit 9494b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ PHP NEWS
- Standard:
. Fixed bug #71542 (disk_total_space does not work with relative paths). (cmb)

- SysVMsg:
. Fixed bug #78819 (Heap Overflow in msg_send). (cmb)

- XML:
. Fixed bug #81351 (xml_parse may fail, but has no error code). (cmb, Nikita)

Expand Down
2 changes: 1 addition & 1 deletion ext/sysvmsg/sysvmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ PHP_FUNCTION(msg_send)
sysvmsg_queue_t * mq = NULL;
struct php_msgbuf * messagebuffer = NULL; /* buffer to transmit */
int result;
int message_len = 0;
size_t message_len = 0;

RETVAL_FALSE;

Expand Down

0 comments on commit 9494b1c

Please sign in to comment.