diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/malloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/malloc.c b/src/malloc.c index 85ba9468c..948eb91d1 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -307,6 +307,7 @@ void *sqlite3Malloc(int n){ }else{ p = sqlite3GlobalConfig.m.xMalloc(n); } + assert( EIGHT_BYTE_ALIGNMENT(p) ); /* IMP: R-36023-12588 */ return p; } @@ -544,6 +545,7 @@ void *sqlite3Realloc(void *pOld, int nBytes){ }else{ pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); } + assert( EIGHT_BYTE_ALIGNMENT(pNew) ); /* IMP: R-36023-12588 */ return pNew; } |