Module Name: src
Committed By: knakahara
Date: Wed Aug 3 08:25:38 UTC 2016
Modified Files:
src/sys/sys: intrio.h
Log Message:
intrid and dev_xname must be NUL terminated by kernel.
pointed out by [email protected]
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/sys/intrio.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/intrio.h
diff -u src/sys/sys/intrio.h:1.1 src/sys/sys/intrio.h:1.2
--- src/sys/sys/intrio.h:1.1 Mon Aug 17 06:16:03 2015
+++ src/sys/sys/intrio.h Wed Aug 3 08:25:38 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: intrio.h,v 1.1 2015/08/17 06:16:03 knakahara Exp $ */
+/* $NetBSD: intrio.h,v 1.2 2016/08/03 08:25:38 knakahara Exp $ */
/*
* Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -47,9 +47,12 @@ struct intrio_list_line_cpu {
};
struct intrio_list_line {
- char ill_intrid[INTRIDBUF];
- char ill_xname[INTRDEVNAMEBUF];
- struct intrio_list_line_cpu ill_cpu[1]; /* Array size is overwritten to ncpu. */
+ char ill_intrid[INTRIDBUF]; /* NUL terminated. */
+ char ill_xname[INTRDEVNAMEBUF]; /* NUL terminated. */
+ struct intrio_list_line_cpu ill_cpu[1]; /*
+ * Array size is overwritten
+ * to ncpu.
+ */
};
struct intrio_list {