Victor Julien
20b9849999
util-magic: make unittests less specific
...
So they pass on CentOS 5.11 as well.
12 years ago
Victor Julien
6de34489b3
magic: disable tests depending on magic version
...
Some tests depend on specific results by specific magic versions.
Disable these.
12 years ago
Victor Julien
5e1f1ee4ff
Fix filemagic unittests on OS_DARWIN
13 years ago
Eric Leblond
79fcf1378a
Use unlikely in malloc failure test.
...
This patch is a result of applying the following coccinelle
transformation to suricata sources:
@istested@
identifier x;
statement S1;
identifier func =~ "(SCMalloc|SCStrdup|SCCalloc|SCMallocAligned|SCRealloc)";
@@
x = func(...)
... when != x
- if (x == NULL) S1
+ if (unlikely(x == NULL)) S1
13 years ago
Ken Steele
a2b502a30c
Formatting change for function call.
...
Put open brace { for function on a new line to match coding standard.
Changed:
int foo(int x) {
}
to:
int foo(int x)
{
}
13 years ago
Anoop Saldanha
429b5cec10
Fix magic unittets.
...
Fix segv, when magic_load() fails due to the non-availability of default
magic files.
13 years ago
Eric Leblond
e690b3bbc9
magic: freebsd magic return differently
...
FreeBSD don't return "Microsoft Office Document" but
"OLE 2 Compound Document". This patch takes this into account.
14 years ago
Victor Julien
fd6df00684
Bug 585: use per detect thread libmagic ctx
14 years ago
Victor Julien
ea6fcb355b
magic: add test showing payload resulting in libmagic invalid read as reported by valgrind.
14 years ago
Eric Leblond
710d237724
Add missing sctrdup test
14 years ago
Victor Julien
2179ac2595
Minor fixes for coverity issues.
14 years ago
Victor Julien
cdba2f50d1
Various fixes and improvements based on feedback by Coverity analyzer.
15 years ago
Victor Julien
b402d97179
File carving -- enable reponse file extraction
...
- Enable response body tracking
- Enable file extraction for responses
- File store meta file includes magic, close reason.
- Option to force magic lookup for all stored files.
- Fix libmagic calls thead safety.
15 years ago
Victor Julien
f4a6f4b293
Add libmagic detection, linking and a basic API.
15 years ago