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
Got a double free when consuming a stream and trying to return the error. Right now the C Stream Interface import tries to take ownership of the error string, but once the release callback is called that string gets freed.
The returned pointer is only guaranteed to be valid until the next call of one of the stream’s callbacks. The character string it points to should be copied to consumer-managed storage if it is intended to survive longer.
To Reproduce
Expected behavior
We should probably clone the string as suggested by the interface docs.
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
Got a double free when consuming a stream and trying to return the error. Right now the C Stream Interface import tries to take ownership of the error string, but once the release callback is called that string gets freed.
arrow-rs/arrow/src/ffi_stream.rs
Lines 317 to 327 in f16ceed
From the C stream interface docs:
To Reproduce
Expected behavior
We should probably clone the string as suggested by the interface docs.
Additional context
The text was updated successfully, but these errors were encountered: