mirror of
git://git.gnu.org.ua/pam-modules.git
synced 2025-04-26 00:19:52 +03:00
Bugfix
* lib/mem.c (gray_2nrealloc): Add missing multiplier.
This commit is contained in:
parent
84fcfeb07c
commit
96631a9a89
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ gray_2nrealloc(void *ptr, size_t *pcount, size_t elsiz)
|
|||
count += !count;
|
||||
}
|
||||
} else {
|
||||
if ((size_t)-1 / 2 / elsiz <= count) {
|
||||
if ((size_t)-1 / 3 * 2 / elsiz <= count) {
|
||||
errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue