pkcs11-helper
pkcs11-helper copied to clipboard
util: fix deserialize buffer overflow
@selvanair thank you so much for the review, I've modified the implementation to use macros, I hope now all is ok.
Looks good to me if returning a wrong value of *max is okay in case of error. Let's see whether the fuzzer can still crash it!
@selvanair @alonbl the fix also looks good from the fuzzing side!
Thank you all!