about summary refs log tree commit diff stats
path: root/src/common.c
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-11-26 07:51:49 +0000
committerSergei Trofimovich <slyich@gmail.com>2021-11-26 07:54:01 +0000
commitf0a39a4b660cc27d40288216cb9e5a8611109c56 (patch)
tree4eccdd0ee7229147c594430102f424838b8c80cb /src/common.c
parenta77a57a6a45ed07c60b31f7cbe977f8e68fadbc8 (diff)
downloadprofani-tty-f0a39a4b660cc27d40288216cb9e5a8611109c56.tar.gz
python_api.c: enlarge `c_arguments` array to avoid OOB write
Code below explicitly refers past `args_len`th element:

        c_arguments[args_len][0] = NULL;
        c_arguments[args_len][1] = NULL;

Let's always allocate space for `NULL`. Noticed by Steffen Jaeckel.
Diffstat (limited to 'src/common.c')
0 files changed, 0 insertions, 0 deletions