Schema.TestSuite UndefinedBehaviorSanitizer: 未定义行为
[==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from Schema [ RUN ] Schema.TestSuite ../include/rapidjson/pointer.h:350:41: runtime error: reference binding to null pointer of type 'struct CrtAllocator' #0 0x5637cbb16449 in rapidjson::GenericPointer<rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >, rapidjson::CrtAllocator>::GetAllocator() ../include/rapidjson/pointer.h:350 #1 0x5637cbb10fb9 in rapidjson::GenericSchemaValidator<rapidjson::GenericSchemaDocument<rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >, rapidjson::CrtAllocator>, rapidjson::BaseReaderHandler<rapidjson::UTF8<char>, void>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::EndMissingDependentProperties(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::CrtAllocator> const&) ../include/rapidjson/schema.h:2261 #2 0x5637cbac3e73 in rapidjson::internal::Schema<rapidjson::GenericSchemaDocument<rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > > >::EndObject(rapidjson::internal::SchemaValidationContext<rapidjson::GenericSchemaDocument<rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > > >&, unsigned int) const ../include/rapidjson/schema.h:1037 #3 0x5637cba94034 in rapidjson::GenericSchemaValidator<rapidjson::GenericSchemaDocument<rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >, rapidjson::CrtAllocator>, rapidjson::BaseReaderHandler<rapidjson::UTF8<char>, void>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::EndObject(unsigned int) ../include/rapidjson/schema.h:2411 #4 0x5637cba78918 in bool …
内容来源: Tencent/rapidjson