你好,世界堆溢出的例子吗?

|                                                                                                                       
已邀请:
#include <stdlib.h>
#include <string.h>

int main()
{
    const size_t t=1<<24;
    while(1)
        memset(malloc(t), 0xDE, t);
}
很快就将其杀死了!     

要回复问题请先登录注册