[ovs-dev] [PATCH] odp-util: Return an error on actions overflow while parsing from string.

Ben Pfaff blp at ovn.org
Mon Jun 14 15:40:09 UTC 2021

On Mon, Jun 14, 2021 at 05:17:01PM +0200, Ilya Maximets wrote:
> We don't need to continue parsing if already oversized.  This is not
> very important, but fuzzer times out while parsing very long list of
> actions.
> Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29190
> Signed-off-by: Ilya Maximets <i.maximets at ovn.org>

Is {1..8190} portable shell syntax?  It's not in POSIX.  The "dash"
shell doesn't understand it.

I'd tend to write $(seq 8190) instead.

> +data_valid=$(  printf 'set(encap()),%.0s' {1..8190})
> +data_invalid=$(printf 'set(encap()),%.0s' {1..8191})



More information about the dev mailing list