From c0c9fc3267ce5b852e61d8cb879ebe81268a7ab9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 19 Oct 2008 22:57:28 -0700 Subject: [PATCH] Fixed buffer reallocation in dbi.mysql leaving stale pointers behind and crashing (bug 3352). --- extensions/mysql/mysql/MyBoundResults.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/mysql/mysql/MyBoundResults.cpp b/extensions/mysql/mysql/MyBoundResults.cpp index 2cab11f3..aca9f5f3 100644 --- a/extensions/mysql/mysql/MyBoundResults.cpp +++ b/extensions/mysql/mysql/MyBoundResults.cpp @@ -297,6 +297,7 @@ bool MyBoundResults::RefetchField(MYSQL_STMT *stmt, ResizeBuffer(rbind, initSize); /* Update the bind with the buffer size */ + m_bind[id].buffer = rbind->blob; m_bind[id].buffer_length = (unsigned long)rbind->length; m_bUpdatedBinds = true;