Biography has not been added
- Understanding C pointers, and using them
Hopefully, the example of allocateArray code is from Chapter 7:Security Issues and the Improper Use of Pointers. You know, even though parameter arr is pointer, it is itself transferred from caller to callee by value. Thus, when the function allocateArray finally returns, callee's arr variable is discarded, and caller's 'lets_call_it_arr' variable will be unchanged, leading to memory leaks on callee side and possibly memory corruption on caller side.
- The normal distribution
Great article, thank you.