(Include a diagram)
Please answer all parts of the question
// Heap overflow can be achieved in one way by allocating large memory
//either a large chunkof memory or continuous allocation
#include<stdio.h>
int main()
{
for (int i=0; i<20000000; i++)
{
// Allocating memory without freeing it
int *ptr = (int *)malloc(sizeof(int));
}
}
Get Answers For Free
Most questions answered within 1 hours.