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

Go to the source code of this file.


void MagicRegisterTests (void)

Detailed Description

Victor Julien

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

◆ MagicRegisterTests()

void MagicRegisterTests ( void  )

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

References UtRegisterTest().

Here is the call graph for this function: