Skip to content

Conversation

@cjihrig
Copy link
Collaborator

@cjihrig cjihrig commented May 16, 2020

  • The bounds checking macros are converted to functions, and work in terms of sizes instead of data types.
  • iovec_t and ciovec_t support is added.

Fixes: #69

Tested with these changes made in Node.js - https://ci.nodejs.org/job/node-test-commit/38386/

cjihrig added 4 commits May 15, 2020 13:57
This commit updates the serdes bounds checking macros to be
written in terms of sizes instead of data types. The reasons
for the change are:

1. Many bounds checks are needed in terms of a string length,
   which wasn't handled by the previous implementation.
2. The previous version used partial data type names, which
   could look confusing in calling code. This new version will
   take more characters, but be more explicit/understandable.
This commit adds serdes support for the iov types.
This commit adds serdes functions for reading iovec_t and
ciovec_t arrays.
This commit changes the bounds checking macros into functions.
In practice, this silences warnings about comparisons of
unsigned expressions >= always being true.
@cjihrig cjihrig mentioned this pull request May 16, 2020
@cjihrig cjihrig merged commit 84fcbec into master May 17, 2020
@cjihrig cjihrig deleted the bounds branch May 17, 2020 14:59
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.

Add serdes API

2 participants