Project

General

Profile

Actions

Bug #3149

closed

scan-build warnings in radix implementation

Added by Victor Julien over 4 years ago. Updated 12 months ago.

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

Description

  CC       util-radix-tree.o
util-radix-tree.c:597:34: warning: Access to field 'stream' results in a dereference of a null pointer (loaded from field 'prefix')
        if ((temp = (stream[i] ^ bottom_node->prefix->stream[i])) == 0) {
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
util-radix-tree.c:719:30: warning: Access to field 'stream' results in a dereference of a null pointer (loaded from field 'prefix')
        if (SC_RADIX_BITTEST(bottom_node->prefix->stream[differ_bit >> 3],
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-radix-tree.h:27:34: note: expanded from macro 'SC_RADIX_BITTEST'
#define SC_RADIX_BITTEST(x, y) ((x) & (y))
                                 ^
2 warnings generated.

Subtasks 1 (0 open1 closed)

Bug #6016: scan-build warnings in radix implementation (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 4 years ago

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

Updated by Victor Julien 12 months ago

  • Status changed from New to Resolved
  • Assignee changed from OISF Dev to Victor Julien
  • Target version changed from TBD to 7.0.0-rc2
  • Label Needs backport to 6.0 added
Actions #3

Updated by OISF Ticketbot 12 months ago

  • Subtask #6016 added
Actions #4

Updated by OISF Ticketbot 12 months ago

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

Updated by Victor Julien 12 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF