]> git.ipfire.org Git - people/ms/suricata.git/commit
rust/nfs: add a maximum number of operations per compound
authorPierre Chifflier <chifflier@wzdftpd.net>
Mon, 8 Nov 2021 22:11:24 +0000 (23:11 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 22 Nov 2021 10:20:23 +0000 (11:20 +0100)
commitea1d03f8e38aca376adcb80b1851b97a0816a5e9
treefd5d34dde38a91e4b86b9e4b7de12a6b2a298e31
parent0ffe12333028894b6999a7e65b565a2782e90b53
rust/nfs: add a maximum number of operations per compound

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.
rust/src/nfs/nfs4_records.rs