mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
QUIC/decrypt_crypto: Actually check if decryption was successful
...and bail if it wasn't. PCAP was produced using OSS-Fuzz input from issue 383379789.
This commit is contained in:
parent
d745d746bc
commit
c2f2388f18
5 changed files with 19 additions and 2 deletions
|
@ -0,0 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
ts uid cause analyzer_kind analyzer_name failure_reason
|
||||
1733909795.417573 C4J4Th3PJpwUYZZ6gc violation protocol QUIC decryption failed (<...>/QUIC.spicy:<location>)
|
|
@ -0,0 +1,5 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
ts uid proto history service
|
||||
XXXXXXXXXX.XXXXXX ClEkJM2Vm5giqnMf4h udp D -
|
||||
XXXXXXXXXX.XXXXXX C4J4Th3PJpwUYZZ6gc udp D -
|
||||
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 tcp F ftp
|
BIN
testing/btest/Traces/quic/383379789-decrypt-crash.pcap
Normal file
BIN
testing/btest/Traces/quic/383379789-decrypt-crash.pcap
Normal file
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
# @TEST-DOC: Trace produced by OSS-Fuzz triggered a crash due to using a too small local buffer for decryption.
|
||||
|
||||
# @TEST-REQUIRES: ${SCRIPTS}/have-spicy
|
||||
# @TEST-EXEC: zeek -Cr $TRACES/quic/383379789-decrypt-crash.pcap base/protocols/quic %INPUT
|
||||
# @TEST-EXEC: zeek-cut -m ts uid proto history service < conn.log > conn.log.cut
|
||||
# @TEST-EXEC: zeek-cut -m ts uid cause analyzer_kind analyzer_name failure_reason < analyzer.log > analyzer.log.cut
|
||||
# @TEST-EXEC: btest-diff conn.log.cut
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER='sed -E "s/\((.+)\.spicy:[0-9]+:[0-9]+(-[0-9]+:[0-9]+)?\)/(\1.spicy:<location>)/g" | $SCRIPTS/diff-remove-abspath' btest-diff analyzer.log.cut
|
Loading…
Add table
Add a link
Reference in a new issue