708 lines
23 KiB
JSON
708 lines
23 KiB
JSON
{
|
|
"version": "2.1.0",
|
|
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
|
"runs": [
|
|
{
|
|
"results": [
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::lastValue_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 109,
|
|
"startColumn": 9,
|
|
"endLine": 109,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::lastValue_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::lastValueEnd_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 109,
|
|
"startColumn": 9,
|
|
"endLine": 109,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::lastValueEnd_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::end_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 109,
|
|
"startColumn": 9,
|
|
"endLine": 109,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::end_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::collectComments_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 109,
|
|
"startColumn": 9,
|
|
"endLine": 109,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::collectComments_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::begin_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 109,
|
|
"startColumn": 9,
|
|
"endLine": 109,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::begin_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::current_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 109,
|
|
"startColumn": 9,
|
|
"endLine": 109,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::current_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::lastValue_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 115,
|
|
"startColumn": 9,
|
|
"endLine": 115,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@ABVFeatures@1@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::lastValue_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::lastValueEnd_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 115,
|
|
"startColumn": 9,
|
|
"endLine": 115,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@ABVFeatures@1@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::lastValueEnd_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::end_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 115,
|
|
"startColumn": 9,
|
|
"endLine": 115,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@ABVFeatures@1@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::end_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::collectComments_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 115,
|
|
"startColumn": 9,
|
|
"endLine": 115,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@ABVFeatures@1@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::collectComments_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::begin_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 115,
|
|
"startColumn": 9,
|
|
"endLine": 115,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@ABVFeatures@1@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::begin_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::current_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 115,
|
|
"startColumn": 9,
|
|
"endLine": 115,
|
|
"endColumn": 9
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::{ctor}",
|
|
"decoratedName": "??0Reader@Json@@QAE@ABVFeatures@1@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::current_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C6288",
|
|
"message": {
|
|
"text": "运算符不正确。是否打算改用 ||?"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 566,
|
|
"startColumn": 65
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::readArray",
|
|
"decoratedName": "?readArray@Reader@Json@@AAE_NAAVToken@12@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"ruleId": "C6386",
|
|
"message": {
|
|
"text": "写入 \"buffer\" 时缓冲区溢出。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 630,
|
|
"startColumn": 7,
|
|
"endLine": 630,
|
|
"endColumn": 24
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::decodeDouble",
|
|
"decoratedName": "?decodeDouble@Reader@Json@@AAE_NAAVToken@12@@Z",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"codeFlows": [
|
|
{
|
|
"threadFlows": [
|
|
{
|
|
"locations": [
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 622,
|
|
"startColumn": 11
|
|
}
|
|
}
|
|
},
|
|
"importance": "unimportant"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 623,
|
|
"startColumn": 14
|
|
}
|
|
}
|
|
},
|
|
"importance": "unimportant"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 624,
|
|
"startColumn": 8
|
|
}
|
|
}
|
|
},
|
|
"importance": "unimportant"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 625,
|
|
"startColumn": 8
|
|
}
|
|
}
|
|
},
|
|
"importance": "unimportant"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 626,
|
|
"startColumn": 16
|
|
}
|
|
}
|
|
},
|
|
"importance": "unimportant"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 628,
|
|
"startColumn": 12
|
|
}
|
|
},
|
|
"message": {
|
|
"text": "“buffer”是一个 32 元素数组(32 字节)"
|
|
}
|
|
},
|
|
"kinds": [
|
|
"declaration"
|
|
],
|
|
"importance": "essential"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 629,
|
|
"startColumn": 13
|
|
}
|
|
},
|
|
"message": {
|
|
"text": "“length”是对“memcpy”的输入(在 c:\\program files\\microsoft visual studio\\2022\\community\\vc\\tools\\msvc\\14.34.31933\\include\\vcruntime_string.h:43 处声明)"
|
|
}
|
|
},
|
|
"kinds": [
|
|
"usage"
|
|
],
|
|
"importance": "important"
|
|
},
|
|
{
|
|
"location": {
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"region": {
|
|
"startLine": 630,
|
|
"startColumn": 22
|
|
}
|
|
},
|
|
"message": {
|
|
"text": "写入到“buffer[32]”无效(可写范围是 0 到 31)"
|
|
}
|
|
},
|
|
"kinds": [
|
|
"usage"
|
|
],
|
|
"importance": "essential"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::ErrorInfo::extra_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/include/json/reader.h"
|
|
},
|
|
"region": {
|
|
"startLine": 106,
|
|
"startColumn": 7,
|
|
"endLine": 106,
|
|
"endColumn": 7
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::ErrorInfo::{ctor}",
|
|
"decoratedName": "??0ErrorInfo@Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::ErrorInfo::extra_"
|
|
}
|
|
},
|
|
{
|
|
"ruleId": "C26495",
|
|
"message": {
|
|
"text": "未初始化变量 Json::Reader::ErrorInfo::token_。始终初始化成员变量(type.6)。"
|
|
},
|
|
"locations": [
|
|
{
|
|
"physicalLocation": {
|
|
"artifactLocation": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/include/json/reader.h"
|
|
},
|
|
"region": {
|
|
"startLine": 106,
|
|
"startColumn": 7,
|
|
"endLine": 106,
|
|
"endColumn": 7
|
|
}
|
|
},
|
|
"logicalLocations": [
|
|
{
|
|
"fullyQualifiedName": "Json::Reader::ErrorInfo::{ctor}",
|
|
"decoratedName": "??0ErrorInfo@Reader@Json@@QAE@XZ",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"targetSymbol": "Json::Reader::ErrorInfo::token_"
|
|
}
|
|
}
|
|
],
|
|
"tool": {
|
|
"driver": {
|
|
"name": "PREfast",
|
|
"fullName": "PREfast Code Analysis",
|
|
"version": "14.34.31933.0",
|
|
"informationUri": "https://aka.ms/cpp/ca"
|
|
}
|
|
},
|
|
"invocations": [
|
|
{
|
|
"executionSuccessful": true
|
|
}
|
|
],
|
|
"artifacts": [
|
|
{
|
|
"location": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_reader.cpp"
|
|
},
|
|
"roles": [
|
|
"analysisTarget",
|
|
"resultFile"
|
|
],
|
|
"hashes": {
|
|
"sha-256": "443f3b657c14477434368c2104bdb64dcf8dc1181ea2d793870050e413444868"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/include/json/reader.h"
|
|
},
|
|
"roles": [
|
|
"resultFile"
|
|
],
|
|
"hashes": {
|
|
"sha-256": "4f4e7ebd63a95d78aed9ac9d4ff8f3a5ffe5904c49d42e229d76a34b2c8d3da9"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/include/json/features.h"
|
|
},
|
|
"hashes": {
|
|
"sha-256": "619e12a6d9671efacc47995255d1cd29861c879a80ac56fddaf9eab1ef28b7da"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/include/json/forwards.h"
|
|
},
|
|
"hashes": {
|
|
"sha-256": "1e8203651f400e3173a7cf3a1d2f504ae7d31aa590de279f14bf36b291808243"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/include/json/config.h"
|
|
},
|
|
"hashes": {
|
|
"sha-256": "ea27bcb8282e6e3e92617d02b4b833de88a9679b9dd741e2d166a0b9d9326221"
|
|
}
|
|
},
|
|
{
|
|
"location": {
|
|
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/include/json/value.h"
|
|
},
|
|
"hashes": {
|
|
"sha-256": "a95a47b35004c3fac3e89f50fba51c2d9b17cc927e5000fdd0f2de6de97c0c1d"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |