Heap overflow attack

A cyberattack in which changes are made to data temporarily stored in dynamic memory. The pointers of adjacent memory locations are overwritten, allowing potential attackers to gain access to information that is otherwise off limits to them, or to execute arbitrary code on the device. Targeted attacks of this type are difficult to carry out, since it is near impossible to predict what data will be accessible after the change in relative addressing.