[tracker-miners/wip/carlosg/coverity-fixes: 7/11] tracker: Avoid possible buffer overrun in CLI process helpers
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/coverity-fixes: 7/11] tracker: Avoid possible buffer overrun in CLI process helpers
- Date: Mon, 14 Sep 2020 10:33:07 +0000 (UTC)
commit b44ad44eedf886f3e34c27a5b43c64f844b3102f
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 7 18:55:25 2020 +0200
tracker: Avoid possible buffer overrun in CLI process helpers
Spotted by Coverity
CID: #361463, #361464
src/tracker/tracker-process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker/tracker-process.c b/src/tracker/tracker-process.c
index 7f3d4d0eb..4fa5f4d7b 100644
--- a/src/tracker/tracker-process.c
+++ b/src/tracker/tracker-process.c
@@ -68,7 +68,7 @@ tracker_process_data_free (TrackerProcessData *pd)
static gchar *
find_command (pid_t pid)
{
- gchar *proc_path, path[PATH_MAX];
+ gchar *proc_path, path[PATH_MAX + 1];
ssize_t len;
proc_path = g_strdup_printf ("/proc/%d/exe", pid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]