logoalt Hacker News

ivanjermakov12/09/20242 repliesview on HN

What kind of disaster? Wouldn't OS security prevent userspace program do destructive things?


Replies

chlorion12/10/2024

It depends.

You can corrupt memory in such a way that allows executing arbitrary code, in which you could do anything that the process has privilege to do, which is probably reading and writing files as the current user and a lot more.

codr712/11/2024

A userspace process can be capable of pretty destructive things, and they're all on the menu in C, especially without Valgrind.