mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
If the alignment is not a power of two return nullptr for the nothrow overload and bomb for the throwing overload.
11 lines
596 B
Plaintext
11 lines
596 B
Plaintext
new/new[] aligned failed and should throw an exception, but Valgrind
|
|
cannot throw exceptions and so is aborting instead. Sorry.
|
|
...
|
|
by 0x........: operator new(unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
|
|
by 0x........: main (sized_aligned_new_delete_misaligned.cpp:69)
|
|
new/new[] aligned failed and should throw an exception, but Valgrind
|
|
cannot throw exceptions and so is aborting instead. Sorry.
|
|
...
|
|
by 0x........: operator new[](unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
|
|
by 0x........: main (sized_aligned_new_delete_misaligned.cpp:81)
|