Victor Julien
d6a7f6b53f
mingw: work around mingw more liberal ip parsing
8 years ago
Victor Julien
ab1200fbd7
compiler: more strict compiler warnings
...
Set flags by default:
-Wmissing-prototypes
-Wmissing-declarations
-Wstrict-prototypes
-Wwrite-strings
-Wcast-align
-Wbad-function-cast
-Wformat-security
-Wno-format-nonliteral
-Wmissing-format-attribute
-funsigned-char
Fix minor compiler warnings for these new flags on gcc and clang.
9 years ago
Victor Julien
da6bf0c1b6
host-info: coverity 1298890
9 years ago
Jason Ish
796dd5223b
tests: no longer necessary to provide successful return code
...
1 pass, 0 is fail.
10 years ago
Jason Ish
580728087c
fix util-host-os-info unit tests.
...
- Some tests always passed due to the result value being
initialized to 1.
- Fix tests that now fail. Looks like just the test were wrong
and that the code does the right thing.
10 years ago
Jason Ish
11d6770ae4
afl - SCHINfoLoadFromConfig - check for NULL before parsing.
...
Found by AFL on suricata.yaml.
11 years ago
Victor Julien
b75eb77295
host-os-info: update radix lookups
...
Update host OS lookups to use the new API.
The return of user_data is treated as a succesful lookup, instead of
the node.
12 years ago
Victor Julien
0cf71befbb
util-host-os-info: scan-build fix
...
util-host-os-info.c:202:13: warning: Potential leak of memory pointed to by 'user_data'
SCLogError(SC_ERR_INVALID_IPV6_ADDR, "Invalid IPV6 address inside");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-debug.h:278:35: note: expanded from macro 'SCLogError'
#define SCLogError(err_code, ...) SCLogErr(SC_LOG_ERROR, err_code, \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-debug.h:214:82: note: expanded from macro 'SCLogErr'
char _sc_log_err_msg[SC_LOG_MAX_LOG_MSG_LEN] = ""; \
^~
1 warning generated.
12 years ago
Victor Julien
a6474bd6bf
util-host-os-info: scan build fixes
...
util-host-os-info.c:200:13: warning: Potential leak of memory pointed to by 'ip_str'
SCLogError(SC_ERR_INVALID_IPV6_ADDR, "Invalid IPV6 address inside");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-debug.h:278:35: note: expanded from macro 'SCLogError'
#define SCLogError(err_code, ...) SCLogErr(SC_LOG_ERROR, err_code, \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-debug.h:214:82: note: expanded from macro 'SCLogErr'
char _sc_log_err_msg[SC_LOG_MAX_LOG_MSG_LEN] = ""; \
^~
util-host-os-info.c:200:13: warning: Potential leak of memory pointed to by 'user_data'
SCLogError(SC_ERR_INVALID_IPV6_ADDR, "Invalid IPV6 address inside");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-debug.h:278:35: note: expanded from macro 'SCLogError'
#define SCLogError(err_code, ...) SCLogErr(SC_LOG_ERROR, err_code, \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-debug.h:214:82: note: expanded from macro 'SCLogErr'
char _sc_log_err_msg[SC_LOG_MAX_LOG_MSG_LEN] = ""; \
^~
2 warnings generated.
12 years ago
Duarte Silva
ab215c72f6
Now using the common functions
12 years ago
Victor Julien
84bad6db77
Silence compiler warnings found by clang
13 years ago
Victor Julien
d68fd54a76
Fix/suppress a couple of harmless compiler warnings.
13 years ago
Anoop Saldanha
a0bce6362e
bug 499 - update host os info enum map to use - instead of _ + add new unittests
14 years ago
Victor Julien
c4b34e6ef7
Fix various minor clang/scan-build warnings.
14 years ago
Anoop Saldanha
420befb180
Changed my email address to anoopsaldanha at gmail dot com from my current one
14 years ago
Pablo Rincon
76af1b049b
Make malloc errors on initialization stage a fatal error, resulting on a exit() call
15 years ago
Gurvinder Singh
cda664a8c4
memroy leaks fixes in detection module, app layer and counters
16 years ago
Gerardo Iglesias Galvan
9f4fae5b1a
Fix inconsistent use of dynamic memory allocation
16 years ago
William Metcalf
ce01927515
Import of GPLv2 Header 050410
16 years ago
Pablo Rincon
e7a989e305
IP Only Engine using radix trees
16 years ago
Jason Ish
eab93e766a
Do policy lookup for defrag. Add unit test for a default host os policy. Update example config to use a default. Add 2 new policies to the stream to cover all the policies for stream and defrag.
16 years ago
Victor Julien
90006d94a6
Fix compilation
16 years ago
Jason Ish
5c3ab2b73f
Load host OS info from the configuration.
16 years ago
Pablo Rincon
25a3a5c6d8
Adding mem wrapper to debug runtime alloc()/free() functions. Fixing some memory leaks.
16 years ago
Pablo Rincon
ad2c136e8f
Renaming errors (naming conventions)
16 years ago
Gurvinder Singh
a66c6752d5
stream os_policy support
16 years ago
Anoop Saldanha
eea0e2a807
Radix Tree fixes/updates
16 years ago
Victor Julien
ecf86f9c23
Rename to Suricata.
16 years ago
Anoop Saldanha
204aca4431
Support host os flavour retrieval functions with raw network addresses
16 years ago
Anoop Saldanha
3f91af89a2
Added comments to the the Host OS API test
16 years ago
Anoop Saldanha
22771d5f52
Updated doxygen comment for host os function
16 years ago
Anoop Saldanha
7dbc117b37
Host OS Table API. Modifications also make to the radix tree to handle netblocks
16 years ago