Skip to content

fix(ffi): support custom allocators in event string getters - #8672

Merged
link2xt merged 1 commit into
chatmail:mainfrom
trufae:fix-ffi-event-strings
Sep 9, 2026
Merged

fix(ffi): support custom allocators in event string getters#8672
link2xt merged 1 commit into
chatmail:mainfrom
trufae:fix-ffi-event-strings

Conversation

@trufae

@trufae trufae commented Sep 4, 2026

Copy link
Copy Markdown

Event string getters returned Rust-allocated pointers that dc_str_unref() frees with libc. This breaks with custom Rust allocators, so allocate the strings with strdup() instead.

Event string getters returned Rust-allocated pointers that dc_str_unref()
frees with libc. This breaks with custom Rust allocators, so allocate the
strings with strdup() instead.
@link2xt
link2xt merged commit 4bf42c0 into chatmail:main Sep 9, 2026
23 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants