Skip to content

Commit 95c4564

Browse files
libnexnikic
authored andcommitted
Fixed bug #73473: Stack Buffer Overflow in msgfmt_parse_message
1 parent 9c5717d commit 95c4564

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ PHP NEWS
77
properties). (Laruence)
88
. Fixed misparsing of abstract unix domain socket names. (Sara)
99

10+
- Intl:
11+
. Fixed bug #73473 (Stack Buffer Overflow in msgfmt_parse_message). (libnex)
12+
1013
- Mbstring:
1114
. Add oniguruma upstream fix (CVE-2017-9224, CVE-2017-9226, CVE-2017-9227,
1215
CVE-2017-9228, CVE-2017-9229) (Remi, Mamoru TASAKA)

ext/intl/msgformat/msgformat_parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ PHP_FUNCTION( msgfmt_parse_message )
110110
RETURN_FALSE;
111111
}
112112

113+
INTL_CHECK_LOCALE_LEN(slocale_len);
113114
memset(mfo, 0, sizeof(*mfo));
114115
msgformat_data_init(&mfo->mf_data);
115116

0 commit comments

Comments
 (0)