github-advanced-security[bot] commented on code in PR #17616:
URL: https://github.com/apache/druid/pull/17616#discussion_r1909556721


##########
server/src/test/java/org/apache/druid/client/CachingClusteredClientTest.java:
##########
@@ -2567,37 +2567,15 @@
 
       List<SearchHit> values = new ArrayList<>();
       while (index < objects.length && !(objects[index] instanceof DateTime)) {
-        values.add(new SearchHit(dim, objects[index++].toString(), (Integer) 
objects[index++]));
+        values.add(new SearchHit(dim, objects[index].toString(), (Integer) 
objects[index + 1]));

Review Comment:
   ## Array index out of bounds
   
   This array access might be out of bounds, as the index might be equal to the 
array length.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/8647)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to