chaokunyang opened a new pull request, #3884:
URL: https://github.com/apache/fory/pull/3884

   ## What changed
   
   - route tagged integer fields in the C++ struct batch reader through the 
checked local-offset decoder
   - preserve the existing fast path for ordinary varints
   - reject truncated signed and unsigned tagged fields in schema-consistent 
and exact-compatible modes
   
   ## Why
   
   The primitive struct batch reader used unchecked fixed-width loads for 
tagged integer fields. A truncated input could reach those loads before the 
declared buffer boundary was validated.
   
   ## Validation
   
   - `ENABLE_FORY_DEBUG_OUTPUT=1 bazel test 
//cpp/fory/serialization:struct_test 
--test_filter=StructComprehensiveTest.TaggedIntTruncationFails`
   - `ENABLE_FORY_DEBUG_OUTPUT=1 bazel test 
//cpp/fory/serialization:struct_test`
   


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