mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
353 lines
13 KiB
353 lines
13 KiB
{ |
|
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/cos02/schemas/sarif-schema-2.1.0.json", |
|
"runs": [ |
|
{ |
|
"artifacts": [ |
|
{ |
|
"length": 75606, |
|
"location": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"mimeType": "text/plain", |
|
"roles": [ |
|
"resultFile" |
|
] |
|
} |
|
], |
|
"columnKind": "unicodeCodePoints", |
|
"results": [ |
|
{ |
|
"codeFlows": [ |
|
{ |
|
"threadFlows": [ |
|
{ |
|
"locations": [ |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Taking false branch" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 3, |
|
"startColumn": 3, |
|
"startLine": 1875 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "important", |
|
"location": { |
|
"message": { |
|
"text": "Assuming the condition is false" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 52, |
|
"endLine": 1884, |
|
"startColumn": 6, |
|
"startLine": 1884 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Taking false branch" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 3, |
|
"startColumn": 3, |
|
"startLine": 1884 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "'erase_line' is false" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 11, |
|
"startColumn": 11, |
|
"startLine": 1888 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Taking false branch" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 8, |
|
"startColumn": 8, |
|
"startLine": 1888 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "'erase_word' is false" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 11, |
|
"startColumn": 11, |
|
"startLine": 1894 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Left side of '&&' is false" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 22, |
|
"startColumn": 22, |
|
"startLine": 1894 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "important", |
|
"location": { |
|
"message": { |
|
"text": "Assuming the condition is true" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 46, |
|
"endLine": 1914, |
|
"startColumn": 6, |
|
"startLine": 1914 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Taking true branch" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 3, |
|
"startColumn": 3, |
|
"startLine": 1914 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "essential", |
|
"location": { |
|
"message": { |
|
"text": "Calling 'BaseView::select_snippet_parameter'" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 31, |
|
"endLine": 1915, |
|
"startColumn": 5, |
|
"startLine": 1915 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Loop condition is false. Execution continues on line 1926" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 3, |
|
"startColumn": 3, |
|
"startLine": 1919 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "important", |
|
"location": { |
|
"message": { |
|
"text": "Assuming the condition is true" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 38, |
|
"endLine": 1937, |
|
"startColumn": 6, |
|
"startLine": 1937 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "unimportant", |
|
"location": { |
|
"message": { |
|
"text": "Taking true branch" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 3, |
|
"startColumn": 3, |
|
"startLine": 1937 |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"importance": "essential", |
|
"location": { |
|
"message": { |
|
"text": "Past-the-end iterator dereferenced" |
|
}, |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 57, |
|
"endLine": 1940, |
|
"startColumn": 35, |
|
"startLine": 1940 |
|
} |
|
} |
|
} |
|
} |
|
] |
|
} |
|
] |
|
} |
|
], |
|
"level": "warning", |
|
"locations": [ |
|
{ |
|
"physicalLocation": { |
|
"artifactLocation": { |
|
"index": 0, |
|
"uri": "file:///home/user/jucipp/src/source_base.cpp" |
|
}, |
|
"region": { |
|
"endColumn": 57, |
|
"endLine": 1940, |
|
"startColumn": 35, |
|
"startLine": 1940 |
|
} |
|
} |
|
} |
|
], |
|
"message": { |
|
"text": "Past-the-end iterator dereferenced" |
|
}, |
|
"ruleId": "alpha.cplusplus.IteratorRange", |
|
"ruleIndex": 0 |
|
} |
|
], |
|
"tool": { |
|
"driver": { |
|
"fullName": "clang static analyzer", |
|
"informationUri": "https://clang.llvm.org/docs/UsersManual.html", |
|
"language": "en-US", |
|
"name": "clang", |
|
"rules": [ |
|
{ |
|
"defaultConfiguration": { |
|
"enabled": true, |
|
"level": "warning", |
|
"rank": -1 |
|
}, |
|
"fullDescription": { |
|
"text": "Check for iterators used outside their valid ranges" |
|
}, |
|
"helpUri": "https://clang.llvm.org/docs/analyzer/checkers.html#alpha-cplusplus-iteratorrange", |
|
"id": "alpha.cplusplus.IteratorRange", |
|
"name": "alpha.cplusplus.IteratorRange" |
|
} |
|
], |
|
"version": "clang version 21.1.8 (Fedora 21.1.8-4.fc43)" |
|
} |
|
} |
|
} |
|
], |
|
"version": "2.1.0" |
|
}
|
|
|