replikativ / datahike

A fast, immutable, distributed & compositional Datalog engine for everyone.
https://datahike.io
Eclipse Public License 1.0
1.62k stars 95 forks source link

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

Closed andelf closed 1 year ago

andelf commented 1 year ago

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.