Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
glibc.i686.16578
realpath-underflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File realpath-underflow.patch of Package glibc.i686.16578
* stdlib/canonicalize.c (__realpath): Return error with ENOENT if resolving a relative file name and root is no longer accessible. Index: glibc-2.22/stdlib/canonicalize.c =================================================================== --- glibc-2.22.orig/stdlib/canonicalize.c +++ glibc-2.22/stdlib/canonicalize.c @@ -90,6 +90,14 @@ __realpath (const char *name, char *reso rpath[0] = '\0'; goto error; } + if (rpath[0] != '/') + { + /* If getcwd returned a non-absolute file name the root + directory is no longer accessible to the current process. */ + __set_errno (ENOENT); + rpath[0] = '\0'; + goto error; + } dest = __rawmemchr (rpath, '\0'); } else
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor