AliRana30 opened a new pull request, #49105:
URL: https://github.com/apache/arrow/pull/49105

   ### Rationale for this change
   The `SparseCSFIndex::Equals` method lacks bounds checking when comparing two 
indices with different dimensions. This leads to out-of-bounds access and a 
segmentation fault.
   
   ### What changes are included in this PR?
   - Added size equality checks for `indices()` and `indptr()` vectors at the 
beginning of `SparseCSFIndex::Equals`.
   
   ### Are these changes tested?
   These are simple size checks that prevent out-of-bounds access. Manual 
verification confirms that comparing indices with different sizes will now 
correctly return `false` instead of crashing.
   
   ### Are there any user-facing changes?
   No, except that the code no longer crashes in this specific edge 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]

Reply via email to