[PATCH 1/1] platform: generic: allwinner: avoid buffer overrun

Andreas Schwab schwab at linux-m68k.org
Tue Dec 27 05:03:54 PST 2022


On Dez 27 2022, Bin Meng wrote:

> Changing the array size to PLIC_SOURCES + 1 does not make sense. The
> PLIC_SOURCES should be 176 which is correct as it includes source 0 on
> the Allwinner SoC. The "riscv,ndev" [1] should not be 176 otherwise it
> will create a buffer overrun.

The range check will always allow that overrrun.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the opensbi mailing list