-
-
Save livz/b3170940c578ded0e91d45e7cc845274 to your computer and use it in GitHub Desktop.
Script bug conditions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Compile test program | |
cl /nologo /EHsc Bug.c | |
REM Run the newly compiled binary. Bug not reproducible without this step! | |
Bug.exe | |
sleep 5 | |
REM Force rename to a different name | |
move /y Bug.exe Bug-Secret.exe > nul | |
REM Run the renamed file a few times | |
for /l %%x in (1, 1, 1) do ( | |
sleep 15 | |
Bug-Secret.exe | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment