Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuzz: improves sigpcap target with PacketPoolInit #5672

Merged
merged 1 commit into from
Dec 19, 2020

Conversation

catenacyber
Copy link
Contributor

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/4125

Describe changes:

  • Fixes sigpcap fuzz target using PacketPoolInit instead of PacketPoolInitEmpty

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28390

@catenacyber catenacyber requested a review from a team as a code owner December 18, 2020 20:57
@victorjulien victorjulien merged commit 8d659c6 into OISF:master Dec 19, 2020
victorjulien added a commit to victorjulien/suricata that referenced this pull request Sep 5, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Sep 5, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Sep 5, 2024
After a GAP, remove any entry from the guid2name_map that is older than
30s.

Update C unittest to make sure Flow timestamps are initialized.

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Sep 17, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Sep 17, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Sep 17, 2024
After a GAP, remove any entry from the guid2name_map that is older than
30s.

Update C unittest to make sure Flow timestamps are initialized.

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 24, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 24, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
Use `lru` crate. Rename to reflect this.

Add `app-layer.protocols.smb.max-guid-cache-size` to control the max
size of the LRU cache.

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
Rename to read_offset_cache.

Add `app-layer.protocols.smb.max-read-offset-cache-size` option to
control the limit.

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
Turn the map mapping the smb session key to smb tree into a lru cache,
limited to 1024 by default.

Add `app-layer.protocols.smb.max-tree-cache-size` option to control the
limit.

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
Reimplement the ssnguid2vec_map HashMap as a LruCache.

Since this is a DCERPC record cache, name it as such.

Default size is 128. Can be controlled by
`app-layer.protocols.smb.max-dcerpc-frag-cache-size`.

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
Generic ssn2vec_map was a HashMap used for mapping session key to
different types of vector data:
- GUID
- filename
- share name

Turn this into a bounded LruCache. Rename to ssn2vec_cache.

Size of the cache is 512 by default, and can be configured using:

`app-layer.protocols.smb.max-session-cache-size`

Ticket: OISF#5672.
victorjulien added a commit to victorjulien/suricata that referenced this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants