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).
This validation protects against:
best_ratio()
with wrong argument typesencode_raw()
(and indirectly ofencode()
) 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