Displaying 1 result from an estimated 1 matches for "copy_path".
Did you mean:
copy_page
1998 Oct 14
0
The poisoned NUL byte
...result);
printf("length = %d\n", strlen(result));
}
Glibc uses a different realpath implementation which does not have
this bug.
--- libc-5.4.38/libc/bsd/realpath.c.orig Sat Oct 3 00:42:48 1998
+++ libc-5.4.38/libc/bsd/realpath.c Sat Oct 3 00:43:09 1998
@@ -76,7 +76,7 @@
}
strcpy(copy_path, path);
path = copy_path;
- max_path = copy_path + PATH_MAX - 2;
+ max_path = resolved_path + PATH_MAX - 2;
/* If it''s a relative pathname use getwd for starters. */
if (*path != ''/'') {
/* Ohoo... */
@@ -122,7 +122,7 @@
}
/* Safely copy the next pathname co...