summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug79037.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mbstring/tests/bug79037.phpt')
-rw-r--r--ext/mbstring/tests/bug79037.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/mbstring/tests/bug79037.phpt b/ext/mbstring/tests/bug79037.phpt
new file mode 100644
index 0000000000..94ff01a4a1
--- /dev/null
+++ b/ext/mbstring/tests/bug79037.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #79037: global buffer-overflow in `mbfl_filt_conv_big5_wchar`
+--FILE--
+<?php
+
+var_dump(mb_convert_encoding("\x81\x3a", "UTF-8", "CP950"));
+
+?>
+--EXPECT--
+string(1) "?"