mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-26 11:47:13 +09:00
Check memory base instead of the aligned pointer
No behavior change, but it is less confusing to static analyzers
This commit is contained in:
@@ -118,7 +118,7 @@ static int allocate_memory(block_region **region, uint32_t m_cost) {
|
||||
memcpy(&memory, &aligned, sizeof memory);
|
||||
}
|
||||
#endif
|
||||
if (!memory) {
|
||||
if (base == NULL) {
|
||||
return ARGON2_MEMORY_ALLOCATION_ERROR;
|
||||
}
|
||||
(*region)->base = base;
|
||||
|
||||
Reference in New Issue
Block a user