Skip to content

Commit

Permalink
Update vendored geoarrow-c to fix undefined memcpy behaviour (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot authored Jun 12, 2024
1 parent 95b09bc commit c843a13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/geoarrow.c
Original file line number Diff line number Diff line change
Expand Up @@ -4839,7 +4839,7 @@ int64_t GeoArrowUnescapeCrs(struct GeoArrowStringView crs, char* out, int64_t n)
if (n > crs.size_bytes) {
memcpy(out, crs.data, crs.size_bytes);
out[crs.size_bytes] = '\0';
} else {
} else if (out != NULL) {
memcpy(out, crs.data, n);
}

Expand Down
2 changes: 1 addition & 1 deletion vendor-geoarrow.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

rm src/geoarrow*

GEOARROW_C_REF="e8cc0fd37a5cbd9cd1920c43aa4318daa220003e"
GEOARROW_C_REF="b677e8478bd24bb2d6534d23dc289a7619f9afa9"

curl -L \
"https://github.com/geoarrow/geoarrow-c/archive/${GEOARROW_C_REF}.zip" \
Expand Down

0 comments on commit c843a13

Please sign in to comment.