mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Fix possible null pointer dereference in identify_data BIF.
There was no check/handling for if magic_buffer() returns null. Also centralized libmagic calls for consistent error handling/output.
This commit is contained in:
parent
dd9f361bc7
commit
2481f9f837
5 changed files with 47 additions and 46 deletions
|
@ -29,8 +29,6 @@ protected:
|
|||
char buffer[BUFFER_SIZE];
|
||||
int buffer_len;
|
||||
|
||||
static void InitMagic(magic_t* magic, int flags);
|
||||
|
||||
static magic_t magic;
|
||||
static magic_t magic_mime;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue