Skip to content

Fix EDN BLOB decode to use exact SQLite blob size#13

Open
delaneyj wants to merge 1 commit intoandersmurphy:masterfrom
delaneyj:fix/blob-edn-exact-size
Open

Fix EDN BLOB decode to use exact SQLite blob size#13
delaneyj wants to merge 1 commit intoandersmurphy:masterfrom
delaneyj:fix/blob-edn-exact-size

Conversation

@delaneyj
Copy link

Summary

Fix EDN BLOB decoding to use the exact SQLite blob size instead of relying on C-string null-termination.

Changes

  • update decode-edn to accept payload size
  • decode EDN from a byte slice bounded to that size
  • pass (dec size) from decode-blob for encoded payloads

Why

Using null-terminated string reads can include trailing bytes outside the actual BLOB payload.

Closes #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EDN BLOB decode should use exact blob size (avoid trailing bytes)

1 participant