This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Segmentation fault on invalid input #17
Comments
Crashes on Linux too. I used |
enolan
added a commit
to enolan/hs-asn1
that referenced
this issue
Jun 6, 2016
It's an integer overflow problem. I'll have a PR soon. |
enolan
added a commit
to enolan/hs-asn1
that referenced
this issue
Jun 7, 2016
Removes the potential for getBytes to segfault with negative lengths. That's what was happening in vincenthz#17.
enolan
added a commit
to enolan/hs-asn1
that referenced
this issue
Jun 7, 2016
I added 8a8d34b to make the parser solid, it doesn't actually require such a fine tuning anyway, but re-reading the source after many years, I don't understand why ensure is not doing its expected job. is there some fundamental integer overflow somewhere else than the ASN1 parser ? it seems to do the job to at least fall the parsing with a parsing error, not a segfault ! @enolan: please let me know if you want to add anything to the repo, I'll cut a release ASAP provided it's all working (confirmation of doing the right thing is good too) |
enolan
added a commit
to enolan/hs-asn1
that referenced
this issue
Jun 7, 2016
enolan
added a commit
to enolan/hs-asn1
that referenced
this issue
Jun 7, 2016
I think this has been fixed now |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Running the following program
on the attached file (data.txt) produces a segmentation fault on GHC 7.8.2 and 8.0.1 on Windows.
The text was updated successfully, but these errors were encountered: