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

Allow to specify buffer size to satisfy template in brave-core #16

Merged
merged 1 commit into from May 31, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Allow to specify buffer size to satisfy template in brave-core

  • Loading branch information
bbondy committed May 31, 2019
commit e59a305e2124d2b2bffb49ea1fe94af64652e7d5
@@ -85,6 +85,10 @@ char* ExtensionWhitelistParser::serialize(unsigned int* totalSize) {
return result;
}

bool ExtensionWhitelistParser::deserialize(char *buffer, size_t) {
return deserialize(buffer);
}

bool ExtensionWhitelistParser::deserialize(char *buffer) {
if (!buffer)
return false;
@@ -32,6 +32,7 @@ class ExtensionWhitelistParser {
// Deserializes the buffer, a size is not needed since a serialized
// buffer is self described
bool deserialize(char *buffer);
bool deserialize(char *buffer, size_t);

private:
std::unique_ptr<HashSet<ST_EXTENSION_WHITELIST_DATA> > mBlacklist;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.