-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic on invalid flatbuffers #99
Comments
First of all: we're extremely grateful that you are testing our library. How did you find the example? Did you use fuzzing? Regarding the bug: this doesn't look like something that should be an At some point I would like for either me or @kristoff3r to take a look in the internal history to see if there is any reason for it being there. I'm not expecting to find anything though and I think the resolution to the issue is too convert it to a suitable error no matter what we find. Unfortunately I'm on vacation without a computer right now, so I won't have time to create a PR until July. Perhaps Kris will have time in the coming week. If that doesn't work for you, also feel free to create one yourself and I will accept it. |
I would prefer if we keep this PR open until we've:
|
I can't address the 2nd item (imo it is not so relevant, anyways ^^), but 1 and 3 are in place on #100 |
I found out I brought my laptop anyways 😅 I checked the internal git history now and there is no good reason that this line was introduced. I am working on adding a test for this and similar cases. |
@jorgecarleitao I think #102 should address the issue. Let me know if it doesn't. Btw, how did you find the bug? |
Something along the lines of
i.e. permute random bytes from a valid file and confirm that we do not panic. |
@TethysSvensson , thanks a lot for the fast response and fix! |
Would it be possible to release a patch on 0.2 or 0.3? This is the last bit we need to claim a panic free read on IPC files in arrow2 :P |
@jorgecarleitao I'll get the docs PR merged and do a release tomorrow |
I am running a penetration test on arrow2 to ensure that we do not panic or abort on invalid data from flatbuffers, and I am hitting a panic here.
Somehow we are reaching this
expect
.How to reproduce it:
where
invalid.zip
is attached to this issue (it is not a zip file, but it makes github accept it).I am sorry I am not very familiar with planus to be able to reproduce this in a smaller example without arrow2. If you provide some guides I can try to do it.
invalid.zip
The text was updated successfully, but these errors were encountered: