summaryrefslogtreecommitdiff
path: root/src/utils/mkdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mkdir.cpp')
-rw-r--r--src/utils/mkdir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp
index f7a2aba37..25a8ba521 100644
--- a/src/utils/mkdir.cpp
+++ b/src/utils/mkdir.cpp
@@ -54,7 +54,7 @@ int mkdir_r(const char *const pathname)
const int len = CAST_S32(strlen(tmp));
- if (len < 1)
+ if (len < 1 || len >= INT_MAX)
return -1;
// terminate the pathname with '/'