]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
launcher-linux.c (find_client): barf if we don't have read permission for executable
authorMark Wielaard <mark@klomp.org>
Sun, 26 Nov 2023 17:22:01 +0000 (18:22 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 26 Nov 2023 17:25:46 +0000 (18:25 +0100)
For such an executable valgrind will now report:

valgrind: Cannot continue: Need read permission on /usr/local/bin/exec-no-read

https://bugs.kde.org/show_bug.cgi?id=281059

NEWS
coregrind/launcher-linux.c

diff --git a/NEWS b/NEWS
index 223d7233cbdf47c53fb6d7525f5f82b70ea9139e..714f9acc5b67efe24c90f4475e783493e8585997 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,7 @@ than mailing the developers (or mailing lists) directly -- bugs that
 are not entered into bugzilla tend to get forgotten about or ignored.
 
 
+281059  Cannot connect to Oracle using valgrind
 390269  unhandled amd64-darwin syscall: unix:464 (openat_nocancel)
 401284  False positive "Source and destination overlap in strncat"
 428364  Signals inside io_uring_enter not handled
index bc95e3c115340691c6591cafe6f1b3ae6708f984..715fdab818800e54cb6b193a8bcd2cc65cdcd60b 100644 (file)
@@ -129,6 +129,8 @@ static char *find_client(const char *clientname)
 
       if (access(fullname, R_OK|X_OK) == 0)
          return fullname;
+      else if (access(fullname, X_OK) == 0)
+        barf("Need read permission on %s", fullname);
    }
    free(fullname);