diff --git a/content/chapters/part1/chapter-04.md b/content/chapters/part1/chapter-04.md index a1ebf43..62ca580 100644 --- a/content/chapters/part1/chapter-04.md +++ b/content/chapters/part1/chapter-04.md @@ -3730,8 +3730,13 @@ To illustrate the subtlety of this class of bug, try the following small program ```c #include +#include int main() { + // Fill stack with non-zero garbage + char garbage[100]; + memset(garbage, 'Z', sizeof(garbage)); + // Deliberately forget the null terminator char broken[5] = {'B', 'S', 'D', '!', 'X'};