Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in
magic
module when libmagic
returns null pointer.
The pointer returned from `libmagic` was passed directly to `yr_strdup` (a wrapper of `strdup`), but this function has undefined behavior when the argument is null.
- Loading branch information