464 lines
16 KiB
JSON
464 lines
16 KiB
JSON
{
|
||
"version": "2.1.0",
|
||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||
"runs": [
|
||
{
|
||
"results": [
|
||
{
|
||
"ruleId": "C6387",
|
||
"message": {
|
||
"text": "\"newString\" 可以是 \"0\"。"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 86,
|
||
"startColumn": 7,
|
||
"endLine": 86,
|
||
"endColumn": 33
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::DefaultValueAllocator::duplicateStringValue",
|
||
"decoratedName": "?duplicateStringValue@DefaultValueAllocator@Json@@UAEPADPBDI@Z",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"codeFlows": [
|
||
{
|
||
"threadFlows": [
|
||
{
|
||
"locations": [
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 83,
|
||
"startColumn": 19
|
||
}
|
||
}
|
||
},
|
||
"importance": "unimportant"
|
||
},
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 85,
|
||
"startColumn": 13
|
||
}
|
||
},
|
||
"message": {
|
||
"text": "“newString”可能为 NULL"
|
||
}
|
||
},
|
||
"kinds": [
|
||
"declaration"
|
||
],
|
||
"importance": "essential"
|
||
},
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 86,
|
||
"startColumn": 13
|
||
}
|
||
},
|
||
"message": {
|
||
"text": "“newString”是“memcpy”的输入/输出参数(在 c:\\program files\\microsoft visual studio\\2022\\community\\vc\\tools\\msvc\\14.34.31933\\include\\vcruntime_string.h:43 处声明)"
|
||
}
|
||
},
|
||
"kinds": [
|
||
"declaration"
|
||
],
|
||
"importance": "important"
|
||
},
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 86,
|
||
"startColumn": 13
|
||
}
|
||
},
|
||
"message": {
|
||
"text": "“newString”不应为 NULL,因为这与“memcpy”上的 SAL 批注不一致"
|
||
}
|
||
},
|
||
"kinds": [
|
||
"usage"
|
||
],
|
||
"importance": "essential"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"ruleId": "C6011",
|
||
"message": {
|
||
"text": "取消对 NULL 指针“newString”的引用。查看第 86 行以找出可能会发生此情况的前一位置"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 87,
|
||
"startColumn": 7,
|
||
"endLine": 87,
|
||
"endColumn": 27
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::DefaultValueAllocator::duplicateStringValue",
|
||
"decoratedName": "?duplicateStringValue@DefaultValueAllocator@Json@@UAEPADPBDI@Z",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"codeFlows": [
|
||
{
|
||
"threadFlows": [
|
||
{
|
||
"locations": [
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 83,
|
||
"startColumn": 19
|
||
}
|
||
}
|
||
},
|
||
"importance": "unimportant"
|
||
},
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 85,
|
||
"startColumn": 13
|
||
}
|
||
},
|
||
"message": {
|
||
"text": "“newString”可能为 NULL"
|
||
}
|
||
},
|
||
"kinds": [
|
||
"declaration"
|
||
],
|
||
"importance": "essential"
|
||
},
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 86,
|
||
"startColumn": 13
|
||
}
|
||
},
|
||
"message": {
|
||
"text": "“newString”是“memcpy”的输入/输出参数(在 c:\\program files\\microsoft visual studio\\2022\\community\\vc\\tools\\msvc\\14.34.31933\\include\\vcruntime_string.h:43 处声明)"
|
||
}
|
||
},
|
||
"kinds": [
|
||
"declaration"
|
||
],
|
||
"importance": "important"
|
||
},
|
||
{
|
||
"location": {
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 87,
|
||
"startColumn": 25
|
||
}
|
||
},
|
||
"message": {
|
||
"text": "已取消对“newString”的引用,但可能仍为 NULL"
|
||
}
|
||
},
|
||
"kinds": [
|
||
"usage"
|
||
],
|
||
"importance": "essential"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"ruleId": "C26495",
|
||
"message": {
|
||
"text": "未初始化变量 Json::Value::value_。始终初始化成员变量(type.6)。"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 268,
|
||
"startColumn": 8,
|
||
"endLine": 268,
|
||
"endColumn": 8
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::Value::{ctor}",
|
||
"decoratedName": "??0Value@Json@@QAE@W4ValueType@1@@Z",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"targetSymbol": "Json::Value::value_"
|
||
}
|
||
},
|
||
{
|
||
"ruleId": "C26495",
|
||
"message": {
|
||
"text": "未初始化变量 Json::Value::value_。始终初始化成员变量(type.6)。"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 418,
|
||
"startColumn": 8,
|
||
"endLine": 418,
|
||
"endColumn": 8
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::Value::{ctor}",
|
||
"decoratedName": "??0Value@Json@@QAE@ABV01@@Z",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"targetSymbol": "Json::Value::value_"
|
||
}
|
||
},
|
||
{
|
||
"ruleId": "C26495",
|
||
"message": {
|
||
"text": "未初始化变量 Json::PathArgument::index_。始终初始化成员变量(type.6)。"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 1512,
|
||
"startColumn": 15,
|
||
"endLine": 1512,
|
||
"endColumn": 15
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::PathArgument::{ctor}",
|
||
"decoratedName": "??0PathArgument@Json@@QAE@XZ",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"targetSymbol": "Json::PathArgument::index_"
|
||
}
|
||
},
|
||
{
|
||
"ruleId": "C26495",
|
||
"message": {
|
||
"text": "未初始化变量 Json::PathArgument::index_。始终初始化成员变量(type.6)。"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 1525,
|
||
"startColumn": 15,
|
||
"endLine": 1525,
|
||
"endColumn": 15
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::PathArgument::{ctor}",
|
||
"decoratedName": "??0PathArgument@Json@@QAE@PBD@Z",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"targetSymbol": "Json::PathArgument::index_"
|
||
}
|
||
},
|
||
{
|
||
"ruleId": "C26495",
|
||
"message": {
|
||
"text": "未初始化变量 Json::PathArgument::index_。始终初始化成员变量(type.6)。"
|
||
},
|
||
"locations": [
|
||
{
|
||
"physicalLocation": {
|
||
"artifactLocation": {
|
||
"uri": "file:///D:/Works/Corpsms_2010/public/jsoncpp/src/lib_json/json_value.cpp"
|
||
},
|
||
"region": {
|
||
"startLine": 1532,
|
||
"startColumn": 15,
|
||
"endLine": 1532,
|
||
"endColumn": 15
|
||
}
|
||
},
|
||
"logicalLocations": [
|
||
{
|
||
"fullyQualifiedName": "Json::PathArgument::{ctor}",
|
||
"decoratedName": "??0PathArgument@Json@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z",
|
||
"kind": "function"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"properties": {
|
||
"targetSymbol": "Json::PathArgument::index_"
|
||
}
|
||
}
|
||
],
|
||
"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_value.cpp"
|
||
},
|
||
"roles": [
|
||
"analysisTarget",
|
||
"resultFile"
|
||
],
|
||
"hashes": {
|
||
"sha-256": "1c1a791ab8542f558b261757999067c82ce36d1d51a55323193b1a884b26f1d4"
|
||
}
|
||
},
|
||
{
|
||
"location": {
|
||
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/include/json/value.h"
|
||
},
|
||
"hashes": {
|
||
"sha-256": "a95a47b35004c3fac3e89f50fba51c2d9b17cc927e5000fdd0f2de6de97c0c1d"
|
||
}
|
||
},
|
||
{
|
||
"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/writer.h"
|
||
},
|
||
"hashes": {
|
||
"sha-256": "5dd8a88630d278e2818e8563925ee81f276b317755ea5d4915d2c1a8e44d459d"
|
||
}
|
||
},
|
||
{
|
||
"location": {
|
||
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/src/lib_json/json_batchallocator.h"
|
||
},
|
||
"hashes": {
|
||
"sha-256": "0b64b404862480c6c5687bf525c6eab5ad3e1a1b6d8d3c91d9aff690ebfe1e9d"
|
||
}
|
||
},
|
||
{
|
||
"location": {
|
||
"uri": "file:///d:/works/corpsms_2010/public/jsoncpp/src/lib_json/json_valueiterator.inl"
|
||
},
|
||
"hashes": {
|
||
"sha-256": "3de2050b9aa170dfb0ee9caa37e482193bdc6ac140ed21262eba410bbb5d45dc"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
} |