singhpratech commented on issue #51222:
URL: https://github.com/apache/arrow/issues/51222#issuecomment-5579337479

   The overflow is in `SliceBytesTransform::MaxCodeunits` 
(scalar_string_ascii.cc on main):
   `(opt.stop - opt.start + opt.step - 1) / opt.step` with the default `stop` of
   `numeric_limits<int64_t>::max()` wraps negative when `start > 0`, and that 
negative bound is what
   becomes "Negative buffer resize". #36575 fixed the same expression for 
`utf8_slice_codeunits`;
   the byte-slice transform still has the original form.
   


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