https://bugs.documentfoundation.org/show_bug.cgi?id=117446
--- Comment #7 from Julien Nabet <[email protected]> ---
Here's a bandaid patch:
iff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx
b/connectivity/source/drivers/firebird/PreparedStatement.cxx
index 0a43d5c93851..61adf79b5637 100644
--- a/connectivity/source/drivers/firebird/PreparedStatement.cxx
+++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx
@@ -843,6 +843,11 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32
nParameterIndex,
xBytesCopy.realloc( nMaxSize );
}
const short nSize = xBytesCopy.getLength();
+ if (nSize > 8000)
+ {
+ free(pVar->sqldata);
+ pVar->sqldata = static_cast<char *>(calloc(nSize + 2,
sizeof(char)));
+ }
memcpy(pVar->sqldata, &nSize, 2);
// Actual data
memcpy(pVar->sqldata + 2, xBytesCopy.getConstArray(), nSize);
I use calloc to be sure not letting garbage in allocated memory.
With this, it doesn't crash but I don't see the image in the form.
BTW, I unzipped the odb file and don't see where the image is.
Lionel/Tamas: any thoughts about this patch?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs