Closed minerva32 closed 6 months ago
mac
is a buffer, not a NULL
ptr. See https://www.cryptopp.com/docs/ref/class_authenticated_symmetric_cipher.html#a6078f8888fd8686c6de52091c63ae95d.
And sizeof(mac)
is wrong. sizeof(mac)
returns the size of the pointer, which is probably 8, and not the size of a null buffer, which is 0.
Operating system and version (Ubuntu 18.04) version of the Crypto++ library (Crypto++ 8.8.0)
I got some unusual output from the fuzzer. Tried to analyze what this was.
Code I tried to reproduce. Assigned
byte* mac = nullptr;
This is how I compiled.
This is the result of Address Sanitizer.