Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2011 01:42:55 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        FreeBSD current <freebsd-current@FreeBSD.org>
Subject:   array index of '-16' indexes before the beginning of the array
Message-ID:  <4ED2CAFF.7070608@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

Looks like clang has found a real issue here:
/usr/src/sys/x86/x86/local_apic.c:311:2: warning: array index of '-16' indexes
before the beginning of the array [-Warray-bounds]
        lapics[apic_id].la_ioint_irqs[IDT_DTRACE_RET - APIC_IO_INTS] =
IRQ_DTRACE_RET;

IDT_DTRACE_RET (0x20) indeed seems to be less than APIC_IO_INTS.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ED2CAFF.7070608>