Bug of the week

Wednesday, 28 Mar 2012

Lukas Mai:

The following code is somewhat silly, but gcc should either compile it correctly or print an error message, not generate invalid asm[:]

int $1 = -1;
int main(void) { $1++; return $1; }

Assembler injection attacks, here we come!