31432c9ff1
loader is also present in the coff loader. It was possible to get one more page allocated than needed, which would cause brk()/malloc()/etc to fail with ENOMEM when it tried to re-allocate the space. Also, change a bcopy() from kernel to user space to a copyout().