I'm currently learning about stack and heap memory in C++. I have read that heap overflows are 'dangerous' as they can overwrite other code which can obviously mess up the program: dangers of heap overflows?
My question is whether anything will happen to the rest of my computer? When I'm doing practice questions/experimenting with heap memory, I don't want to screw up my laptop (I broke my previous one). I don't mind my heap practice programs not working as long as I can still run other programs like nothing happened. I have a feeling modern OSes have protections against overflows, and this question may seem naive, but I'm too scared for my laptop, so don't judge.