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]); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"