From: Jérémie Galarneau Date: Thu, 8 May 2014 21:05:55 +0000 (-0400) Subject: Fix: Possible out-of-bounds read X-Git-Tag: v2.5.0-rc1~50 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=431f702e19df278f897933088e553724f296128b;p=lttng-tools.git Fix: Possible out-of-bounds read Fixes coverity issue 1191757. Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/src/common/config/config.c b/src/common/config/config.c index b8a32e6e1..e3fe74ac2 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -2436,7 +2436,7 @@ int load_session_from_path(const char *path, const char *session_name, continue; } - if (path_len + file_name_len > PATH_MAX) { + if (path_len + file_name_len >= PATH_MAX) { continue; }