mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Fixed a problem in the configuration scanner where two extra NULL bytes
were added to each encapsulated string.
This commit is contained in:
parent
e9887156cf
commit
aee3c65a8f
2 changed files with 4 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -2,6 +2,8 @@ PHP 4.0 NEWS
|
||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
|
|
||||||
11 Oct 2000, Version 4.0.3
|
11 Oct 2000, Version 4.0.3
|
||||||
|
- Fixed a problem in the configuration parser (two null bytes were added
|
||||||
|
to each ENCAPSULATED TC_STRING) (alex@zend.com)
|
||||||
- Fixed a possible crash in -a interactive mode (Zeev, Zend Engine)
|
- Fixed a possible crash in -a interactive mode (Zeev, Zend Engine)
|
||||||
- Added mysql_escape_string() (Peter A. Savitch and & Brian Wang)
|
- Added mysql_escape_string() (Peter A. Savitch and & Brian Wang)
|
||||||
- Fixed many possible crash bugs with improper use of the printf() family of
|
- Fixed many possible crash bugs with improper use of the printf() family of
|
||||||
|
|
|
@ -113,8 +113,8 @@ void init_cfg_scanner()
|
||||||
/* eat leading " */
|
/* eat leading " */
|
||||||
yytext++;
|
yytext++;
|
||||||
|
|
||||||
cfglval->value.str.val = zend_strndup(yytext,yyleng);
|
cfglval->value.str.val = zend_strndup(yytext, yyleng - 2);
|
||||||
cfglval->value.str.len = yyleng;
|
cfglval->value.str.len = yyleng - 2;
|
||||||
cfglval->type = IS_STRING;
|
cfglval->type = IS_STRING;
|
||||||
return TC_ENCAPSULATED_STRING;
|
return TC_ENCAPSULATED_STRING;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue