diff options
author | Nikita Popov <nikic@php.net> | 2014-04-23 19:05:16 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-04-23 19:34:51 +0200 |
commit | 08ae88157b4f73154b2f1ffe72c3957edb3772fc (patch) | |
tree | b4c1ae6e553379588d5b214d01297d476de3e4a7 /ext/sqlite3/sqlite3.c | |
parent | 20580a511c029582fd2be6c8efbed40c89f7a874 (diff) | |
download | php-git-08ae88157b4f73154b2f1ffe72c3957edb3772fc.tar.gz |
Allocate zend_strings with correct size
For me (32bit) sizeof(zend_string) is 20, which means that the
char[1] array at the end is padded with three bytes. Thus allocating
based on sizeof(zend_string)-1 overallocates by those 3 padding bytes.
This commit fixes the allocation size, by using XtOffsetOf.
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
0 files changed, 0 insertions, 0 deletions