Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash in firebird statement dtor
If both the driver object and statement end up in the GC buffer and are freed by the GC, then the destruction order is not deterministic and it is possible that the driver object is freed before the statement. In that case, accessing S->H will cause a UAF. As the resources are already released we simply skip the destruction if the driver object is already destroyed.
- Loading branch information