[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] Avoid potential crash if PATH_MAX > 1024
From: |
John Darrington |
Subject: |
[PATCH 2/2] Avoid potential crash if PATH_MAX > 1024 |
Date: |
Tue, 24 Dec 2019 13:26:29 +0100 |
---
src/pkl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pkl.c b/src/pkl.c
index a6ff144..d233bb5 100644
--- a/src/pkl.c
+++ b/src/pkl.c
@@ -690,7 +690,7 @@ pkl_ice (pkl_ast ast,
int des;
FILE *out;
- if (((des = path_search (tmpfile, PATH_MAX, NULL, "poke", true)) == -1)
+ if (((des = path_search (tmpfile, 1024, NULL, "poke", true)) == -1)
|| ((des = mkstemp (tmpfile)) == -1))
{
pk_term_class ("error");
--
2.11.0