A
A
Alexander2019-06-20 22:32:02
C++ / C#
Alexander, 2019-06-20 22:32:02

How to break the OS by working with pointers in C?

How can one crash (any other result) the OS intentionally or unintentionally using pointers?
Dereferencing NULL isn't that interesting, at least not as long as the protection kicks in.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2019-06-20
@aleks0010

Normally written OS with memory protection - in any way.
A normally written OS with no memory protection -- writing to memory outside the program's address space.
An OS written with bugs -- using those bugs to trick the kernel into writing to memory outside the program's address space.

R
Ronald McDonald, 2019-06-20
@Zoominger

In XP it was possible, lol, they even wrote code in textbooks.
In modern Windows, no way. If only the curve driver is written (hello Nvidia).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question