Skip to content

Commit 9f99278

Browse files
authored
Fix security issue CVE-2015-3887
1 parent fbfdd99 commit 9f99278

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static const char *dll_name = DLL_NAME;
3737

3838
static char own_dir[256];
3939
static const char *dll_dirs[] = {
40-
".",
40+
//".",
4141
own_dir,
4242
LIB_DIR,
4343
"/lib",
@@ -52,7 +52,8 @@ static void set_own_dir(const char *argv0) {
5252
while(l && argv0[l - 1] != '/')
5353
l--;
5454
if(l == 0)
55-
memcpy(own_dir, ".", 2);
55+
//memcpy(own_dir, ".", 2);
56+
memcpy(own_dir, "/dev/null/", 2);
5657
else {
5758
memcpy(own_dir, argv0, l - 1);
5859
own_dir[l] = 0;

0 commit comments

Comments
 (0)