X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FWindowsBugCrashReader.cc;fp=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FWindowsBugCrashReader.cc;h=0000000000000000000000000000000000000000;hp=e6d9558df635a2bcf52d606e9478a689ce142a2a;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc b/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc deleted file mode 100644 index e6d9558..0000000 --- a/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +++ /dev/null @@ -1,27 +0,0 @@ -// I noticed this on the ConEmu web site: -// -// https://social.msdn.microsoft.com/Forums/en-US/40c8e395-cca9-45c8-b9b8-2fbe6782ac2b/readconsoleoutput-cause-access-violation-writing-location-exception -// https://conemu.github.io/en/MicrosoftBugs.html -// -// In Windows 7, 8, and 8.1, a ReadConsoleOutputW with an out-of-bounds read -// region crashes the application. I have reproduced the problem on Windows 8 -// and 8.1, but not on Windows 7. -// - -#include - -#include "TestUtil.cc" - -int main() { - setWindowPos(0, 0, 1, 1); - setBufferSize(80, 25); - setWindowPos(0, 0, 80, 25); - - const HANDLE conout = openConout(); - static CHAR_INFO lineBuf[80]; - SMALL_RECT readRegion = { 0, 999, 79, 999 }; - const BOOL ret = ReadConsoleOutputW(conout, lineBuf, {80, 1}, {0, 0}, &readRegion); - ASSERT(!ret && "ReadConsoleOutputW should have failed"); - - return 0; -}