Project

General

Profile

Actions

Bug #3147

closed

scan-build warning for mime decoder

Added by Victor Julien over 5 years ago. Updated over 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 #1

Updated by Victor Julien over 5 years ago

  • Related to Task #3153: tracking: scan-build warnings added
Actions #2

Updated by Victor Julien over 1 year ago

  • Status changed from New to In Progress
  • Assignee changed from OISF Dev to Victor Julien
  • Target version changed from TBD to 7.0.0-rc2
Actions #3

Updated by Victor Julien over 1 year ago

  • Status changed from In Progress to Resolved
  • Label Needs backport to 6.0 added
Actions #4

Updated by OISF Ticketbot over 1 year ago

  • Subtask #6018 added
Actions #5

Updated by OISF Ticketbot over 1 year ago

  • Label deleted (Needs backport to 6.0)
Actions #6

Updated by Victor Julien over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF