aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-12-08 16:08:10 +0000
committerdrh <drh@noemail.net>2015-12-08 16:08:10 +0000
commitea06a271a4cfd530325c35a5a9ba00e185059bd2 (patch)
tree24705f193f62afdd946c808ce7a6ece811e5f54d /src/sqliteInt.h
parent92a82771498c19c39abaa3754ff0d307ad7da9dd (diff)
downloadsqlite-ea06a271a4cfd530325c35a5a9ba00e185059bd2.tar.gz
sqlite-ea06a271a4cfd530325c35a5a9ba00e185059bd2.zip
Avoid doing comparisons with pointers that might have been previously been
passed to realloc() and/or free(). FossilOrigin-Name: f20396adb2cff12a17a3fc90b36241ae3fdfd62a
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 338a57325..0d477dc06 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2952,6 +2952,7 @@ struct StrAccum {
int nAlloc; /* Amount of space allocated in zText */
int mxAlloc; /* Maximum allowed allocation. 0 for no malloc usage */
u8 accError; /* STRACCUM_NOMEM or STRACCUM_TOOBIG */
+ u8 bMalloced; /* zText points to allocated space */
};
#define STRACCUM_NOMEM 1
#define STRACCUM_TOOBIG 2