SHARE
TWEET

Untitled

a guest Jun 19th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int create_buffer(void** ptr, ...)
  2. {
  3.     *ptr = malloc(...);
  4.     ...
  5. }
  6.  
  7. int main(void)
  8. {
  9.     double* buffer;
  10.  
  11.     // The problematic code is here, double**
  12.     // is coerced to void**, which is later
  13.     // dereferenced by the function
  14.     create_buffer((void**)&buffer, ...);
  15.     ...
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top