Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor parser #23

Open
wants to merge 5 commits into
base: master
from
Open

Refactor parser #23

wants to merge 5 commits into from
Commits on Apr 21, 2020
  1. Simplify whitelist data serialization

    keur committed Feb 20, 2020
    Every extension ID that needs be serialized is 32 bytes. No longer
    necessary to embed the length of each extension in the serialized
    buffer.
  2. extension_whitelist_parser: safely serialize uint32_t

    keur committed Feb 20, 2020
    Include inttypes.h to format width-based integral types. This is safer
    than %x, because %x may read an unbounded amount of characters.
  3. Refactor with std functions

    keur committed Apr 5, 2020
      * Replace ST_EXTENSION_WHITELIST_DATA with std::string
      * Replace hash-set.cpp with std::unordered_set
Commits on Apr 22, 2020
  1. Review fixups

    keur committed Apr 21, 2020
      * Use strings where possible
      * Replace DECIMAL_STRING_MAX WITH UINT32_SERIALIZE_MAX since we are
        only serializing uint32_t
      * Remove extension_set class and make Serialize and Deserialize free
        functions
You can’t perform that action at this time.