[jruby-joni] 126/194: CClassMB should always fail for singlebyte

Hideki Yamane henrich at moszumanska.debian.org
Thu Feb 1 12:04:33 UTC 2018


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit 27088edc7b3ebab45610afe39b66dd09176c18ad
Author: lopex <lopx at gazeta.pl>
Date:   Tue Jan 9 14:17:31 2018 +0100

    CClassMB should always fail for singlebyte
---
 src/org/joni/ByteCodeMachine.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/org/joni/ByteCodeMachine.java b/src/org/joni/ByteCodeMachine.java
index 8e61512..e3e2c7c 100644
--- a/src/org/joni/ByteCodeMachine.java
+++ b/src/org/joni/ByteCodeMachine.java
@@ -355,7 +355,7 @@ class ByteCodeMachine extends StackMachine {
                 case OPCode.EXACTN_IC:                  opExactNIC();              continue;
 
                 case OPCode.CCLASS:                     opCClassSb();              break;
-                case OPCode.CCLASS_MB:                  opCClassMB();              break;
+                case OPCode.CCLASS_MB:                  opCClassMBSb();            break;
                 case OPCode.CCLASS_MIX:                 opCClassMIX();             break;
                 case OPCode.CCLASS_NOT:                 opCClassNotSb();           break;
                 case OPCode.CCLASS_MB_NOT:              opCClassMBNot();           break;
@@ -863,6 +863,10 @@ class ByteCodeMachine extends StackMachine {
         sprev = sbegin; // break;
     }
 
+    private void opCClassMBSb() {
+        opFail();
+    }
+
     private void opCClassMIX() {
         if (s >= range) {opFail(); return;}
         if (enc.isMbcHead(bytes, s, end)) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list