]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/nfs: add a maximum number of operations per compound
authorJason Ish <jason.ish@oisf.net>
Mon, 18 Jul 2022 21:52:40 +0000 (15:52 -0600)
committerVictor Julien <vjulien@oisf.net>
Tue, 26 Jul 2022 09:25:31 +0000 (11:25 +0200)
commitb8875d4a223762db5efd9976104fa7761b679214
treed37fd99da91edf434e81e9afc1f8cc80a7b37e94
parent18d18105f0a60b807dafa2b665dd5277425f3320
rust/nfs: add a maximum number of operations per compound

This is a backport of ea1d03f8e38aca376adcb80b1851b97a0816a5e9 by Pierre
Chifflier adapted for 6.0.x.

> The `count` combinator preallocates a number of bytes. Since the value
> is untrusted, this can result in an Out Of Memory allocation.
> Use a maximum value, large enough to cover all current implementations.

Ticket: #5448
rust/src/nfs/nfs4_records.rs