"Theo de Raadt" <dera...@openbsd.org> wrote: ... |> If your code triggers the memcpy() log+abort, then the code only works |> elsewhere because the compiler isn't smart enough. Yet. | |How about undefined behaviour such as the following: | |if (backwards) { | fprintf(stderr, " ----------\n"); | fprintf(stderr, " / \\\n"); | fprintf(stderr, " / REST \\\n"); | fprintf(stderr, " / IN \\\n"); | fprintf(stderr, " / PEACE \\\n"); | fprintf(stderr, " / \\\n"); | fprintf(stderr, " | Steffen |\n"); | fprintf(stderr, " | 0 Au |\n"); | fprintf(stderr, " | killed by a |\n"); | fprintf(stderr, " | backward |\n"); | fprintf(stderr, " | memcpy |\n"); | fprintf(stderr, " | 2017 |\n"); | fprintf(stderr, " *| * * * | *\n"); | fprintf(stderr, " _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______\n");
(HA-HA-HA!) | reboot(RB_NOSYNC); | abort(); |} ..so slowly goes the night. --steffen