mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
Fix segfault in allocator_tests/arena_tests
The test uses reinterpret_cast<void*> on unallocated memory. Using this memory in printchunk as char* causes a segfault, so have printchunk take void* instead.
This commit is contained in:
parent
15c84f53f4
commit
30fb598737
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ Arena::Stats Arena::stats() const
|
|||
}
|
||||
|
||||
#ifdef ARENA_DEBUG
|
||||
static void printchunk(char* base, size_t sz, bool used) {
|
||||
static void printchunk(void* base, size_t sz, bool used) {
|
||||
std::cout <<
|
||||
"0x" << std::hex << std::setw(16) << std::setfill('0') << base <<
|
||||
" 0x" << std::hex << std::setw(16) << std::setfill('0') << sz <<
|
||||
|
|
Loading…
Add table
Reference in a new issue