Cyan4973/xxHash — pull request #4 by sfgagnon (2014-08-12 03:29:42+00:00)
Title: Memory allocation validation

malloc is used to allocate the state structure, but XXHxx_resetState() uses the allocated buffer without checking if allocation was successful.
User can then check for NULL pointer to validate that XXHxx_init was successful without a core dump.

thank you.