Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/haad/proxychains.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hamsik <haaaad@gmail.com>2019-01-22 20:45:29 +0300
committerGitHub <noreply@github.com>2019-01-22 20:45:29 +0300
commit14e15aa2c179116d9be90ffadcd42b0035215661 (patch)
treee552e922ee105932b05457d863f92770afd21f50
parentfbfdd995dbb94254df558086197b671f96ea6c1f (diff)
parent9f99278525a7bca2b7406428a7eae2705d8a5e31 (diff)
Merge pull request #85 from Intika-Linux-Network/master
Fix security issue CVE-2015-3887
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 191ba7f..009a352 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,7 +37,7 @@ static const char *dll_name = DLL_NAME;
static char own_dir[256];
static const char *dll_dirs[] = {
- ".",
+ //".",
own_dir,
LIB_DIR,
"/lib",
@@ -52,7 +52,8 @@ static void set_own_dir(const char *argv0) {
while(l && argv0[l - 1] != '/')
l--;
if(l == 0)
- memcpy(own_dir, ".", 2);
+ //memcpy(own_dir, ".", 2);
+ memcpy(own_dir, "/dev/null/", 2);
else {
memcpy(own_dir, argv0, l - 1);
own_dir[l] = 0;