Re #1643: Fix crash due to insufficient command buffer size in get_cmd_name()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4589 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
973c64d9ed
commit
850f8872a3
|
@ -288,7 +288,7 @@
|
|||
|
||||
/**
|
||||
* Maximum length of command buffer.
|
||||
* Default: 120
|
||||
* Default: 512
|
||||
*/
|
||||
#ifndef PJ_CLI_MAX_CMDBUF
|
||||
# define PJ_CLI_MAX_CMDBUF 512
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#define CLI_CMD_CHANGE_LOG 30000
|
||||
#define CLI_CMD_EXIT 30001
|
||||
|
||||
#define MAX_CMD_HASH_NAME_LENGTH 64
|
||||
#define MAX_CMD_HASH_NAME_LENGTH PJ_CLI_MAX_CMDBUF
|
||||
#define MAX_CMD_ID_LENGTH 16
|
||||
|
||||
#if 1
|
||||
|
|
Loading…
Reference in New Issue