Skip to content

Add changes to fix bad input from fuzzing, Fixes #210#217

Merged
milkshakeuk merged 3 commits intomasterfrom
FuzzBadInputFixes3
Jun 1, 2021
Merged

Add changes to fix bad input from fuzzing, Fixes #210#217
milkshakeuk merged 3 commits intomasterfrom
FuzzBadInputFixes3

Conversation

@milkshakeuk
Copy link
Member

@milkshakeuk milkshakeuk commented May 31, 2021

Fixes #210

  • Add new SupportClass.CharsAreUnique method
  • Add check for unique encoding characters in EncodingCharacters.cs (was causing Stack Overflow)
  • Add unit tests for changes plus additional Bad Input files to existing test
  • Add additional validation for EncodingCharacters.cs to prevent whitespace (and Null) characters being used as encoding characters or as the field Seperator (MSH-1) + unit tests.

image

* Add new SupportClass.CharsAreUnique method
* Add check for unique encoding characters  in EncodingCharacters.cs (was causing Stack Overflow)
* Add unit tests for changes plus additional Bad Input files to existing test
@milkshakeuk milkshakeuk requested a review from AMCN41R May 31, 2021 19:17
@milkshakeuk
Copy link
Member Author

@JlKmn could you also have a quick review please

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

…espace (and Null) characters being used as encoding characters or as the field Seperator (MSH-1) + unit tests
@milkshakeuk milkshakeuk force-pushed the FuzzBadInputFixes3 branch from e890132 to ea59932 Compare June 1, 2021 14:52
@github-actions
Copy link

github-actions bot commented Jun 1, 2021

Unit Test Results

       5 files     105 suites   13s ⏱️
   987 tests    981 ✔️   6 💤 0 ❌
1 897 runs  1 886 ✔️ 11 💤 0 ❌

Results for commit ea59932.

@milkshakeuk milkshakeuk added this to the v3.0.0.0 milestone Jun 1, 2021
@milkshakeuk milkshakeuk merged commit 87ced83 into master Jun 1, 2021
@milkshakeuk milkshakeuk deleted the FuzzBadInputFixes3 branch June 1, 2021 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BadInputs cause unexpected behavior

2 participants