Skip to content

Harden crossplot serialization and mailbox access - #9

Merged
SvenMarcus merged 2 commits into
SvenMarcus:masterfrom
andrewfullard:feature/crossplot-safe-serialization
Nov 8, 2026
Merged

SvenMarcus merged 2 commits into
SvenMarcus:masterfrom
andrewfullard:feature/crossplot-safe-serialization

Conversation

@andrewfullard

Copy link
Copy Markdown
Contributor
  • serializer escapes strings and keys with %q, supports boolean and number keys, and returns nil for unsupported values (functions, userdata, cycles, numbers that do not round-trip) instead of emitting invalid or unsafe Lua. Function serialization via string.dump is removed.
  • MessageQueue serializes values when they are queued, so unsupported payloads are rejected immediately (queue_value returns false), and checks whether a mailbox is free without deserializing it.
  • GlobalValueKeyValueStore gains store_serialized, take (read and clear) and is_empty; store now returns whether the value was stored.

andrewfullard and others added 2 commits October 17, 2026 15:36
- serializer escapes strings and keys with %q, supports boolean and
  number keys, and returns nil for unsupported values (functions,
  userdata, cycles, numbers that do not round-trip) instead of emitting
  invalid or unsafe Lua. Function serialization via string.dump is removed.
- MessageQueue serializes values when they are queued, so unsupported
  payloads are rejected immediately (queue_value returns false), and
  checks whether a mailbox is free without deserializing it.
- GlobalValueKeyValueStore gains store_serialized, take (read and clear)
  and is_empty; store now returns whether the value was stored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SvenMarcus
SvenMarcus merged commit 5635ff9 into SvenMarcus:master Nov 8, 2026
1 of 2 checks passed
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.

2 participants