]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: fail tx creation if we cannot allocate user data 13073/head
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 18 Apr 2025 19:16:29 +0000 (21:16 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 22 Apr 2025 10:22:40 +0000 (12:22 +0200)
commit833a738dd1429f63c79d95edf25bb86fcc15b51a
tree7ab9044a19a729e613a69b6e3c4f1d913f7c1e7d
parent0167001ce897e6289b11ddcb1064cd146954245b
http: fail tx creation if we cannot allocate user data

So, we always have a libhtp.rs htp_tx_t and a Suricata tx
with its AppLayerTxData

Thus AppLayerParserGetTxData cannot return NULL

Ticket: 5739
22 files changed:
rust/htp/src/c_api/config.rs
rust/htp/src/c_api/transaction.rs
rust/htp/src/config.rs
rust/htp/src/hook.rs
rust/htp/src/transaction.rs
rust/htp/src/transactions.rs
src/app-layer-htp.c
src/app-layer-parser.c
src/detect-config.c
src/detect-engine-state.c
src/detect-filestore.c
src/detect-http-client-body.c
src/detect-http-header.c
src/detect-http-raw-header.c
src/detect-xbits.c
src/detect.c
src/output-filedata.c
src/output-json-http.c
src/output-streaming.c
src/output-tx.c
src/util-file.c
src/util-lua-http.c