Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01c7958

Browse files
nhormant8m
authored andcommitted
Reduce Max number of commands handled per fuzzer pass in quic-lcidm.
We've gotten a few recent reports of a hang in the quic-lcidm fuzzer: https://issues.oss-fuzz.com/issues/448510502 It looks pretty straightforward (I think). The fuzzer input buffer is used in this particular case to randomly issue commands to the lcidm hash table (add/delete/query/flush/etc). The loop for the command processing (based on the input buffer), is limited to 10k commands. However the fuzzer will on occasion provide very large buffers (500k) which easily saturate that limit. If the input buffer happens to do something like get biased toward mostly additions, we wind up with a huge hashtable that has to constantly grow and rehash, which we've seen leads to timeouts in the past. Most direct fix I think here, given that this is something of an artificial failure in the fuzzer, is to simply clamp the command limit more. Fixes openssl/project#1664 Reviewed-by: Kurt Roeckx <[email protected]> Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #28724)
1 parent beec4e1 commit 01c7958

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fuzz/quic-lcidm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ enum {
4848
CMD_LOOKUP
4949
};
5050

51-
#define MAX_CMDS 10000
51+
#define MAX_CMDS 5000
5252

5353
static int get_cid(PACKET *pkt, QUIC_CONN_ID *cid)
5454
{

0 commit comments

Comments
 (0)