suoyi123wang

Results 7 issues of suoyi123wang

### Describe the bug There is infinit loop in method `searchValueBlock` whose class is `io.questdb.cairo.BitmapIndexUtils` ### To reproduce Here is the test case: Here is the source code: And the...

Bug
Core

in method com.itextpdf.text.pdf.crypto.ARCFOUREncryption.prepareARCFOURKey The parameter len is used as a divisor, but it is not checked in advance whether it is zero, and it is likely to trigger ArithmeticException

for this toString method in picture below [ ![image](https://user-images.githubusercontent.com/44200574/137448733-782aa23d-875b-48ed-b742-d006881dfa59.png) ](url) when the type of first parameter is not Calendar or Date, there will be ClassCastException; So when cast to Date,...

the unit test case we generated failed: ![image](https://user-images.githubusercontent.com/44200574/143808535-ff7606df-bb7e-400c-b7d1-c0d0fe704f0d.png) ![image](https://user-images.githubusercontent.com/44200574/143808554-513fc957-4eb9-40b8-9b84-bd2e408547d7.png) maybe you should consider the case where the array is null.

if batchFileLine is empty, it will throw StringIndexOutOfBoundsException when calling substring(0,-1); [ ![image](https://user-images.githubusercontent.com/44200574/140014035-79eb0773-96eb-4cb5-8902-f1454946a6a9.png) ](url)

Judge the length of sqlState before using `String conditionClass = sqlState.substring(0, 2);` otherwise it will throw StringIndexOutOfBoundsException

The negativeArraySizeException in method `poll` of class `org.zeromq.ZMQ` occurred. Here is my test case: The source code is