{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/rapidjson/issues/27","labels_url":"https://api.github.com/repos/byzhang/rapidjson/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/rapidjson/issues/27/comments","events_url":"https://api.github.com/repos/byzhang/rapidjson/issues/27/events","html_url":"https://github.com/byzhang/rapidjson/issues/27","id":59729689,"number":27,"title":"Default allocator is used for GenericReader in GenericDocument::ParseStream ","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/rapidjson/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/rapidjson/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/rapidjson/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T00:13:10Z","updated_at":"2015-03-04T00:13:11Z","closed_at":"2015-03-04T00:13:11Z","body":"```\nGenericDocument::ParseStream() does not pass custom memory allocator to \nGenericReader template in document.h:703. Proposed patch\n\nIndex: document.h\n===================================================================\n--- document.h\n+++ document.h\n@@ -700,7 +700,7 @@\n \ttemplate <unsigned parseFlags, typename SourceEncoding, typename InputStream>\n \tGenericDocument& ParseStream(InputStream& is) {\n \t\tValueType::SetNull(); // Remove existing root if exist\n-\t\tGenericReader<SourceEncoding, Encoding> reader;\n+\t\tGenericReader<SourceEncoding, Encoding, Allocator> reader;\n \t\tif (reader.Parse<parseFlags>(is, *this)) {\n \t\t\tRAPIDJSON_ASSERT(stack_.GetSize() == sizeof(ValueType)); // Got one and only one root object\n \t\t\tthis->RawAssign(*stack_.template Pop<ValueType>(1));\t// Add this-> to prevent issue 13.\n\n```\n\nOriginal issue reported on code.google.com by `mte...@googlemail.com` on 12 Jun 2012 at 10:06"},"comment":{"url":"https://api.github.com/repos/byzhang/rapidjson/issues/comments/77069540","html_url":"https://github.com/byzhang/rapidjson/issues/27#issuecomment-77069540","issue_url":"https://api.github.com/repos/byzhang/rapidjson/issues/27","id":77069540,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:13:11Z","updated_at":"2015-03-04T00:13:11Z","body":"```\nThis issue was closed by revision r76.\n```\n\nOriginal comment by `milo...@gmail.com` on 14 Nov 2012 at 2:50\n* Changed state: **Fixed**"}}