Fix: get_cmdline_by_pid path length assumes a max pid of 65535
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Jun 2015 21:27:31 +0000 (23:27 +0200)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 23 Jun 2015 21:36:47 +0000 (23:36 +0200)
commit5b4c34a7926b1972824c6a699937288db28cfc72
treeb3ebfc2948f9e43534012c522ce06973c1811a1c
parente1e79f0645732354526651b1999e70c0395c9236
Fix: get_cmdline_by_pid path length assumes a max pid of 65535

PROC(5) mentions that "On 64-bit systems, pid_max can be set to any
value up to 2^22 (PID_MAX_LIMIT, approximately 4 million)."

We use 32 bits for simplicity's sake.

Reported-by: Zhenyu Ren <zhenyu.ren@aliyun.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/constant.h
src/bin/lttng/commands/list.c
This page took 0.026447 seconds and 4 git commands to generate.