Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int create_buffer(void** ptr, ...)
- {
- *ptr = malloc(...);
- ...
- }
- int main(void)
- {
- double* buffer;
- // The problematic code is here, double**
- // is coerced to void**, which is later
- // dereferenced by the function
- create_buffer((void**)&buffer, ...);
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement