svn commit: r330275 - stable/11/sys/x86/x86
Konstantin Belousov
kib at FreeBSD.org
Fri Mar 2 10:57:47 UTC 2018
Author: kib
Date: Fri Mar 2 10:57:46 2018
New Revision: 330275
URL: https://svnweb.freebsd.org/changeset/base/330275
Log:
MFC r329864:
Do not return out of bound pointers from intr_lookup_source().
Modified:
stable/11/sys/x86/x86/intr_machdep.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/x86/x86/intr_machdep.c
==============================================================================
--- stable/11/sys/x86/x86/intr_machdep.c Fri Mar 2 08:59:53 2018 (r330274)
+++ stable/11/sys/x86/x86/intr_machdep.c Fri Mar 2 10:57:46 2018 (r330275)
@@ -167,6 +167,8 @@ struct intsrc *
intr_lookup_source(int vector)
{
+ if (vector < 0 || vector >= nitems(interrupt_sources))
+ return (NULL);
return (interrupt_sources[vector]);
}
More information about the svn-src-stable-11
mailing list