NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/50755: src/sys/arch/arm/omap/omap2430_intr.c:458: array index out of range ?



>Number:         50755
>Category:       port-arm
>Synopsis:       src/sys/arch/arm/omap/omap2430_intr.c:458: array index out of range ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 03 09:55:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160203
>Organization:
>Environment:
>Description:
[src/sys/arch/arm/omap/omap2430_intr.c:458]: (error) Array 'intrgroups[7]' accessed at index 7, which is out of bounds.

Source code is

    KASSERT((intrgroups[7].ig_pending_irqs & intrgroups[7].ig_irqsbyipl[ipl]) == 0);

but

    [6].ig_sources[ 0 ... 31 ].is_group = 6,
#ifdef OMAP_2430
    [7].ig_sources[ 0 ... 31 ].is_group = 7,
#endif

Suggest the KASSERT needs to go into a #ifdef OMAP_2430 block.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index