From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Date: Tue, 27 Dec 2022 15:06:00 +0100 Subject: [PATCH 1/1] platform: generic: allwinner: avoid buffer overrun In-Reply-To: (Bin Meng's message of "Tue, 27 Dec 2022 21:49:07 +0800") References: <20221227110129.145976-1-heinrich.schuchardt@canonical.com> <374eb91d-e580-3583-accf-0d0e3a3687ea@canonical.com> <87cz85dmmd.fsf@igel.home> <878ritdl45.fsf@igel.home> Message-ID: <874jthdjqv.fsf@igel.home> List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Dez 27 2022, Bin Meng wrote: > Passing num = 200 to plic_priority_save/restore. > > You can argue my example is a misuse of the API, It is a bug just like the bug in plic_priority_save/restore. > but I can argue a wrong dtb should not be in the first place too. The dtb is an external resource. -- 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."