Appending null character after readlink() call is required #150

Closed
opened 2017-10-16 09:24:48 +00:00 by karen-arutyunov · 0 comments
karen-arutyunov commented 2017-10-16 09:24:48 +00:00 (Migrated from github.com)

Implementation of the pkgconf_path_add() function assumes that readlink() terminates the symbolic link target path with the null character, which is not the case. The following assignment is required between readlink() and stat() calls:

linkdest[len] = '\0';

Implementation of the pkgconf_path_add() function assumes that readlink() terminates the symbolic link target path with the null character, which is not the case. The following assignment is required between readlink() and stat() calls: linkdest[len] = '\0';
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#150
There is no content yet.