[syslinux] [PATCH 2/2] core: Fix stack overflow when reloading config

H. Peter Anvin hpa at zytor.com
Thu Jan 21 12:51:50 PST 2016


On 10/12/15 21:04, celelibi--- via Syslinux wrote:
> From: Sylvain Gault <sylvain.gault at gmail.com>
> 
> The behavior when running a "CONFIG" command line is to reload
> ldlinux.c32 with the new file as argument. This call never return.
> 
> In order to avoid stacking up the calls to start_ldlinux, this patch
> introduce a setjmp/longjmp to return to the first call to start_ldlinux,
> thus freeing all the stack space.
> 
> Signed-off-by: Sylvain Gault <sylvain.gault at gmail.com>

We don't re*load* ldlinux.c32, I hope?  I assume we just re-execute it?

	-hpa




More information about the Syslinux mailing list