Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRefactor parser #23
Refactor parser #23
Conversation
|
The only parts I didn't audit heavily were |
iefremov
commented
Feb 20, 2020
|
@keur |
|
Right right. Fixed. Please take another look @iefremov |
iefremov
commented
Feb 24, 2020
|
@keur do you mind replacing |
|
@iefremov okay went ahead and changed those types |
This is a safe assumption to make. https://support.google.com/chrome/a/answer/7532015?hl=en
Every extension ID that needs be serialized is 32 bytes. No longer necessary to embed the length of each extension in the serialized buffer.
Include inttypes.h to format width-based integral types. This is safer than %x, because %x may read an unbounded amount of characters.
* Replace ST_EXTENSION_WHITELIST_DATA with std::string * Replace hash-set.cpp with std::unordered_set
* 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
keur commentedFeb 20, 2020
No description provided.