mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix a stack overflow issue (#686)
The length check now include the null-terminated character
This commit is contained in:
parent
515a531abf
commit
9963a99868
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,7 @@ void Alias_ListFindRandomRange(
|
|||
|
||||
length = strlen(alias);
|
||||
|
||||
if (length > MAX_ALIASLIST_NAME_LENGTH) {
|
||||
if (length + 1 > MAX_ALIASLIST_NAME_LENGTH) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue