Re: [PATCH] ARM:unwind:fix unwind abort for uleb128 case

From: Linus Walleij
Date: Wed Apr 12 2023 - 08:26:35 EST


On Wed, Apr 12, 2023 at 4:44 AM Haibo Li <haibo.li@xxxxxxxxxxxx> wrote:

> > Since we're decoding a 32 bit unsigned long maybe break the loop after max
> > 5 bytes (35 bits)? Or are we sure this will not happen?

> in case of some corrupted memory containing say 0xff 0xff 0xff ...,the loop breaks after
> max 4 bytes(decode as max 28 bits)

You're obviously right, I must have been too tired to understand the
==sizeof() break;

Thanks!
Linus Walleij