https://bugs.kde.org/show_bug.cgi?id=508154
--- Comment #2 from Mark Wielaard <[email protected]> --- (In reply to mcermak from comment #1) > Created attachment 183985 [details] > proposed patch > - if ( !ML_(fd_allowed)(SARG1, "fchownat", tid, False) ) > + if ( (arg_1 != VKI_AT_FDCWD) && !ML_(fd_allowed)(arg_1, "fchownat", tid, > False) ) This doesn't seem to handle the absolute path case: If pathname is absolute, then dirfd is ignored. Maybe something (untested) like: const HChar* path = (const HChar*)ARG2; if (ML_(safe_to_deref)(path, 1) && path[0] != '/') ... -- You are receiving this mail because: You are watching all bug changes.
