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

Linus Walleij linus.walleij at linaro.org
Wed Apr 12 05:25:36 PDT 2023


On Wed, Apr 12, 2023 at 4:44 AM Haibo Li <haibo.li at mediatek.com> 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



More information about the Linux-mediatek mailing list