Skip to content

Commit e018913

Browse files
committed
fix system.json
1 parent bb7af09 commit e018913

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

rules/system.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -477,19 +477,19 @@
477477
]},
478478

479479
{"name": "java.lang.StringCoding$StringDecoder","rules": [
480-
{"function": "char[]decode(byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-0"]},"polluted": [],"max": -2}
480+
{"function": "char[] decode(byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-0"]},"polluted": [],"max": -2}
481481
]},
482482

483483
{"name": "java.lang.StringCoding","rules": [
484-
{"function": "char[]decode(java.lang.String,byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-1"]},"polluted": [],"max": -2},
485-
{"function": "char[]decode(byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-0"]},"polluted": [],"max": -2},
486-
{"function": "char[]decode(java.nio.charset.Charset,byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-1"]},"polluted": [],"max": -2}
484+
{"function": "char[] decode(java.lang.String,byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-1"]},"polluted": [],"max": -2},
485+
{"function": "char[] decode(byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-0"]},"polluted": [],"max": -2},
486+
{"function": "char[] decode(java.nio.charset.Charset,byte[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-1"]},"polluted": [],"max": -2}
487487
]},
488488

489489
{"name": "java.lang.StringUTF16","rules": [
490-
{"function": "intcompress(char[],int,byte[],int,int)","type": "know","vul": "","actions": {"param-2<s>": ["param-0"]},"polluted": [],"max": -2},
491-
{"function": "voidputChar(byte[],int,int)","type": "know","vul": "","actions": {"param-2<s>": ["param-0"]},"polluted": [],"max": -2},
492-
{"function": "byte[]toBytes(char[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-0"]},"polluted": [],"max": -2}
490+
{"function": "int compress(char[],int,byte[],int,int)","type": "know","vul": "","actions": {"param-2<s>": ["param-0"]},"polluted": [],"max": -2},
491+
{"function": "void putChar(byte[],int,int)","type": "know","vul": "","actions": {"param-2<s>": ["param-0"]},"polluted": [],"max": -2},
492+
{"function": "byte[] toBytes(char[],int,int)","type": "know","vul": "","actions": {"return<s>": ["param-0"]},"polluted": [],"max": -2}
493493
]},
494494

495495
{"name": "com.alibaba.fastjson.JSONArray","rules": [
@@ -693,15 +693,15 @@
693693
]},
694694

695695
{"name": "com.itextpdf.text.pdf.ColumnText","rules": [
696-
{"function": "intgoComposite(boolean)","type": "ignore","vul": "","actions": {},"polluted": [],"max": -2}
696+
{"function": "int goComposite(boolean)","type": "ignore","vul": "","actions": {},"polluted": [],"max": -2}
697697
]},
698698

699699
{"name": "com.itextpdf.layout.renderer.TableRenderer","rules": [
700-
{"function": "com.itextpdf.layout.layout.LayoutResultlayout(com.itextpdf.layout.layout.LayoutContext)","type": "ignore","vul": "","actions": {},"polluted": [],"max": -2}
700+
{"function": "com.itextpdf.layout.layout.LayoutResult layout(com.itextpdf.layout.layout.LayoutContext)","type": "ignore","vul": "","actions": {},"polluted": [],"max": -2}
701701
]},
702702

703703
{"name": "com.itextpdf.text.pdf.codec.TIFFDirectory","rules": [
704-
{"function": "voidinitialize(com.itextpdf.text.pdf.RandomAccessFileOrArray)>","type": "ignore","vul": "","actions": {},"polluted": [],"max": -2}
704+
{"function": "void initialize(com.itextpdf.text.pdf.RandomAccessFileOrArray)>","type": "ignore","vul": "","actions": {},"polluted": [],"max": -2}
705705
]},
706706

707707
{"name": "com.ibm.db2.jcc.resources.T4Resources_no_NO","rules": [

src/main/java/tabby/core/container/RulesContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public TabbyRule.Rule getRule(String classname, String method, String subSignatu
7070
}
7171
}
7272

73-
if (ret != null && parameterSize > ret.getMax()) {
73+
if (ret != null && parameterSize >= ret.getMax()) {
7474
return ret;
7575
}
7676

0 commit comments

Comments
 (0)