[lttng-dev] [PATCH lttng-tools] Fix: Possible out-of-bounds read
Jérémie Galarneau
jeremie.galarneau at efficios.com
Thu May 8 17:05:55 EDT 2014
Fixes coverity issue 1191757.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
src/common/config/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/config/config.c b/src/common/config/config.c
index b8a32e6..e3fe74a 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;
}
--
1.9.2
More information about the lttng-dev
mailing list