Calling strncpy with a maximum size argument of (32) on destination buffer '(pool)->obj_name' of size (32) can possibly leave the destination buffer lacking null-termination
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1633 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
ae63e5583f
commit
152d1e525d
|
@ -159,6 +159,7 @@ PJ_DEF(void) pj_pool_init_int( pj_pool_t *pool,
|
|||
name, pool);
|
||||
} else {
|
||||
pj_ansi_strncpy(pool->obj_name, name, PJ_MAX_OBJ_NAME);
|
||||
pool->obj_name[PJ_MAX_OBJ_NAME-1] = '\0';
|
||||
}
|
||||
} else {
|
||||
pool->obj_name[0] = '\0';
|
||||
|
|
Loading…
Reference in New Issue