Skip to content
Snippets Groups Projects
Commit e37d86c2 authored by hansmi's avatar hansmi
Browse files

Skip empty write buffers when unserializing parser


At commit 8490a7ac the following `fuzzing/usbredirparserfuzz` input causes
the instantiation of empty write buffers:

$ base64 -d <<'EOF' > testcase6474540506021888
QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAG
AAAAAN7/AAAACAA=
EOF

Empty write buffers trigger all kinds of issues, in part because they cause
calls to write(2) with a zero length.

Signed-off-by: default avatarMichael Hanselmann <public@hansmi.ch>
parent f2835023
No related branches found
No related tags found
1 merge request!45Skip empty write buffers when unserializing parser, update write buffer count
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment