AynSiddiqui opened a new pull request, #1651:
URL: https://github.com/apache/arrow-go/pull/1651

   ### Rationale for this change
   Three paths in `ipc.NewFileReader` panic on malformed input instead of 
returning an error: unknown union mode, unknown TimeUnit, and an out-of-range 
dictionary compression offset (6 ClusterFuzz inputs from arrow-testing).
   
   ### What changes are included in this PR?
   - Return an error for unknown union modes in `concreteTypeFromFB`.
   - `unitFromFB` returns an error instead of panicking.
   - `readDictionary` recovers flatbuffer out-of-range panics, like 
`loadRecordBatch`.
   
   ### Are these changes tested?
   Yes: regression test runs the 6 fuzz inputs through `NewFileReader`, checks 
it returns an error, and checks nothing leaks (checked allocator; needs 
`ARROW_TEST_DATA`).
   
   ### Are there any user-facing changes?
   These three paths now return errors for the 6 inputs. No API changes.
   
   Fixes #1568
   


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