git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs: Security release. Bug 3063
[exim.git]
/
src
/
OS
/
unsupported
/
os.c-IRIX6
diff --git
a/src/OS/unsupported/os.c-IRIX6
b/src/OS/unsupported/os.c-IRIX6
index 487091aeb37e9b8f2b962121295ea878ee3b08b1..1019901dcd9006ebaaf062b476bcc4f548052dcb 100644
(file)
--- a/
src/OS/unsupported/os.c-IRIX6
+++ b/
src/OS/unsupported/os.c-IRIX6
@@
-2,7
+2,9
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
+/* Copyright (c) The Exim Maintainers 2022 */
/* Copyright (c) University of Cambridge 2001 */
/* Copyright (c) University of Cambridge 2001 */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/* See the file NOTICE for conditions of use and distribution. */
/* Irix-specific code. This is concatenated onto the generic src/os.c file.
/* See the file NOTICE for conditions of use and distribution. */
/* Irix-specific code. This is concatenated onto the generic src/os.c file.
@@
-59,7
+61,7
@@
if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0)
log_write(0, LOG_PANIC_DIE, "iflist-sysctl-estimate failed: %s",
strerror(errno));
log_write(0, LOG_PANIC_DIE, "iflist-sysctl-estimate failed: %s",
strerror(errno));
-buf = store_get(needed);
+buf = store_get(needed
, GET_UNTAINTED
);
if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0)
log_write(0, LOG_PANIC_DIE, "sysctl of ifnet list failed: %s",
if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0)
log_write(0, LOG_PANIC_DIE, "sysctl of ifnet list failed: %s",
@@
-82,7
+84,7
@@
for (nextaddr = buf; nextaddr < lim; nextaddr += ifm->ifm_msglen)
if ((ifam->ifam_addrs & RTA_IFA) != 0)
{
if ((ifam->ifam_addrs & RTA_IFA) != 0)
{
- char *cp =
(char *)
mask;
+ char *cp =
CS
mask;
struct sockaddr *sa = (struct sockaddr *)mask;
ADVANCE(cp, sa);
addr = (struct sockaddr_in *)cp;
struct sockaddr *sa = (struct sockaddr *)mask;
ADVANCE(cp, sa);
addr = (struct sockaddr_in *)cp;