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

Fix UB in GenericDocument::ParseStream #426

Merged
merged 3 commits into from
Sep 19, 2015
Merged

Fix UB in GenericDocument::ParseStream #426

merged 3 commits into from
Sep 19, 2015

Conversation

malirod
Copy link
Contributor

@malirod malirod commented Sep 16, 2015

Resolves #425

miloyip added a commit that referenced this pull request Sep 19, 2015
Fix UB in GenericDocument::ParseStream
@miloyip miloyip merged commit 221887d into Tencent:master Sep 19, 2015
@miloyip
Copy link
Collaborator

miloyip commented Sep 19, 2015

Thank you

pah added a commit to pah/rapidjson-upstream that referenced this pull request Nov 16, 2015
…encent#469)

In the MoveConstructor/MoveAssignment tests, a check for a `NULL` allocator
return has been used to check for the correct moved-from state of a Document.
After the merge of Tencent#426, the GetAllocator call fails with an assertion,
if the allocator of a GenericDocument is NULL.

Check for the throw, instead of NULL in the move-related tests.
Tested with GCC 4.9 on Linux with C++11 enabled.

Reported-by: @woldendans
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.

2 participants