A simple truism: memory issues exist. The very fact that we program in languages such as C (and C++) implicitly gives rise to literally infinite types of issues! At some point, one realizes (perhaps a bit pessimistically) that programming with care in a managed memory-safe language is ultimately the (only?) realistic way to avoid memory issues altogether.
However, here we are, working with our power tool of choice: the eminent and venerable C programming language! So, what we can do to mitigate, if not eliminate, common memory issues, is the topic of this chapter. Ultimately, the goal is to be truly memory-safe; well, that's easier said than done!
Nevertheless, we shall attempt to have the developer successfully undertake this task by throwing light on the common memory issues they will likely face. In the chapter that follows, we will look into how some...