[llvm-commits] [PATCH] Fix for bug in exception table allocation

Jim Grosbach grosbach at apple.com
Wed Dec 19 11:40:44 PST 2012


Thanks, Michael. Looking.
-j
On Dec 19, 2012, at 10:55 AM, Michael Muller <mmuller at enduden.com> wrote:

> 
> See http://llvm.org/bugs/show_bug.cgi?id=13678 for more history.
> 
> See also:
>  http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-August/052766.html
>  http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120910/150422.html
>  http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120917/150801.html
>  http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-December/056829.html
> 
> When you run out of space writing to a buffer, the buffer management code
> simply stops writing at the end of the buffer.  It is the responsibility of
> the caller to verify that it has stayed in bounds and perform a retry with
> a larger memory estimate if not.  The function writing code does this, but
> the exception table code following it does not.  The end result is that
> exception table pointers can get registered pointing to invalid data, causing
> seg-faults when an exception is thrown.
> 
> =============================================================================
> michaelMuller = mmuller at enduden.com | http://www.mindhog.net/~mmuller
> -----------------------------------------------------------------------------
> Lokah Samasta Sukhino Bhavantu - May all beings everywhere be happy and free.
> And may my own thoughts and actions contribute to that happiness and freedom.
> =============================================================================<ExceptionTableOverflowFix-v4.patch>




More information about the llvm-commits mailing list