jmestwa-coder commented on PR #50025:
URL: https://github.com/apache/arrow/pull/50025#issuecomment-4720456616

   @pitrou makes sense, truncated stats are spec-legal so throwing was wrong. 
reworked it to clamp every fixed-width memcpy/Float16 load in FormatStatValue 
to val.size(), so a short min/max is zero-padded instead of read past the 
buffer and nothing throws. the variable-length FLBA (decimal/string) and 
BYTE_ARRAY paths were already size-driven, so they're untouched.
   
   @wgtmac this also drops the partial required-length table you flagged. every 
read now bounds itself, so there's no half-covered enum check and the public 
signature stays the same. updated the test and the title/description to match.


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