[jruby-joni] 127/194: CClassMBNot always succeeds for singlebyte
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:34 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 c423050e211389c0bcf873c004cf28cb110bcceb
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Tue Jan 9 18:03:39 2018 +0100
CClassMBNot always succeeds for singlebyte
---
src/org/joni/ByteCodeMachine.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/org/joni/ByteCodeMachine.java b/src/org/joni/ByteCodeMachine.java
index e3e2c7c..e4aa08a 100644
--- a/src/org/joni/ByteCodeMachine.java
+++ b/src/org/joni/ByteCodeMachine.java
@@ -358,7 +358,7 @@ class ByteCodeMachine extends StackMachine {
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;
+ case OPCode.CCLASS_MB_NOT: opCClassMBNotSb(); break;
case OPCode.CCLASS_MIX_NOT: opCClassMIXNot(); break;
case OPCode.ANYCHAR: opAnyCharSb(); break;
@@ -930,6 +930,14 @@ class ByteCodeMachine extends StackMachine {
sprev = sbegin; // break;
}
+ private void opCClassMBNotSb() {
+ if (s >= range) {opFail(); return;}
+ s++;
+ int tlen = code[ip++];
+ ip += tlen;
+ sprev = sbegin; // break;
+ }
+
private void opCClassMIXNot() {
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