[Top][All Lists]

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

[Chicken-hackers] [PATCH] chicken-do: Avoid buffer overrun when preparin

From: Evan Hanson
Subject: [Chicken-hackers] [PATCH] chicken-do: Avoid buffer overrun when preparing Windows command line
Date: Tue, 1 Jan 2019 11:02:39 +1300

Hello, here's a fix for a bug I encountered while testing Felix's recent
patch on Windows.

The buffer used for the command line executed by chicken-do had size
MAX_PATH, but that's quite short (only 260) so the program would almost
always write beyond it and into the locals passed to CreateProcess(),
causing that call to fail. This patch grows the buffer to the maximum
length handled by CreateProcess() and adds a check for truncation.



Attachment: 0001-chicken-do-Avoid-buffer-overrun-when-preparing-Windo.patch
Description: Text Data

reply via email to

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