]> granicus.if.org Git - icu/commitdiff
ICU-13593 Fix heap-buffer-overflow in TestIDNAMonkeyTest
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 14 Jun 2018 23:12:42 +0000 (23:12 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 14 Jun 2018 23:12:42 +0000 (23:12 +0000)
X-SVN-Rev: 41526

icu4c/source/common/usprep.cpp

index cc8069dce8ba6ddf0d586ee9d50503290f1559e9..067ecfe7cfcb129ad001fc99bb32ada32d5ab7b7 100644 (file)
@@ -726,7 +726,7 @@ usprep_prepare(   const UStringPrepProfile* profile,
             ((result < _SPREP_TYPE_THRESHOLD) && (result & 0x01) /* first bit says it the code point is prohibited*/)
            ){
             *status = U_STRINGPREP_PROHIBITED_ERROR;
-            uprv_syntaxError(b1, b2Index-U16_LENGTH(ch), b2Len, parseError);
+            uprv_syntaxError(b2, b2Index-U16_LENGTH(ch), b2Len, parseError);
             return 0;
         }