Skip to content

[parser] Don't trust the length in the header for writing#172

Merged
Enet4 merged 1 commit intomasterfrom
bug/parser/dont-trust-len
Sep 12, 2021
Merged

[parser] Don't trust the length in the header for writing#172
Enet4 merged 1 commit intomasterfrom
bug/parser/dont-trust-len

Conversation

@Enet4
Copy link
Copy Markdown
Owner

@Enet4 Enet4 commented Sep 7, 2021

  • add StatefulEncode::encode_primitive_element
    • when encoding primitive values, check the real length before writing the header
  • deprecate StatefulEncoder::encode_primitive
    • recommend the other one

- add StatefulEncode::encode_primitive_element
   - when encoding primitive values,
     check the real length before writing the header.
- deprecate StatefulEncoder::encode_primitive
   - recommend the other one
@Enet4 Enet4 added bug This is a bug A-lib Area: library labels Sep 7, 2021
@Enet4 Enet4 merged commit 580e883 into master Sep 12, 2021
@Enet4 Enet4 deleted the bug/parser/dont-trust-len branch September 12, 2021 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library bug This is a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant