]> git.ipfire.org Git - people/ms/suricata.git/commit - src/app-layer-htp.c
src: remove multiple uses of atoi
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 21 Dec 2019 07:36:01 +0000 (13:06 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 25 Apr 2020 06:01:46 +0000 (08:01 +0200)
commite7c0f0ad91fdd57f539b3d71b59defad92a0b4c1
treedc9f6919d12e92ac759086e87ccf80f2f45a5b97
parent92bb52f430f48f457fd3d7c23585ad611c450bb2
src: remove multiple uses of atoi

atoi() and related functions lack a mechanism for reporting errors for
invalid values. Replace them with calls to the appropriate
ByteExtractString* functions.

Partially closes redmine ticket #3053.
14 files changed:
src/app-layer-htp.c
src/counters.c
src/detect-engine-address.c
src/detect-engine-iponly.c
src/detect-engine.c
src/detect-id.c
src/detect-xbits.c
src/reputation.c
src/runmode-af-packet.c
src/runmode-napatech.c
src/runmode-netmap.c
src/runmode-pcap.c
src/runmode-pfring.c
src/source-netmap.h