Project

General

Profile

Actions

Bug #3566

closed

rules: minor memory leak involving pcre_get_substring

Added by Victor Julien over 2 years ago. Updated over 2 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 Optimization #1046: replace pcre_get_substring with pcre_copy_substringClosedCommunity TicketActions
Copied to Bug #3606: rules: minor memory leak involving pcre_get_substringClosedJeff LucovskyActions
Copied to Bug #3607: rules: minor memory leak involving pcre_get_substringClosedShivani BhardwajActions
Actions #1

Updated by Jeff Lucovsky over 2 years ago

  • Status changed from Assigned to In Review
Actions #2

Updated by Victor Julien over 2 years ago

  • Status changed from In Review to Closed
  • Label Needs backport to 4.1, Needs backport to 5.0 added
Actions #3

Updated by Victor Julien over 2 years ago

  • Related to Optimization #1046: replace pcre_get_substring with pcre_copy_substring added
Actions #4

Updated by Victor Julien over 2 years ago

Found another case: ssl_version

==12==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 2 byte(s) in 1 object(s) allocated from:
    #0 0x5363cd in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
    #1 0x7f4a52d30bea in pcre_get_substring (/lib/x86_64-linux-gnu/libpcre.so.3+0x26bea)

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

Actions #5

Updated by Jeff Lucovsky over 2 years ago

  • Copied to Bug #3606: rules: minor memory leak involving pcre_get_substring added
Actions #6

Updated by Jeff Lucovsky over 2 years ago

  • Copied to Bug #3607: rules: minor memory leak involving pcre_get_substring added
Actions #7

Updated by Jeff Lucovsky over 2 years ago

  • Status changed from Assigned to In Review
Actions #8

Updated by Jeff Lucovsky over 2 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF