[Bug 229507] src/sys/arm/cavium/cns11xx/econa.c:392: array index out of range ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 4 08:47:37 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229507

            Bug ID: 229507
           Summary: src/sys/arm/cavium/cns11xx/econa.c:392: array index
                    out of range ?
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm at FreeBSD.org
          Reporter: dcb314 at hotmail.com

src/sys/arm/cavium/cns11xx/econa.c:392]: (error) Array 'intc_trigger_table[25]'
accessed at index 31, which is out of bounds.

Source code is

        for (i = 0; i < 32; i++) {
                if (intc_trigger_table[i].mode != INTC_TRIGGER_UNKNOWN) {

Compiling this code with compiler flag -D_FORTIFY_SOURCE=2 would also
find this problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list