[PATCH] arm: fix array-out-of-bounds upon register parsing error

Jan Beulich jbeulich@suse.com
Thu Jun 10 10:45:16 GMT 2021


On 10.06.2021 12:29, Richard Earnshaw wrote:
> OK.

Thanks, committed.

> I wonder if we could somehow build in an assert to check this.  Even 
> better would be a static assertion during compilation, but that might be 
> harder.

A Linux-like (or wherever its origin) BUILD_BUG_ON() shouldn't be that
hard to put in, even if _Static_assert() can't be used (unconditionally)
just yet.

Jan



More information about the Binutils mailing list