1 repository
Allocating the exact number of bytes for a type or string, including space for the null terminator, to prevent heap corruption.
Distinct from Memory Allocators: Distinct from Memory Allocators: focuses on the correctness of the size argument, not the implementation of the allocator itself.
Explore 1 awesome GitHub repository matching part of an awesome list · Correct Allocation Sizing. Refine with filters or upvote what's useful.
This is an open-source, crowd-sourced wiki textbook that teaches Linux system programming in C. It covers the core operating system concepts of process management through the fork-exec-wait model, dynamic memory allocation using implicit free list heap allocators, inode-based file systems, inter-process communication via pipes and shared memory, POSIX threads with synchronization primitives, signal-based asynchronous notification, virtual memory with page table translation, and runtime diagnostics using Valgrind and GDB. The textbook distinguishes itself by providing practical, implementation
Teaches allocating strlen(input)+1 bytes for strings to prevent buffer overflows.