Fix: Possible out-of-bounds read
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 May 2014 21:05:55 +0000 (17:05 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 12 May 2014 14:16:19 +0000 (10:16 -0400)
Fixes coverity issue 1191757.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/config/config.c

index b8a32e6e1f803218e0ba1f0aea10668d865a7dde..e3fe74ac284973b6912236dfec89be2904d4bca1 100644 (file)
@@ -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;
                        }
 
This page took 0.028338 seconds and 4 git commands to generate.