diff options
| author | practicalswift <[email protected]> | 2019-01-06 16:38:32 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-01-06 17:45:53 +0100 |
| commit | ca126d490b0ff6960e135f3c77b2b2d4892a5744 (patch) | |
| tree | f7255fed8ac1451d6438eb058f640cc58f0fe0a8 /src/support/lockedpool.h | |
| parent | Merge #14784: qt: Use WalletModel* instead of the wallet name as map key (diff) | |
| download | discoin-ca126d490b0ff6960e135f3c77b2b2d4892a5744.tar.xz discoin-ca126d490b0ff6960e135f3c77b2b2d4892a5744.zip | |
Fix out-of-bounds write in case of failing mmap(...) in PosixLockedPageAllocator::AllocateLocked
Diffstat (limited to 'src/support/lockedpool.h')
| -rw-r--r-- | src/support/lockedpool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/lockedpool.h b/src/support/lockedpool.h index 48ffd7b30..b420c909f 100644 --- a/src/support/lockedpool.h +++ b/src/support/lockedpool.h @@ -22,7 +22,7 @@ public: virtual ~LockedPageAllocator() {} /** Allocate and lock memory pages. * If len is not a multiple of the system page size, it is rounded up. - * Returns 0 in case of allocation failure. + * Returns nullptr in case of allocation failure. * * If locking the memory pages could not be accomplished it will still * return the memory, however the lockingSuccess flag will be false. |