Actions
Bug #7836
closed
JI
JI
util-byte: bad usage of StringParse function return codes
Bug #7836:
util-byte: bad usage of StringParse function return codes
Description
These functions return 0 or less than 0 on failure, where 0 means no bytes were parsed to a number and can leave the output variable uninitialized.
A compiler warning is emitted with -flto=auto -O2 on this usage.
To reproduce the compiler warnings:
CFLAGS="-flto=auto -O2" LDFLAGS="-flto=auto -O2" ./configure make
OT Updated by OISF Ticketbot 8 months ago
- Subtask #7837 added
OT Updated by OISF Ticketbot 8 months ago
- Label deleted (
Needs backport to 7.0)
JI Updated by Jason Ish 8 months ago
PR for review: https://github.com/OISF/suricata/pull/13665
VJ Updated by Victor Julien 8 months ago
- Status changed from In Review to Closed
Actions