mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 19:39:40 +00:00
csource: fix fork bomb
This commit is contained in:
parent
746f74d254
commit
4ca49b389a
@ -85,6 +85,7 @@ func Write(p *prog.Prog, opts Options) ([]byte, error) {
|
||||
fmt.Fprint(w, "\t\tif (fork() == 0) {\n")
|
||||
fmt.Fprintf(w, "\t\t\tsetup_main_process(i, %v);\n", enableTun)
|
||||
fmt.Fprintf(w, "\t\t\tdo_sandbox_%v();\n", opts.Sandbox)
|
||||
fmt.Fprint(w, "\t\t\treturn 0;\n")
|
||||
fmt.Fprint(w, "\t\t}\n")
|
||||
fmt.Fprint(w, "\t}\n")
|
||||
fmt.Fprint(w, "\tsleep(1000000);\n")
|
||||
|
Loading…
Reference in New Issue
Block a user