You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust/src
Jeff Lucovsky db36f39632 ftp: drop null checks from the response line free
SCFTPFreeResponseLine gated the release of the code buffer on a null
test of the response pointer, so the code buffer had no check of its
own. Neither check could fire: parse_response_line sets both pointers
from Box::into_raw on a boxed slice, which never returns null, and C
code obtains an FTPResponseLine only from SCFTPParseResponseLine. The
comment on the code field claimed the pointer may be null; a line with
no status code gets an empty buffer with code_length 0 instead.

Remove both null checks, note why they are unnecessary, and correct the
field comment.

Ticket: 8803
1 week ago
..
applayertemplate rust: format applayertemplate files 5 months ago
asn1 rust: format asn1 files 5 months ago
bittorrent_dht rust: format bittorrent_dht files 5 months ago
dcerpc dcerpc/log: map uuid, opnum to service and procedure 3 months ago
detect datasets: do not accept char devices 1 week ago
dhcp dhcp: distinguish malformed and truncated options 2 months ago
dnp3 dnp3/doc: list possible values for enum keywords 3 weeks ago
dns dns/doc: list possible values for enum keywords 3 weeks ago
enip enip/doc: list possible values for enum keywords 3 weeks ago
ffi rust: format ffi files 5 months ago
ftp ftp: drop null checks from the response line free 1 week ago
http2 nfs/doc: list possible values for enum keywords 3 weeks ago
ike ike: remove recursivity in functions 2 months ago
krb kerberos/doc: list possible values for enum keywords 3 weeks ago
ldap ldap/doc: list possible values for enum keywords 3 weeks ago
llmnr llmnr: implement logger 5 months ago
mdns rust: use snake case for applayer_register_protocol_detection 11 months ago
mime rust: clippy fixups for 1.97 4 months ago
modbus detect/modbus: move modbus keyword to rust 3 months ago
mqtt mqtt/doc: list possible values for enum keywords 3 weeks ago
nfs nfs/doc: list possible values for enum keywords 3 weeks ago
ntp ntp/doc: list possible values for enum keywords 3 weeks ago
pgsql pgsql: truly disable by default 1 month ago
pop3 rust: move AppLayerTxData definition to C 9 months ago
quic rust: format quic files 5 months ago
rdp rdp: treat tpkt payload as complete input 2 months ago
rfb rfb/doc: list possible values for enum keywords 3 weeks ago
sctp sctp/doc: list possible values for enum keywords 3 weeks ago
sdp rust: clippy fixups for 1.97 4 months ago
sip sip: store frame lens as u32 to avoid body truncation 4 months ago
smb rust: drop block-wrapped scrutinees rejected by clippy 1.99 3 weeks ago
snmp snmp/doc: list possible values for enum keywords 3 weeks ago
ssh ssh: remove the banner_wait_eol state 3 weeks ago
telnet rust: format telnet files 5 months ago
tftp rust: format tftp files 5 months ago
utils rust: format utils files 5 months ago
websocket websocket/doc: list possible values for enum keywords 3 weeks ago
x509 x509: saturate SAN count returned by parser 2 months ago
applayer.rs rust: format all files 4 months ago
common.rs rust: format all files 4 months ago
conf.rs rust: format all files 4 months ago
core.rs rust: format all files 4 months ago
debug.rs rust: format all files 4 months ago
encryption.rs rust: format all files 4 months ago
feature.rs rust: format all files 4 months ago
filecontainer.rs rust: bindgen more file functions 11 months ago
filetracker.rs nfs: enforce the OOO queue limits on the chunk path 1 month ago
flow.rs flow: turn flags field into uint64_t 9 months ago
frames.rs rust: format all files 4 months ago
handshake.rs rust: format all files 4 months ago
ja4.rs tls: Integrate ALPNs into HandshakeParams object 1 year ago
jsonbuilder.rs jsonbuilder: encode key strings when needed 2 months ago
kerberos.rs rust: format all files 4 months ago
lib.rs rust: disable clippy warning for manual c str literals 2 months ago
lua.rs rust: format all files 4 months ago
lzma.rs swf: grow lzma output in one decoder pass 2 months ago
tls_version.rs tls: Move tls-versions to rust 1 year ago
util.rs rust: format all files 4 months ago