|
|
Message-ID: <20260901112522.1883349-1-rsf@google.com>
Date: Tue, 1 Sep 2026 11:25:22 +0000
From: Ricardo Barreira <rsf@...gle.com>
To: musl@...ts.openwall.com
Cc: Ricardo Barreira <rsf@...gle.com>
Subject: [PATCH] ldso: increase buffer size to fix loading error with long paths
path_open_library fills this buffer with a path, so it needs to be
sized accordingly with PATH_MAX+1.
Signed-off-by: Ricardo Barreira <rsf@...gle.com>
---
ldso/dynlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ldso/dynlink.c b/ldso/dynlink.c
index 10471b23..32096f55 100644
--- a/ldso/dynlink.c
+++ b/ldso/dynlink.c
@@ -1056,7 +1056,7 @@ static void makefuncdescs(struct dso *p)
static struct dso *load_library(const char *name, struct dso *needed_by)
{
- char buf[2*NAME_MAX+2];
+ char buf[PATH_MAX+1];
const char *pathname;
unsigned char *map;
struct dso *p, temp_dso = {0};
--
2.55.0.897.gb25b4bd76c-goog
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.