[openssh-commits] [openssh] 01/03: upstream: s/calloc/xcalloc/ to reduce noise from AI bug detectors
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Jun 29 19:16:40 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 0eaeddeefa4bd9b1241788b27ed2967ab596c759
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Mon Jun 29 08:57:06 2026 +0000
upstream: s/calloc/xcalloc/ to reduce noise from AI bug detectors
that don't understand context
OpenBSD-Commit-ID: dcef5b1804620f2aed108267bbf5023a81230e14
---
authfd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/authfd.c b/authfd.c
index 2b7c561b3..aef809fa6 100644
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.143 2026/06/29 02:13:05 djm Exp $ */
+/* $OpenBSD: authfd.c,v 1.144 2026/06/29 08:57:06 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -805,7 +805,7 @@ ssh_agent_query_extensions(int sock, char ***exts)
r = SSH_ERR_INVALID_FORMAT;
goto out;
}
- ret = calloc(1, sizeof(*ret));
+ ret = xcalloc(1, sizeof(*ret));
while (sshbuf_len(msg)) {
ret = xrecallocarray(ret, i + 1, i + 2, sizeof(*ret));
if ((r = sshbuf_get_cstring(msg, ret + i, NULL)) != 0) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list