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(arrow/cdata): Avoid calling unsafe.Slice on zero-length pointers (#513)
### Rationale for this change
Slices from FFI may have an arbitrary pointer when the length is zero,
but this is not allowed in Go, where the pointer must always be valid. I
believe this fixes#28.
### What changes are included in this PR?
I changed the instances of `unsafe.Slice` in `arrow/cdata` I could find
to be robust when used with length zero.
### Are these changes tested?
No, I don't have a Go setup at all.
### Are there any user-facing changes?
No.
---------
Co-authored-by: Matt Topol <zotthewizard@gmail.com>
0 commit comments