- Rebase master (Now all unit tests pass)
- Fix seanbright review issue: ast_var_set problems
Resolution: Turns out that it's not so simple to just overwrite the
existing string. Best option is to just remove and add like everyone else
Resolves: Memory overwrite when overwriting existing group variable
with larger string
@ -2463,9 +2463,8 @@ int ast_app_group_set_var(struct ast_channel *chan, const char *group, const cha
structast_group_meta*gmi=NULL;
structvarshead*headp;
structast_var_t*newvariable=NULL;
intexisting_var_found=0;
structast_var_t*variable=NULL;
if(!group||!name){
ast_log(LOG_WARNING,"<%s> GROUP variable assignment failed for %s@%s, group/name cannot be NULL, group variable '%s' not set\n",ast_channel_name(chan),group,category,name);
return-2;
@ -2488,22 +2487,17 @@ int ast_app_group_set_var(struct ast_channel *chan, const char *group, const cha