Commit Graph

6723 Commits (408948815f4cc4a6b7a9fbcbc7bc9bbe073a30f3)
 

Author SHA1 Message Date
Victor Julien 3a36dea358 detect: add missing sigorder case 10 years ago
DIALLO David 271bd04539 modbus: fix AddressSanitizer error (segmentation fault)
In case of Mask Write register or Write single register request with
no data (malformed packet), app-layer-modbus checks response content
(data) with the none stored request content. That causes the segmentation
fault.

Before accessing to request content, app-layer-modbus checks now if
content has been previously stored. 4 unitests have been adding, 2 of them
to test the management of Mask Write register and Write single register requests,
and the 2 others to check invalid Mask Write register and Write single register
requests.
10 years ago
Victor Julien 79c1904ab2 ipv6: fix alignment issue in address to string code 10 years ago
Victor Julien 3979cb0e57 ac-ks: fix integer handling issue 10 years ago
Victor Julien 8db7b70e93 unittests: don't call memcpy on NULL-ptr 10 years ago
Victor Julien 4875040dca pcre: initialize var before use 10 years ago
Victor Julien e13f956100 yaml: minor cleanup 10 years ago
Victor Julien 542492d6c2 yaml: initialize var to prevent uninitialized read 10 years ago
Victor Julien d79208d93b tcp sack: fix alignment issues 10 years ago
Victor Julien 055f8bea10 smb: improve integer handling 10 years ago
Victor Julien ed5a01e8dd dcerpc: improve integer handling 10 years ago
Victor Julien 9235dd498f detect port: fix integer handling in hashing 10 years ago
Victor Julien 001e87310d decode: don't call memcpy on NULL-ptr on pseudo packets 10 years ago
Victor Julien 35d081a797 ippair: fix alignment issues 10 years ago
Victor Julien 31b632a17d host: fix alignment issues 10 years ago
Victor Julien b112af817d flow: fix alignment issues 10 years ago
Victor Julien 76c8c077c5 tcp: fix alignment issues with tcp timestamps 10 years ago
Victor Julien c64815e4a8 decode-mime: don't call memcpy on NULL pointer 10 years ago
Jason Ish aa8e747e4d sources: allow interface definitions to be reordered
For af-packet, pf-ring, netmap, and pcap use a generic
lookup function to find the configuration node for an
interface.

The new lookup function does not depend on the ordering
of the items inside the device configuration.
10 years ago
Eric Leblond e29e9056cb config-test: fix memory leak detect by ASAN
NSS library was not deinit at exit resulting in memory leak. As
it is useless for a config test, the patch updates the code so it
is not initialized.

Patch also calls MagicDeinit to free memory used by libmagic.
10 years ago
maxtors bf551ace4e Use ConfValIsTrue for parseing util-logfile append value. 10 years ago
maxtors 3c15c1f8d5 Use ConfValIsTrue for parsing TILE PCIE logging append value. 10 years ago
maxtors a81796654f Use ConfValIs* for parsing pf-ring.checksum-checks. 10 years ago
maxtors 70b864d06b Use ConfValIs* for parsing pcap.checksum-checks. 10 years ago
maxtors b28ebae088 Use ConfValIs* for parsing netmap.checksum-checks. 10 years ago
maxtors d18e2f6e9a Use ConfValIs* for parsing af-packet.checksum-checks. 10 years ago
maxtors 3d4cdd1117 Use ConfValIs* for parseing mpipe.checksum-checks. 10 years ago
maxtors 524c627194 Use ConfValIs* for parsing pcap-file.checksum-checks. 10 years ago
Victor Julien c742a818d5 profiling: suppress inferior version of UtilCpuGetTicks warning 10 years ago
Victor Julien db4ec46f18 coverty: fix dead code warning 10 years ago
Jason Ish dd86ac07f7 smb: check that there is enough input data
Conditional was checking the word count, but indexing
much further into the input data.
10 years ago
maxtors 0e5bbe8564 Reordering of RRTYPE switch case for performance. 10 years ago
maxtors 387919e203 Added more DNS Resource Record Types. 10 years ago
maxtors 16e4c92b69 Changed "enabled" parsing to use ConfValIs(true|false) 10 years ago
maxtors 2b80da424b Update ASN1_MAX_FRAMES to reflect default in suricata.yaml.in 10 years ago
Victor Julien 9818557369 stats: fix stats.log ignoring null-values for threads 10 years ago
Victor Julien d9639fba60 cppcheck: fix harmless warnings
[src/detect-engine-loader.c:272]: (error) Buffer is accessed out of bounds.
[src/flow-manager.c:742]: (error) Buffer is accessed out of bounds.
[src/flow-manager.c:906]: (error) Buffer is accessed out of bounds.
10 years ago
Zachary Rasmor dbbca37a94 Remove free operation on thread name field.
Name field is now  a pre-allocated array - free is no longer necessary.
Fix issue leading to segfault during interface shortening in Single runmode.
10 years ago
Victor Julien 71018cd2ce runmodes: constify names 10 years ago
Zachary Rasmor f211fa48f4 Update unit test to account for 'name' type change. 10 years ago
Zachary Rasmor 68cfa009a0 Update thread creation and threads to use global thread names.
Thread name is now stored as a static string buffer,
string duplication and alloc/de-alloc is no longer required.
10 years ago
Zachary Rasmor 10d3d90f06 Change thread name from pointer to buffer. Remove pointer free. 10 years ago
Zachary Rasmor 885747218b Update shortening algorithm to account for addition of #. 10 years ago
Zachary Rasmor 8c8759c189 Add global threadnames.
Update thread naming convention to follow: W#01-eth0.
Add interface name where applicable, add #.
10 years ago
Zachary Rasmor f8a40dd906 Update pcap-file runmode to adhere to new thread standard. 10 years ago
Zachary Rasmor 41c768ce28 Update threads to use global thread names.
Update FlowManager/Recycler to use global name.
Also add # into thread number.
Update af-packet to use global threadnames.
Update pcap to use global threadnames.
Update pfring to use global threadnames.
Update erf-dag to use global threadnames.
Update nflog to use global threadnames.
Update netmap to use global threadnames.
Update napatech to use global threadnames.
10 years ago
Zachary Rasmor 1bfebae8c4 Update IPS thread names to new name standard. 10 years ago
Zachary Rasmor 19bc6c1f9f Update thread naming convention for all IDS modes.
- Change 'Detect' to 'W'
- Enforce 2 digit numbering in thread names with leading zero
- Add 01 after W for single mode: W01
10 years ago
maxtors a6adb5dbbf Changed naming of flowmanager/recycler.
- Changed FlowManagerThread to FM-
- Changed FlowRecyclerThread to FR-
- Changed use of strcasecmp to strncasecmp. This was used in the
  killing and disabling of FM/FR Threads.
10 years ago
maxtors a17ac21077 Reworked how shortening should be performed.
The shortening of the interfacenames is now dependent on the
size of the destination buffer, so that this can be easily
changed in the future. The process uses snprintf and strlcat.

Also changed the buffer sizes in the util-runmodes to 12
so that they can hold 11 chars + null terminator.
10 years ago