Project

General

Profile

Actions

Bug #3149

open

scan-build warnings in radix implementation

Added by Victor Julien about 3 years ago.

Status:
New
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.

Related issues 1 (1 open0 closed)

Related to Task #3153: tracking: scan-build warningsNewOISF DevActions
Actions #1

Updated by Victor Julien about 3 years ago

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

Also available in: Atom PDF