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

   ### Rationale for this change
   
   Fix UB in `StructConverter::AppendValue()`, which reused a simdjson ondemand 
value after get(array) failed.
   
   See #55497.
   
   ### What changes are included in this PR?
   
   - Determine the JSON type before calling get() in BooleanConverter, 
TimestampConverter, and StructConverter.
   - Refactor GetJsonAs() and IsJsonNull() to avoid accessing a value after a 
failed typed access.
   
   ### Are these changes tested?
   
   Added a case matching the nested struct/object notation from the issue.
   
   ### Are there any user-facing changes?
   
   No.
   
   ### Was AI used for this PR?
   
   **PR code and description written by:**
   
   - [x] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [x] Human
   - [ ] AI
   - [ ] Not reviewed
   


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