On 06/16/14 04:12, Kyrill Tkachov wrote:


Doh, you're right. I did consider it but for some reason thought we
might want to iterate over all of the bypasses anyway. Breaking out
seems good.

How about this?
Tested on arm and aarch64 and confirmed with valgrind that no out of
bounds accesses occur.
I kicked off an x86_64 bootstrap but don't expect any problems.

Thanks,
Kyrill

genattrtab-bypasses.patch


commit 676b85f7a7cc1446482334dcaad457ac328875a8
Author: Kyrylo Tkachov<kyrylo.tkac...@arm.com>
Date:   Fri Jun 13 11:09:57 2014 +0100

     [genattrtab] Fix memory corruption with bypasses
I'm an idiot. n_bypassed is used to size the vector, so you do have to walk the entire list.

Jeff



Reply via email to