File: test_bug.c

package info (click to toggle)
set6x86 1.5-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 144 kB
  • ctags: 50
  • sloc: ansic: 460; makefile: 47; sh: 31
file content (12 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
/* This program is DANGEROUS: it will lock (freeze) your system */
/* Read all the available documentation before executing it */

static unsigned char c[4] = {0x36, 0x78, 0x38, 0x36};
main()
{
asm ("movl	$c, %ebx\n\t"
"again:	xchgl	(%ebx), %eax\n\t"
	"movl	%eax, %edx\n\t"
	"jmp	again\n\t");
}