https://bugs.kde.org/show_bug.cgi?id=506806
Bug ID: 506806
Summary: execveat with AT_FDCWD and relative path goes wrong
Classification: Developer tools
Product: valgrind
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The LTP execveat01 fails with:
execveat01.c:58: TFAIL: execveat() returns unexpected errno: EBADF (9)
This is because we do the following check:
if (!ML_(fd_allowed)(ARG1, "execveat", tid, False)) {
SET_STATUS_Failure( VKI_EBADF );
return;
}
Where ARG1 == AT_FDCWD (-100). So not a valid/allowed file descriptor.
Also later on we check with if (ARG1 == VKI_AT_FDCWD)
which probably doesn't work because ARG1 is an unsigned long while VKI_AT_FDCWD
seems to be a int constant.
--
You are receiving this mail because:
You are watching all bug changes.