Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci CID-1427736: Appease coverity using KASSERT
details: https://anonhg.NetBSD.org/src/rev/91449b36dece
branches: trunk
changeset: 358898:91449b36dece
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 21 18:12:37 2018 +0000
description:
CID-1427736: Appease coverity using KASSERT
diffstat:
sys/dev/pci/if_iwm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e306e2540579 -r 91449b36dece sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Sun Jan 21 17:58:43 2018 +0000
+++ b/sys/dev/pci/if_iwm.c Sun Jan 21 18:12:37 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.77 2018/01/10 18:39:50 mlelstv Exp $ */
+/* $NetBSD: if_iwm.c,v 1.78 2018/01/21 18:12:37 christos Exp $ */
/* OpenBSD: if_iwm.c,v 1.148 2016/11/19 21:07:08 stsp Exp */
#define IEEE80211_NO_HT
/*
@@ -106,7 +106,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.77 2018/01/10 18:39:50 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.78 2018/01/21 18:12:37 christos Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -5248,6 +5248,7 @@
memset(preq, 0, sizeof(*preq));
+ KASSERT(ic->ic_des_esslen < sizeof(ic->ic_des_essid));
if (remain < sizeof(*wh) + 2 + ic->ic_des_esslen)
return ENOBUFS;
Home |
Main Index |
Thread Index |
Old Index