search for: ohoo

Displaying 1 result from an estimated 1 matches for "ohoo".

Did you mean: hoo
1998 Oct 14
0
The poisoned NUL byte
...alpath.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 component. */ while (*path != ''\0'' && *path != ''/'') { - if (path > max_path) { + if (new_path > max_path) { errno = ENAMETOOLONG; return NULL; } ---------------...