You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Transaction memory safety by using Database reference counting
- Transaction now owns a Database clone instead of raw CBLDatabase pointer
- Uses Database::clone() which automatically handles reference counting via retain()
- Database is automatically released when Transaction is dropped
- Eliminates use-after-free vulnerability where Database could be dropped
while Transaction still holds a raw pointer
This ensures the underlying CBLDatabase stays alive for the entire
transaction lifetime through Couchbase Lite's internal reference counting.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments