File php-CVE-2016-7416.patch of Package php7.5285

X-Git-Url: http://72.52.91.13:8000/?p=php-src.git;a=blobdiff_plain;f=ext%2Fintl%2Fmsgformat%2Fmsgformat_format.c;h=cb74a3fb1bb547838b4c5f27a7a839fd42770544;hp=73fb5eeff665b2ffb0def5211d46745700234ba3;hb=92db16e456ed346d0526c840750213317ac0f067;hpb=0bfb970f43acd1e81d11be1154805f86655f15d5

diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c
index 73fb5ee..cb74a3f 100644
--- a/ext/intl/msgformat/msgformat_format.c
+++ b/ext/intl/msgformat/msgformat_format.c
@@ -116,6 +116,8 @@ PHP_FUNCTION( msgfmt_format_message )
 		RETURN_FALSE;
 	}
 
+	INTL_CHECK_LOCALE_LEN(slocale_len);
+
 	memset(mfo, 0, sizeof(*mfo));
 	msgformat_data_init(&mfo->mf_data);
 

openSUSE Build Service is sponsored by