mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Pasto
This commit is contained in:
@@ -101,7 +101,7 @@ int allocate_memory(block_region **region, uint32_t m_cost) {
|
||||
memcpy(&memory, &base, sizeof memory);
|
||||
#else
|
||||
memory = NULL;
|
||||
if (size + 63 < size) {
|
||||
if (memory_size + 63 < memory_size) {
|
||||
base = NULL;
|
||||
errno = ENOMEM;
|
||||
} else if ((base = malloc(memory_size + 63)) != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user