Project

General

Profile

Actions

Bug #3149

closed

scan-build warnings in radix implementation

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

Also available in: Atom PDF