I hate class destructors with a burning passion

Kagamin spam at here.lot
Tue Jun 8 08:42:48 UTC 2021


On Tuesday, 8 June 2021 at 08:11:38 UTC, Kagamin wrote:
> On Sunday, 6 June 2021 at 11:54:40 UTC, Mathias LANG wrote:
>> [an `assert` checking a 
>> magic](https://github.com/vibe-d/vibe-core/issues/283)
>
> As I understand, this code unintentionally accesses thread 
> local connection pool in multithreaded manner without 
> synchronization?

https://github.com/vibe-d/vibe-http/blob/master/source/vibe/http/client.d#L216 and looks like on connection to 17th host the first pool is freed from the cache and later collected as garbage, so its lifetime is limited, but you touch it in destructor, which is UAF.


More information about the Digitalmars-d mailing list