util: fix possible buffer overflow in util_get_process_exec_path
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Fri, 24 Jul 2020 16:14:24 +0000 (18:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 10:41:00 +0000 (10:41 +0000)
commitf13042ec7ea6842cbee81590f40b0e5c2e25a9bf
tree8ca9b418a6991246e1e4091a4776cd9cfb118539
parent59bb0ff945f5dfd71647f5b5090fc0a048338158
util: fix possible buffer overflow in util_get_process_exec_path

Found by Coverity.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Fixes: f8f1413070a ("util/u_process: add util_get_process_exec_path")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6067>
src/util/u_process.c