diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-04-26 11:28:01 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-04-26 11:28:01 +0200 |
commit | d56d039d95d14dfa39fb1e3630e508bf48982c49 (patch) | |
tree | 4ec8984845b893ab7409aaaedb2e69ac95e2b023 /redhat/applications/koffice/kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch | |
parent | a513a89bebab63ea439e7f6090cf474c67a7a3b0 (diff) | |
download | tde-packaging-d56d039d95d14dfa39fb1e3630e508bf48982c49.tar.gz tde-packaging-d56d039d95d14dfa39fb1e3630e508bf48982c49.zip |
RHEL/Fedora: updates koffice 3.5.13
Diffstat (limited to 'redhat/applications/koffice/kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch')
-rw-r--r-- | redhat/applications/koffice/kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/redhat/applications/koffice/kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch b/redhat/applications/koffice/kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch new file mode 100644 index 000000000..0be9764e3 --- /dev/null +++ b/redhat/applications/koffice/kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch @@ -0,0 +1,27 @@ +--- kexi/kexidb/drivers/sqlite/sqlitecursor.cpp 2006/10/26 19:25:03 599352 ++++ kexi/kexidb/drivers/sqlite/sqlitecursor.cpp 2007/10/01 19:29:39 719720 +@@ -324,19 +324,21 @@ + } + + //debug +-/* +- if (m_result == FetchOK && d->curr_coldata) { ++/* if (((int)m_result == (int)FetchOK) && d->curr_coldata) { + for (uint i=0;i<m_fieldCount;i++) { + KexiDBDrvDbg<<"col."<< i<<": "<< d->curr_colname[i]<<" "<< d->curr_colname[m_fieldCount+i] + << " = " << (d->curr_coldata[i] ? TQString::fromLocal8Bit(d->curr_coldata[i]) : "(NULL)") <<endl; + } +-// KexiDBDrvDbg << "SQLiteCursor::drv_getNextRecord(): "<<m_fieldCount<<" col(s) fetched"<<endl; ++ KexiDBDrvDbg << "SQLiteCursor::drv_getNextRecord(): "<<m_fieldCount<<" col(s) fetched"<<endl; + }*/ + } + + void SQLiteCursor::drv_appendCurrentRecordToBuffer() + { + // KexiDBDrvDbg << "SQLiteCursor::drv_appendCurrentRecordToBuffer():" <<endl; ++ if (!d->curr_coldata) ++ return; ++ + if (!d->cols_pointers_mem_size) + d->cols_pointers_mem_size = m_fieldCount * sizeof(char*); + const char **record = (const char**)malloc(d->cols_pointers_mem_size); |