tags -1 fixed-upstream

The probable fix is at
https://gitlab.com/procps-ng/procps/-/commit/2c933ecba3bb1d3041a5a7a53a7b4078a6003413

The issue is the -C command allocates memory using malloc(length of arg *
size of struct).
In odd situations, you could have a very large arg, the multiplication
overflows and malloc will allocate less memory. You basically need to have
a recompiled kernel that increases ARG_MAX for it to happen.

Using the number of items, calculated later, and more importantly using
calloc() fixes the issue.

 - Craig

Reply via email to