堆破壞實例

int main() { /* heap_broken.cpp int n; char* p = NULL; while (1) { p = (char*)malloc(10); strcpy(p, "01234567890lllllllllllllllllllllllllllllllllllllll"); p = (char*)malloc(10); } }
相關文章
相關標籤/搜索