Skip to content

Conversation

jasonish
Copy link
Member

Fix crashes in Lua when calling tx:response_line(), tx:request_line(),
tx:request_uri_raw(), or tx:request_host() on incomplete or malformed
HTTP transactions.

These functions return bstr pointers which may be NULL. Add NULL
checks before calling bstr_ptr() and bstr_len() to avoid segfaults.

Ticket: OISF#7829
(cherry picked from commit 9fb33bb)
@jasonish jasonish added this to the 8.0 milestone Sep 26, 2025
@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.decoder.invalid 194 123 63.4%
.decoder.vxlan 71 0 -
.decoder.event.vxlan.unknown_payload_type 71 0 -

Pipeline = 27730

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 27733

@victorjulien victorjulien merged commit e13fe6a into OISF:main-8.0.x Sep 29, 2025
55 of 56 checks passed
@victorjulien
Copy link
Member

Merged in #13917, thanks!

@jasonish jasonish deleted the 8.0.x-lua-htp/v1 branch October 1, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants