12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202 |
- {
- "version": "2.1.0",
- "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
- "runs": [
- {
- "results": [
- {
- "ruleId": "C26812",
- "message": {
- "text": "枚举类型“_DiosStMachineRet”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1025,
- "startColumn": 2,
- "endLine": 1025,
- "endColumn": 9
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?StateMachineEntry@DiosSMachineIF@@UEAA?AW4_DiosStMachineRet@@K@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C6011",
- "message": {
- "text": "取消对 NULL 指针“pLocal”的引用。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1364,
- "startColumn": 5,
- "endLine": 1364,
- "endColumn": 22
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?StateMachineWaitForEvents@DiosSMachineIF@@AEAAPEAVDiosStMRouteLine@@AEAHAEAVDiosStMEvt@@@Z",
- "kind": "function"
- }
- ]
- }
- ],
- "codeFlows": [
- {
- "threadFlows": [
- {
- "locations": [
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1305,
- "startColumn": 14
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1307,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1309,
- "startColumn": 19
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1310,
- "startColumn": 6
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1319,
- "startColumn": 21
- }
- },
- "message": {
- "text": "“pLocal”为 NULL"
- }
- },
- "kinds": [
- "声明"
- ],
- "importance": "essential"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1320,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1321,
- "startColumn": 17
- }
- },
- "message": {
- "text": "跳过此分支(假定“LocalCount>0”为 false)"
- }
- },
- "kinds": [
- "分支"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1326,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1327,
- "startColumn": 21
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1330,
- "startColumn": 8
- }
- },
- "message": {
- "text": "“pLocal”是“CalcMaximumTimeout”的输入/输出参数(在第 1275 行中声明)"
- }
- },
- "kinds": [
- "声明"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1331,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1332,
- "startColumn": 14
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1337,
- "startColumn": 10
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1338,
- "startColumn": 14
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1343,
- "startColumn": 1
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1345,
- "startColumn": 11
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1345,
- "startColumn": 20
- }
- },
- "message": {
- "text": "进入此循环(假定“i<2”)"
- }
- },
- "kinds": [
- "分支"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1348,
- "startColumn": 7
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1352,
- "startColumn": 7
- }
- },
- "message": {
- "text": "“pLocal”是“DiosSMachineIF::StateMachineWaitForEvents”的输入/输出参数(在 e:\\devicev3.0\\driverplatform-v3.1\\diossmachine\\diossmachine.h:288 处声明)"
- }
- },
- "kinds": [
- "声明"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1358,
- "startColumn": 9
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1359,
- "startColumn": 11
- }
- },
- "message": {
- "text": "进入此分支(假定“ret>=0”)"
- }
- },
- "kinds": [
- "分支"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1361,
- "startColumn": 19
- }
- },
- "message": {
- "text": "进入此分支(假定“(DWORD)ret<LocalCount”)"
- }
- },
- "kinds": [
- "分支"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "region": {
- "startLine": 1364,
- "startColumn": 5
- }
- },
- "message": {
- "text": "已取消对“pLocal”的引用,但可能仍为 NULL"
- }
- },
- "kinds": [
- "使用情况"
- ],
- "importance": "essential"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26812",
- "message": {
- "text": "枚举类型“Log4CPP::enLogLevel”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/Log4CPP/Log.Include/Log4CPP.Logger.hpp"
- },
- "region": {
- "startLine": 130,
- "startColumn": 8,
- "endLine": 130,
- "endColumn": 17
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$Info@AEAY0BK@$$CBDHPEBDPEBD@Logger@Log4CPP@@QEAAXPEBDAEAY0BK@$$CBD$$QEAH$$QEAPEBD3@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0BK@$$CBDHPEBDPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0BK@$$CBDHPEBDPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0BK@$$CBDH@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0BK@$$CBDH@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0BK@$$CBDHPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0BK@$$CBDHPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CE@$$CBDHPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CE@$$CBDHPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CK@$$CBDHPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CK@$$CBDHPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CK@$$CBDHPEBDPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CK@$$CBDHPEBDPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CK@$$CBDHAEAKAEAKAEAKAEA_K@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CK@$$CBDHAEAKAEAKAEAKAEA_K@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CK@$$CBDHPEBDAEAH@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CK@$$CBDHPEBDAEAH@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CK@$$CBDH@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CK@$$CBDH@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CB@$$CBDH@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CB@$$CBDH@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CB@$$CBDHPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CB@$$CBDHPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CB@$$CBDHPEBDPEBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CB@$$CBDHPEBDPEBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CB@$$CBDHPEBDAEAH@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CB@$$CBDHPEBDAEAH@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0CB@$$CBDHPEBDH@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0CB@$$CBDHPEBDH@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 + ,然后将结果转换到 8 字节值。在调用运算符 + 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 922,
- "startColumn": 35,
- "endLine": 922,
- "endColumn": 42
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "??$DoFormat@AEAY0BL@$$CBDHAEAY0M@$$CBDAEAY08$$CBD@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAHHPEBD$$QEAV?$tuple@AEAY0BL@$$CBDHAEAY0M@$$CBDAEAY08$$CBD@std@@@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 - ,然后将结果转换到 8 字节值。在调用运算符 - 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 406,
- "startColumn": 29,
- "endLine": 406,
- "endColumn": 33
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?_StringFormatArg@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAXPEBDH0@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 - ,然后将结果转换到 8 字节值。在调用运算符 - 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 407,
- "startColumn": 18,
- "endLine": 407,
- "endColumn": 22
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?_StringFormatArg@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAXPEBDH0@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 - ,然后将结果转换到 8 字节值。在调用运算符 - 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 422,
- "startColumn": 29,
- "endLine": 422,
- "endColumn": 33
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?_StringFormatArg@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAXPEBDH0@Z",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C26451",
- "message": {
- "text": "算术溢出: 使用 4 字节值上的运算符 - ,然后将结果转换到 8 字节值。在调用运算符 - 之前将值强制转换为宽类型可避免溢出(io.2)。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "region": {
- "startLine": 423,
- "startColumn": 18,
- "endLine": 423,
- "endColumn": 22
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?_StringFormatArg@?$_string_format_detail@VStringFormat@String@Utility@ECOM@@@String@Utility@ECOM@@IEAAXPEBDH0@Z",
- "kind": "function"
- }
- ]
- }
- ]
- }
- ],
- "tool": {
- "driver": {
- "name": "PREfast",
- "fullName": "PREfast Code Analysis",
- "version": "14.29.30133.0",
- "informationUri": "https://aka.ms/cpp/ca"
- }
- },
- "invocations": [
- {
- "commandLine": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\c1xx.dll\" -ACf{1F7B090C-16DB-4822-966A-A93D26ED4681} -ACpmspft140.dll -Alint -D_PREFAST_ -D_AST_FE_ -Analyze -zm0x0064C1B0 -allChunksReserved -il C:\\Users\\ecom\\AppData\\Local\\Temp\\_CL_5e71598bast -typedil -f DiosSMachine.cpp -Ze -D_MSC_EXTENSIONS -Zp16 -pc \\:/ -D_MSC_VER=1929 -D_MSC_FULL_VER=192930133 -D_MSC_BUILD=0 -D_M_AMD64=100 -ZILP448 -D_M_X64=100 -D_WIN64 -D_WIN32 -GR -D_CPPRTTI -I G:\\vcpkg\\installed\\x64-windows\\include -nologo -W 3 -diagnostics:column -D_GUARDOVERFLOW_CRT_ALLOCATORS=1 -Ot -Oi -ltcg -DCODE_ANALYSIS -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DDIOSSMACHINE_EXPORTS -D_WINDLL -D_MBCS -EHs -D_CPPUNWIND -EHc -MD -D_MT -D_DLL -GS -D_M_FP_PRECISE -Zc:wchar_t -Zc:forScope -std:c++17 -Yustdafx.h -Fpx64\\Release\\DiosSMachineX64.pch -Fox64\\Release\\DiosSMachine.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DeviceV3.0\\DriverPlatform-V3.1\\DiosSMachine -analyze:rulesetdirectory ;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Team Tools\\Static Analysis Tools\\\\Rule Sets; -analyze:ruleset C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Team Tools\\Static Analysis Tools\\Rule Sets\\NativeRecommendedRules.ruleset -analyze:quiet -analyze:plugin C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\EspXEngine.dll -FC -errorreport:prompt -I E:\\DeviceV3.0\\deliver\\include -I E:\\DeviceV3.0\\deliver\\include\\Log4CPP\\Log.Include -I E:\\DeviceV3.0\\deliver\\include\\Log4CPP\\Common.Include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\cppwinrt -I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um -I G:\\vcpkg\\installed\\x64-windows\\include -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\cppwinrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\cppwinrt -external:I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um -I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um -external:I G:\\vcpkg\\installed\\x64-windows\\include -I G:\\vcpkg\\installed\\x64-windows\\include",
- "executionSuccessful": true
- }
- ],
- "artifacts": [
- {
- "location": {
- "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/DiosSMachine/DiosSMachine.cpp"
- },
- "roles": [
- "analysisTarget",
- "resultFile"
- ],
- "hashes": {
- "md5": "5d321d1d95c616fc6dad638dd54d0566"
- }
- },
- {
- "location": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/Log4CPP/Log.Include/Log4CPP.Logger.hpp"
- },
- "roles": [
- "resultFile"
- ],
- "hashes": {
- "md5": "ecf5cacfb6c5bca6a993b30ab6a3845f"
- }
- },
- {
- "location": {
- "uri": "file:///E:/DeviceV3.0/deliver/include/String.Format.tlh"
- },
- "roles": [
- "resultFile"
- ],
- "hashes": {
- "md5": "788f376d8db4359f30a4860fbe94371c"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/driverplatform-v3.1/diossmachine/stdafx.h"
- },
- "hashes": {
- "md5": "e10392c11ca8b66847442ba4df310c9f"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/driverplatform-v3.1/diossmachine/targetver.h"
- },
- "hashes": {
- "md5": "20a1397a4f718d91f76e2681bef085b6"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/common.include/string.dstring.hpp"
- },
- "hashes": {
- "md5": "a58c7d3df47e611333583d204ac658f4"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/common.include/string.stringview.hpp"
- },
- "hashes": {
- "md5": "8191cea6ae21c58876e8f9d4a26dcf3c"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/common.include/hash.string.hpp"
- },
- "hashes": {
- "md5": "aa05bb232cff7434774b5aa79751ab21"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.define.hpp"
- },
- "hashes": {
- "md5": "abfebd9c71923646793529bebf67528d"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.loglevel.hpp"
- },
- "hashes": {
- "md5": "a29e46042c79f6c8f02a77915383856a"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.appender.hpp"
- },
- "hashes": {
- "md5": "43a813214796c95e53047521e8d11c1f"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.loggingevent.hpp"
- },
- "hashes": {
- "md5": "18fb4f49022c015a81dab867fdd98c5a"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.tlslog.hpp"
- },
- "hashes": {
- "md5": "1ec933bfa8ba634949ddc032fa97972c"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.tlslog.tracing.hpp"
- },
- "hashes": {
- "md5": "60c309dac27200e2516c3099361e20bb"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/mlog.log4cpp.hpp"
- },
- "hashes": {
- "md5": "f253c99a9da9f0e0647ee3e70987b3c1"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/driverplatform-v3.1/diossmachine/diossmachine.h"
- },
- "hashes": {
- "md5": "2388b04d4c262d30ab55f2444114b6ea"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/resdataobject.h"
- },
- "hashes": {
- "md5": "5952703846c703003535fa667ae9a289"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/diosthread.h"
- },
- "hashes": {
- "md5": "bcf85fc2a8499ba80fd45eee229dd64c"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/dioslock.h"
- },
- "hashes": {
- "md5": "6ef694600e306d1039fe501b0e4db656"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/msgcircle.h"
- },
- "hashes": {
- "md5": "50cd5a75ba23a53382f809a090054162"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/definitions.h"
- },
- "hashes": {
- "md5": "1b36a119d096288c057adf16222c01a8"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/msgqueue.h"
- },
- "hashes": {
- "md5": "73927cf318a5240ea737c7748703f3fc"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/scopelock.h"
- },
- "hashes": {
- "md5": "fe1c154331759bc62a8157897df388f0"
- }
- },
- {
- "location": {
- "uri": "file:///e:/devicev3.0/deliver/include/common_api.h"
- },
- "hashes": {
- "md5": "88b1032a5ae2600400bf90500d1e476e"
- }
- }
- ]
- }
- ]
- }
|