Bug 229507 - src/sys/arm/cavium/cns11xx/econa.c:392: array index out of range ?
Summary: src/sys/arm/cavium/cns11xx/econa.c:392: array index out of range ?
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-04 08:47 UTC by David Binderman
Modified: 2019-01-07 05:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2018-07-04 08:47:36 UTC
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.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2019-01-07 05:35:45 UTC
This code removed in 12, closing.