


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of memory management in operating systems, focusing on explicit memory allocation and associated errors. The concept of memory management as a run-time system, explicit memory management using functions like malloc and realloc, and common errors such as dangling pointers and buffer overflows.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



CMPSCI 377 Operating Systems Fall 2005
Lecturer: Emery Berger Scribe: Eric Hodge, Eric Patrick
Today:
Dangling Pointer Error: P = malloc() x=p
14-2 Lecture 14: November 10
Free(p) Z = malloc() z... x...
z may have overwritten x -you had a pointer to some space -but now you’ve freed it -and now it can be overwritten -you can still try to reference it without no guarantees
Buffer overflow
Some other errors...
What malloc() actually does:
mmap():
14-4 Lecture 14: November 10