Project

General

Profile

Actions

Bug #3566

closed

rules: minor memory leak involving pcre_get_substring

Added by Victor Julien almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 4.1, Needs backport to 5.0

Description

To reproduce, compile with '--enable-fuzztargets' and run as

./src/fuzz_siginit ~/Downloads/clusterfuzz-testcase-minimized-fuzz_siginit-5644415478792192 

=================================================================
==28190==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 2 byte(s) in 1 object(s) allocated from:
    #0 0x7f92c32f1b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    #1 0x7f92c1efc2b4 in pcre_get_substring (/lib/x86_64-linux-gnu/libpcre.so.3+0x2c2b4)

SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).


Files


Related issues 3 (0 open3 closed)

Related to Suricata - Optimization #1046: replace pcre_get_substring with pcre_copy_substringClosedCommunity TicketActions
Copied to Suricata - Bug #3606: rules: minor memory leak involving pcre_get_substringClosedJeff LucovskyActions
Copied to Suricata - Bug #3607: rules: minor memory leak involving pcre_get_substringClosedShivani BhardwajActions
Actions

Also available in: Atom PDF