From fac2a49e75c2141e340c43bc0e024e6dc02e6493 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 20 Jul 2025 09:45:26 -0600 Subject: [PATCH] ptrace_readv_string: quiet sign-compare warning --- src/exec_ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec_ptrace.c b/src/exec_ptrace.c index 679313f0c..c3411ba27 100644 --- a/src/exec_ptrace.c +++ b/src/exec_ptrace.c @@ -398,7 +398,7 @@ ptrace_readv_string(pid_t pid, unsigned long addr, char *buf, size_t bufsize) if (cp != NULL) debug_return_ssize_t((cp - buf0) + 1); /* includes NUL */ /* No NUL terminator, we should have a full page. */ - if (nread != page_size) { + if ((size_t)nread != page_size) { sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO, "process_vm_readv(%d, [0x%lx, %zu], 1, [0x%lx, %zu], 1, 0)" " -> %zd",