Project

General

Profile

Actions

Bug #1735

closed

cppcheck: Shifting a negative value is undefined behaviour

Added by Victor Julien about 8 years ago. Updated about 8 years ago.

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

Description

cppcheck 1.72 tells us:

[src/util-radix-tree.c:1160]: (error) Shifting a negative value is undefined behaviour
[src/util-radix-tree.c:1357]: (error) Shifting a negative value is undefined behaviour
[src/util-radix-tree.c:1380]: (error) Shifting a negative value is undefined behaviour
[src/util-radix-tree.c:1438]: (error) Shifting a negative value is undefined behaviour
[src/util-ip.c:104]: (error) Shifting a negative value is undefined behaviour

Actions

Also available in: Atom PDF