[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] unwind_prot.c: Avoid buffer overflow

From: Chet Ramey
Subject: Re: [PATCH] unwind_prot.c: Avoid buffer overflow
Date: Mon, 29 Jun 2020 11:04:08 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

On 6/27/20 5:14 PM, Jessica Clarke wrote:
> In unwind_protect_mem_internal, we must make sure to allocate at least a
> full UNWIND_ELT, even if the required size for desired_setting is less
> than the remaining padding in UNWIND_ELT. Otherwise when we come to
> memset it with 0xdf in unwind_frame_discard_internal we will overflow
> the allocation.

Thanks for the fix.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]