Skip to content

Conversation

@sebastian-carpenter
Copy link

Description

There were two arrays of potentially uninitialized memory causing issues with oss-fuzz:

Uninitialized values in the newly allocated output buffer were being seen as a problem so I XMEMSET the buffer to 0. I also decided to set the align bytes to 0 in case that was throwing the fuzzer off.

The XMEMSET for hmac, in internal.c, enforces that the result array does not contribute garbage data to the final hashed value.

Fixes oss-fuzz issue 442261624.

Testing

Using the oss-fuzz reproduction steps.

Ran a make check in wolfssl with the default configuration.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@sebastian-carpenter
Copy link
Author

Retest this please Jenkins

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