mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
Robustify the var_defined function -- don't crash if variable value is a
single quote. Patch from Lewis Hyatt. [SVN r31119]
This commit is contained in:
@@ -121,7 +121,7 @@ var_defines( char *const* e, int preprocess )
|
||||
# endif
|
||||
size_t len = strlen(val + 1);
|
||||
|
||||
int quoted = val[1] == '"' && val[len] == '"';
|
||||
int quoted = val[1] == '"' && val[len] == '"' && len > 1;
|
||||
|
||||
if ( quoted && preprocess )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user