[PATCH] Fix out-of-bounds array access when setting arm float registers

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 11:02:02 PDT 2015


On Thu, Aug 20, 2015 at 8:28 PM, Saleem Abdulrasool
<compnerd at compnerd.org> wrote:
> On Thu, Aug 20, 2015 at 2:13 PM, Hans Wennborg <hans at chromium.org> wrote:
>>
>> +Saleem and Renato; maybe you can take a look?
>
>
> Thanks for pointing this out!
>
> The patch is correct and pretty safe to apply for 3.7 I think since its a
> simple bug fix, and can result in VFP state corruption (the invalid memory
> access in this case shouldn't access to arbitrary memory fortunately).  I've
> applied to trunk as SVN r245665.  Should I send a request on the thread for
> the actual commit?

It's too late to get this into 3.7.0, but it seems like a good
candidate for 3.7.1. I'll put it on my list and we can merge it when
Tom starts preparing the dot-release.

Thanks,
Hans


>> On Tue, Aug 18, 2015 at 11:24 AM, Leandro GraciĆ” Gil
>> <cfe-commits at lists.llvm.org> wrote:
>> > Hi,
>> >
>> > Please find attached a patch fixing an out-of-bounds array access
>> > present in
>> > the current libunwind top of tree code.
>> >
>> > The problem is caused by subtracting the wrong base register in
>> > Registers_arm::SetFloatRegister and should become obvious after taking a
>> > quick look to the code.
>> >
>> > Could someone please commit this to trunk and merge it to the release 37
>> > branch?


More information about the cfe-commits mailing list