Subject: which class for unknown CPU
To: None <port-i386@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-i386
Date: 03/22/2006 22:00:31
Hi,
coverity found and issue in identcpu.c; identifycpu() can overflow classname[]
by one. The cause is at line 1166, where setting family to CPU_MAXFAMILY
for unknown CPU.

Should we extend the classname[] array, adding an "unknown" at the end,
or fall back to the lowest class (i386) in this case ?
The second makes more sense to me.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--