[jruby-joni] 274/279: fix word bound regression

Hideki Yamane henrich at moszumanska.debian.org
Mon Nov 16 11:27:51 UTC 2015


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 5a80b95c8cbc97cef8bef9c9a6a4989b65192af0
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Tue Oct 20 18:19:16 2015 +0200

    fix word bound regression
---
 src/org/joni/ByteCodeMachine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/joni/ByteCodeMachine.java b/src/org/joni/ByteCodeMachine.java
index 1514d08..d309860 100644
--- a/src/org/joni/ByteCodeMachine.java
+++ b/src/org/joni/ByteCodeMachine.java
@@ -1060,7 +1060,7 @@ class ByteCodeMachine extends StackMachine {
         if (s == str) {
             if (s >= range || !enc.isMbcWord(bytes, s, end)) {opFail(); return;}
         } else if (s == end) {
-            if (s >= range || !enc.isMbcWord(bytes, sprev, end)) {opFail(); return;}
+            if (sprev >= end || !enc.isMbcWord(bytes, sprev, end)) {opFail(); return;}
         } else {
             if (enc.isMbcWord(bytes, s, end) == enc.isMbcWord(bytes, sprev, end)) {opFail(); return;}
         }

-- 
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