Skip to content

Add validation to best_ratio() and encode_raw()#28

Merged
saxbophone merged 4 commits intodevelopfrom
josh/22-validation
Oct 18, 2018
Merged

Add validation to best_ratio() and encode_raw()#28
saxbophone merged 4 commits intodevelopfrom
josh/22-validation

Conversation

@saxbophone
Copy link
Copy Markdown
Owner

This validation protects against:

  • improper usage of best_ratio() with wrong argument types
  • improper usage of encode_raw() (and indirectly of encode()) with base configurations which would corrupt data on encoding.

Note: no need to protect decode_raw() in the equivalent way as this function cannot corrupt data (data is only corrupted on encoding when bad options are chosen).

Closes #22

@saxbophone saxbophone merged commit f2c9c2a into develop Oct 18, 2018
@saxbophone saxbophone deleted the josh/22-validation branch October 18, 2018 21:01
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.

1 participant