Skip to content

Commit 0f3e5a3

Browse files
author
Sergey Kartashoff
committed
Security fix in Udm_Set_Agent_Param function.
1 parent 9b131c2 commit 0f3e5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mnogosearch/php_mnogo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param)
607607
#if UDM_VERSION_ID > 30112
608608

609609
case UDM_PARAM_VARDIR:
610-
sprintf(Agent->Conf->vardir,"%s%s",val,UDMSLASHSTR);
610+
udm_snprintf(Agent->Conf->vardir,sizeof(Agent->Conf->vardir)-1,"%s%s",val,UDMSLASHSTR);
611611

612612
break;
613613

0 commit comments

Comments
 (0)