com php-src: Fixed bug #73473: Stack Buffer Overflow in msgfmt_parse_message: NEWS ext/intl/msgformat/msgform at_parse.c
| From: | Nikita Popov | Date: | Fri, 02 Jun 2017 22:05:16 +0000 |
| Subject: | com php-src: Fixed bug #73473: Stack Buffer Overflow in msgfmt_parse_message: NEWS ext/intl/msgformat/msgform at_parse.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97991@lists.php.net to get a copy of this message | ||
Commit: 95c4564f939c916538579ef63602a3cd31941c51
Author: libnex <emmanuel.law@gmail.com> Mon, 29 May 2017 13:13:52 +0000
Committer: Nikita Popov <nikita.ppv@gmail.com> Sat, 3 Jun 2017 00:05:16 +0200
Parents: 9c5717d0decd56710129a5599fe5d38f82a7bab2
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=95c4564f939c916538579ef63602a3cd31941c51
Log:
Fixed bug #73473: Stack Buffer Overflow in msgfmt_parse_message
Bugs:
https://bugs.php.net/73473
Changed paths:
M NEWS
M ext/intl/msgformat/msgformat_parse.c
Diff:
diff --git a/NEWS b/NEWS
index 5f4a72e..eecf1e5 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@ PHP NEWS
properties). (Laruence)
. Fixed misparsing of abstract unix domain socket names. (Sara)
+- Intl:
+ . Fixed bug #73473 (Stack Buffer Overflow in msgfmt_parse_message). (libnex)
+
- Mbstring:
. Add oniguruma upstream fix (CVE-2017-9224, CVE-2017-9226, CVE-2017-9227,
CVE-2017-9228, CVE-2017-9229) (Remi, Mamoru TASAKA)
diff --git a/ext/intl/msgformat/msgformat_parse.c b/ext/intl/msgformat/msgformat_parse.c
index 3496339...8562a76 100644
--- a/ext/intl/msgformat/msgformat_parse.c
+++ b/ext/intl/msgformat/msgformat_parse.c
@@ -110,6 +110,7 @@ PHP_FUNCTION( msgfmt_parse_message )
RETURN_FALSE;
}
+ INTL_CHECK_LOCALE_LEN(slocale_len);
memset(mfo, 0, sizeof(*mfo));
msgformat_data_init(&mfo->mf_data);