Project

General

Profile

Actions

Bug #3147

closed

scan-build warning for mime decoder

Added by Victor Julien over 4 years ago. Updated almost 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

  CC       util-decode-mime.o
util-decode-mime.c:194:31: warning: Use of memory after it is freed
            lastSibling->next = entity->child;
            ~~~~~~~~~~~~~~~~~ ^
util-decode-mime.c:861:24: warning: Potential leak of memory pointed to by 'val'
        state->hname = NULL;
                       ^~~~
/usr/lib/llvm-8/lib/clang/8.0.0/include/stddef.h:105:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
2 warnings generated.

Subtasks 1 (0 open1 closed)

Bug #6018: scan-build warning for mime decoder (6.0.x backport)ClosedVictor JulienActions

Related issues 1 (1 open0 closed)

Related to Suricata - Task #3153: tracking: scan-build warningsIn ProgressVictor JulienActions
Actions

Also available in: Atom PDF