chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] Another argvector memcpy misuse causing se


From: felix . winkelmann
Subject: Re: [Chicken-hackers] [PATCH] Another argvector memcpy misuse causing segfaults
Date: Sun, 06 Sep 2015 00:14:50 +0200

> Alexander Shendi reported that syntax-tests.scm triggered a segfault
> on OpenBSD 5.7, but only when compiling with clang.  I was able to
> reproduce it in a VM, and the stack trace pointed to C_apply at
> runtime.c:5975.
>
> The stack trace contained a call to C_apply which was called from
> C_apply!  That means that in some cases C_apply may call itself,
> and it will do so with C_temporary_stack_limit as the argvector.
> Then, when the second C_apply copies its argvector onto the
> temporary stack, that will trigger an overlapping copy onto the
> same memory region.
>

Signed off and pushed.


felix




reply via email to

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