replikativ/datahike

[Bug]: Missing \0 in c string returned from native lib

andelf opened this issue · 0 comments

What version of Datahike are you using?

main branch

What version of Java are you using?

both openjdk version "17.0.5" 2022-10-18 and openjdk version "11.0.17" 2022-10-18

What operating system are you using?

macOS

What database EDN configuration are you using?

{:store {:backend :file :path "./path-to-db"} :schema-flexibility :read}

Describe the bug

The returned EDN string from native lib is not ended with a \0.

What is the expected behaviour?

All returned EDN/JSON strings should end with a \0.

How can the behaviour be reproduced?

Calling any of the native functions, using "edn\0" as the return format.