mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Pass on nul'ified data
This commit is contained in:
parent
f6ed403fde
commit
4a1943c542
1 changed files with 4 additions and 0 deletions
|
@ -296,6 +296,8 @@ PS_SERIALIZER_ENCODE_FUNC(php_binary)
|
|||
smart_str_appendc(&buf, (unsigned char) (key_length & PS_BIN_UNDEF));
|
||||
smart_str_appendl(&buf, key, key_length);
|
||||
);
|
||||
|
||||
smart_str_0(&buf);
|
||||
|
||||
if (newlen) *newlen = buf.len;
|
||||
*newstr = buf.c;
|
||||
|
@ -363,6 +365,8 @@ PS_SERIALIZER_ENCODE_FUNC(php)
|
|||
smart_str_appendl(&buf, key, key_length);
|
||||
smart_str_appendc(&buf, PS_DELIMITER);
|
||||
);
|
||||
|
||||
smart_str_0(&buf);
|
||||
|
||||
if (newlen) *newlen = buf.len;
|
||||
*newstr = buf.c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue