suricata
util-magic.c File Reference
#include "suricata-common.h"
#include "conf.h"
#include "util-unittest.h"
#include "util-magic.h"
Include dependency graph for util-magic.c:

Go to the source code of this file.

Functions

void MagicRegisterTests (void)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Wrappers and tests for libmagic usage.

Libmagic's API is not thread safe. The data the pointer returned by magic_buffer is overwritten by the next magic_buffer call. This is why we need to lock calls and copy the returned string.

Definition in file util-magic.c.

Function Documentation

void MagicRegisterTests ( void  )

Definition at line 655 of file util-magic.c.

References UtRegisterTest().

Here is the call graph for this function: