提交 98fdc610 编写于 作者: W weijun

6954621: small error in 6948909

Reviewed-by: xuelei
上级 7b754dd5
...@@ -1486,7 +1486,7 @@ public class JarSigner { ...@@ -1486,7 +1486,7 @@ public class JarSigner {
for (int i=0; i<len; i++) { for (int i=0; i<len; i++) {
switch (bs[i]) { switch (bs[i]) {
case '\r': case '\r':
if (i < len && bs[i+1] == '\n') i++; if (i < len - 1 && bs[i+1] == '\n') i++;
// fallthrough // fallthrough
case '\n': case '\n':
if (newline) return i+1; //+1 to get length if (newline) return i+1; //+1 to get length
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册