Example use case:
Prepare the following SQL statement:
"INSERT INTO tbl (a,b) VALUES (?,?); SELECT 1 FROM tbl WHERE c = ?"
First execution of prepared statement will work, second execution will segfault or cause memory corruption.
Problem is caused because parameter storage is reallocated for second sub-statement, but not re-adjusted for first sub-statement the next time prepared statement is executed.