Arawoof06 opened a new pull request, #1247: URL: https://github.com/apache/arrow-java/pull/1247
## What's Changed `setBigEndian(int, byte[])` on `DecimalVector` and `Decimal256Vector` byte-swaps the value into the fixed-width slot with unchecked `MemoryUtil` writes and only checks the length afterwards, so a byte array longer than the type width overruns the slot into adjacent off-heap memory before the `IllegalArgumentException` fires. `setBigEndianSafe(int, long, ArrowBuf, int)` does the same write with no length check at all. This moves the length check ahead of the write and adds it to the safe variant, so oversized input is rejected before any memory is touched; valid lengths are unaffected. Closes #1246. -- 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]
