Chapter 7 File I/O
1. David Riley is a Professor of Computer Science at the University of Wisconsin-LaCrosse.
But, when I came,—some minute ere the timeOf her awakening,—here untimely layThe noble Paris and true Romeo, dead.
—William Shakespeare, Romeo and Juliet, Act V, Scene 3
C and C++ programs commonly read and write to files as part of their normal operations. Numerous vulnerabilities have resulted from irregularities in how these programs interact with the file system—the operation of which is defined by the underlying operating system. Many of these irregularities are caused by race conditions—a consequence of the use of concurrency in modern computer systems. As a result, this chapter begins with a brief discussion ...
Get Secure Coding in C and C++ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.