Project

General

Profile

Actions

Bug #3053

closed

Replace atoi with StringParse* for better error handling

Added by Philippe Antoine almost 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

See https://wiki.sei.cmu.edu/confluence/display/c/ERR34-C.+Detect+errors+when+converting+a+string+to+a+number

And grepping atom gives results such as
src//detect-modbus.c: modbus->address->min = atoi((const char*) (arg+1));


Related issues 1 (0 open1 closed)

Related to Suricata - Bug #2080: Rules with bad port group var do not errorClosedPhilippe AntoineActions
Actions

Also available in: Atom PDF