News for hackers. Stuff that matters.
Re:The case of a program that crashed on its first instruction by lieks on Friday November 08, 2024 @04:50PM (#42090743)

    /* Optimize a program.
       May perform unsafe optimizations.
       May introduce up to 1 bug.
     */
    char *optimize(char *program) {
        (void) program;
        return ".export main\nmain:\n\tub2\n";
    }
Re:The case of a program that crashed on its first instruction by BobbyTables2 on Friday November 08, 2024 @08:05PM (#42091759)
That’s golden!

Can even make it half the size with an instruction that is invalid in 64bit mode, maybe such as INTO

Re:The case of a program that crashed on its first instruction by rep_lodsb on Saturday November 09, 2024 @09:12AM (#42094516)
And that instruction can be removed too: zero byte ".text" section -> page fault