int main()
{
while(true)
malloc(50);
return 0;
}
The loop is now infinite, but the memory will sooner or later be exhausted. At that point, malloc will not allocate anymore, but the loop will still cycle forever. It will be very hard to stop it, having no more resource to create another process to kill the cycling one ...
2 bugs found. > recompile ... 65534 bugs found. :doh: