-
Notifications
You must be signed in to change notification settings - Fork 159
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
Bad Inputs cause unhandled exceptions and permanent hang #196
Comments
@JlKmn thanks for this I will look at it & your pull request when I get chance. |
@milkshakeuk Great, once it is reviewed and merged I have deeper bugs of later Fuzzing Runs and fixes for them. I didn't want to have too much in one pull request. |
@JlKmn, I am currently working on porting the newer The current It's probably good to have these fixes in the Is that something you could do? |
@JlKmn I'm not 100% sure, I'm just writing the unit tests to finish the PR off.
whats the |
It's just to indicate that its python byte string output |
Description
These bugs were gathered while Fuzzing the parsing function with Sharpfuzz and AFL.
On bad inputs an HL7Exception should be thrown but other exceptions occur on some inputs.
Exceptions and Inputs
b""
b"MSH|0|||||||00|||2.7"
b"MSHH0\r"
b"MSH|0|||||||||||0"
b"MSH|^\x01\0|||||0||ACK^\|||2.2^0\r0|0|2^V~\\r0|0|00\r0)0"
b"MSH|0|0|0|0|0|0|0|20\x7f|0|0|2.7"
b"MSH|^|||||||^A|||2.2\r^AA"
Environmental Details
Additional context
The permanent hang would potentially be DoS exploitable depending on what context the library is used in.
I will create a pull request that fixes these bugs and adds them as tests.
The text was updated successfully, but these errors were encountered: