guan404ming opened a new pull request, #376:
URL: https://github.com/apache/tvm-ffi/pull/376

   ## Why
   
   `ArrayObj::operator[]` and `ArrayObj::SetItem` were missing negative index 
validation, causing undefined behavior when accessing arrays with negative 
indices.
   
   ## How
   
   - Add `i < 0` check to `ArrayObj::operator[]` and `ArrayObj::SetItem` bounds 
validation
   - Add test case


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