Open liss-h opened 1 month ago
Thanks for reporting the issue. I'll investigate why bad_alloc is not thrown.
Unfortunately, I cannot reproduce the issue on my side. I also checked Metall code but couldn't find an issue. I'll keep investigating and let you know once I find something.
You are on MacOS, right? Maybe there is some difference between MacOS and Linux that prevents you from being able to reproduce it.
Could you try increasing the maximum cap
value?
The following code causes a segfault:
Whereas it throws
bad_alloc
(as expected) if you immediately.resize()
to 100'000'000.