[{"data":1,"prerenderedAt":3916},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint34-c":28,"surround-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint34-c":2145,"sidebar-sei-cert-c-coding-standard":2151},[4,8],{"title":5,"path":6,"_path":6,"fromAppConfig":7},"Home","\u002F",true,{"title":9,"path":10,"children":11,"_path":27,"fromAppConfig":7},"Coding Standards","\u002Fcoding-standards\u002F",[12,15,18,21,24],{"title":13,"path":14},"Android Coding Standard","\u002Fandroid-secure-coding-standard\u002F",{"title":16,"path":17},"C Coding Standard","\u002Fsei-cert-c-coding-standard\u002F",{"title":19,"path":20},"C++ Coding Standard","\u002Fsei-cert-cpp-coding-standard\u002F",{"title":22,"path":23},"Java Coding Standard","\u002Fsei-cert-oracle-coding-standard-for-java\u002F",{"title":25,"path":26},"Perl Coding Standard","\u002Fsei-cert-perl-coding-standard\u002F","\u002Fcoding-standards",{"id":29,"title":30,"body":31,"description":2129,"extension":2130,"meta":2131,"navigation":7,"path":2141,"seo":2142,"stem":2143,"__hash__":2144},"content\u002F4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F6.int34-c.md","INT34-C. Do not shift an expression by a negative number of bits or by greater than or equal to the number of bits that exist in the operand",{"type":32,"value":33,"toc":2109},"minimark",[34,38,74,85,90,105,112,129,132,220,224,227,420,435,443,447,469,476,600,605,609,612,802,805,838,843,846,851,857,912,921,925,927,1076,1081,1084,1107,1121,1158,1168,1172,1175,1242,1246,1801,1805,1817,1821,1828,1939,1943,1949,1953,1956,1959,1964,1968,1971,1976,1980,2038,2041,2060,2064,2105],[35,36,30],"h1",{"id":37},"int34-c-do-not-shift-an-expression-by-a-negative-number-of-bits-or-by-greater-than-or-equal-to-the-number-of-bits-that-exist-in-the-operand",[39,40,41,42,46,47,46,51,54,55,46,57,46,60,62,63,68,69,73],"p",{},"Bitwise shifts include left-shift operations of the form ",[43,44,45],"em",{},"shift-expression"," ",[48,49,50],"code",{},"\u003C\u003C",[43,52,53],{},"additive-expression"," and right-shift operations of the form ",[43,56,45],{},[48,58,59],{},">>",[43,61,53],{}," . The standard integer promotions are first performed on the operands, each of which has an integer type. The type of the result is that of the promoted left operand. If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is ",[64,65,67],"a",{"href":66},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-undefinedbehavior","undefined"," . (See ",[64,70,72],{"href":71},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_48","undefined behavior 48"," .)",[39,75,76,77,80,81,73],{},"Do not shift an expression by a negative number of bits or by a number greater than or equal to the ",[43,78,79],{},"precision"," of the promoted left operand. The precision of an integer type is the number of bits it uses to represent values, excluding any sign and padding bits. For unsigned integer types, the width and the precision are the same; whereas for signed integer types, the width is one greater than the precision. This rule uses precision instead of width because, in almost every case, an attempt to shift by a number of bits greater than or equal to the precision of the operand indicates a bug (logic error). A logic error is different from overflow, in which there is simply a representational deficiency.  In general, shifts should be performed only on unsigned operands. (See ",[64,82,84],{"href":83},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint13-c","INT13-C. Use bitwise operators only on unsigned operands",[86,87,89],"h2",{"id":88},"noncompliant-code-example-left-shift-unsigned-type","Noncompliant Code Example (Left Shift, Unsigned Type)",[39,91,92,93,96,97,100,101,104],{},"The result of ",[48,94,95],{},"  E1 \u003C\u003C E2 ","is",[48,98,99],{},"  E1 ","left-shifted",[48,102,103],{},"  E2 "," bit positions; vacated bits are filled with zeros. The following diagram illustrates the left-shift operation.",[39,106,107],{},[108,109],"img",{"alt":110,"src":111},"","attachments\u002F87152418\u002F88038562.jpg",[39,113,114,115,118,119,121,122,46,125,128],{},"According to the C Standard, if ",[48,116,117],{},"E1"," has an unsigned type, the value of the result is ",[48,120,117],{}," * ",[48,123,124],{},"2",[48,126,127],{},"E2"," , reduced modulo 1 more than the maximum value representable in the result type.",[39,130,131],{},"This noncompliant code example fails to ensure that the right operand is less than the precision of the promoted left operand:",[133,134,136],"code-block",{"quality":135},"bad",[137,138,142],"pre",{"className":139,"code":140,"language":141,"meta":110,"style":110},"language-c shiki shiki-themes github-light github-dark monokai","void func(unsigned int ui_a, unsigned int ui_b) {\n  unsigned int uresult = ui_a \u003C\u003C ui_b;\n  \u002F* ... *\u002F\n}\n","c",[48,143,144,184,207,214],{"__ignoreMap":110},[145,146,149,153,157,161,164,167,171,174,176,178,181],"span",{"class":147,"line":148},"line",1,[145,150,152],{"class":151},"sq6CD","void",[145,154,156],{"class":155},"srTi1"," func",[145,158,160],{"class":159},"sMOD_","(",[145,162,163],{"class":151},"unsigned",[145,165,166],{"class":151}," int",[145,168,170],{"class":169},"sTHNf"," ui_a",[145,172,173],{"class":159},", ",[145,175,163],{"class":151},[145,177,166],{"class":151},[145,179,180],{"class":169}," ui_b",[145,182,183],{"class":159},") {\n",[145,185,187,190,192,195,199,202,204],{"class":147,"line":186},2,[145,188,189],{"class":151},"  unsigned",[145,191,166],{"class":151},[145,193,194],{"class":159}," uresult ",[145,196,198],{"class":197},"sC2Qs","=",[145,200,201],{"class":159}," ui_a ",[145,203,50],{"class":197},[145,205,206],{"class":159}," ui_b;\n",[145,208,210],{"class":147,"line":209},3,[145,211,213],{"class":212},"s8-w5","  \u002F* ... *\u002F\n",[145,215,217],{"class":147,"line":216},4,[145,218,219],{"class":159},"}\n",[86,221,223],{"id":222},"compliant-solution-left-shift-unsigned-type","Compliant Solution (Left Shift, Unsigned Type)",[39,225,226],{},"This compliant solution eliminates the possibility of shifting by greater than or equal to the number of bits that exist in the precision of the left operand:",[133,228,230],{"quality":229},"good",[137,231,233],{"className":139,"code":232,"language":141,"meta":110,"style":110},"#include \u003Climits.h>\n#include \u003Cstddef.h>\n#include \u003Cinttypes.h>\n\nextern size_t popcount(uintmax_t);\n#define PRECISION(x) popcount(x)\n \nvoid func(unsigned int ui_a, unsigned int ui_b) {\n  unsigned int uresult = 0;\n  if (ui_b >= PRECISION(UINT_MAX)) {\n    \u002F* Handle error *\u002F\n  } else {\n    uresult = ui_a \u003C\u003C ui_b;\n  }\n  \u002F* ... *\u002F\n}\n",[48,234,235,244,251,258,263,283,306,312,337,355,372,378,390,404,410,415],{"__ignoreMap":110},[145,236,237,240],{"class":147,"line":148},[145,238,239],{"class":197},"#include",[145,241,243],{"class":242},"sstjo"," \u003Climits.h>\n",[145,245,246,248],{"class":147,"line":186},[145,247,239],{"class":197},[145,249,250],{"class":242}," \u003Cstddef.h>\n",[145,252,253,255],{"class":147,"line":209},[145,254,239],{"class":197},[145,256,257],{"class":242}," \u003Cinttypes.h>\n",[145,259,260],{"class":147,"line":216},[145,261,262],{"emptyLinePlaceholder":7},"\n",[145,264,266,269,272,275,277,280],{"class":147,"line":265},5,[145,267,268],{"class":197},"extern",[145,270,271],{"class":151}," size_t",[145,273,274],{"class":155}," popcount",[145,276,160],{"class":159},[145,278,279],{"class":151},"uintmax_t",[145,281,282],{"class":159},");\n",[145,284,286,289,292,294,297,300,303],{"class":147,"line":285},6,[145,287,288],{"class":197},"#define",[145,290,291],{"class":155}," PRECISION",[145,293,160],{"class":159},[145,295,296],{"class":169},"x",[145,298,299],{"class":159},") ",[145,301,302],{"class":155},"popcount",[145,304,305],{"class":159},"(x)\n",[145,307,309],{"class":147,"line":308},7,[145,310,311],{"class":159}," \n",[145,313,315,317,319,321,323,325,327,329,331,333,335],{"class":147,"line":314},8,[145,316,152],{"class":151},[145,318,156],{"class":155},[145,320,160],{"class":159},[145,322,163],{"class":151},[145,324,166],{"class":151},[145,326,170],{"class":169},[145,328,173],{"class":159},[145,330,163],{"class":151},[145,332,166],{"class":151},[145,334,180],{"class":169},[145,336,183],{"class":159},[145,338,340,342,344,346,348,352],{"class":147,"line":339},9,[145,341,189],{"class":151},[145,343,166],{"class":151},[145,345,194],{"class":159},[145,347,198],{"class":197},[145,349,351],{"class":350},"s7F3e"," 0",[145,353,354],{"class":159},";\n",[145,356,358,361,364,367,369],{"class":147,"line":357},10,[145,359,360],{"class":197},"  if",[145,362,363],{"class":159}," (ui_b ",[145,365,366],{"class":197},">=",[145,368,291],{"class":155},[145,370,371],{"class":159},"(UINT_MAX)) {\n",[145,373,375],{"class":147,"line":374},11,[145,376,377],{"class":212},"    \u002F* Handle error *\u002F\n",[145,379,381,384,387],{"class":147,"line":380},12,[145,382,383],{"class":159},"  } ",[145,385,386],{"class":197},"else",[145,388,389],{"class":159}," {\n",[145,391,393,396,398,400,402],{"class":147,"line":392},13,[145,394,395],{"class":159},"    uresult ",[145,397,198],{"class":197},[145,399,201],{"class":159},[145,401,50],{"class":197},[145,403,206],{"class":159},[145,405,407],{"class":147,"line":406},14,[145,408,409],{"class":159},"  }\n",[145,411,413],{"class":147,"line":412},15,[145,414,213],{"class":212},[145,416,418],{"class":147,"line":417},16,[145,419,219],{"class":159},[39,421,422,423,426,427,430,431,73],{},"The ",[48,424,425],{},"PRECISION()"," macro and ",[48,428,429],{},"popcount()"," function provide the correct precision for any integer type. (See ",[64,432,434],{"href":433},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint35-c","INT35-C. Use correct integer precisions",[39,436,437,438,442],{},"Modulo behavior resulting from left-shifting an unsigned integer type is permitted by exception INT30-EX3 to ",[64,439,441],{"href":440},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint30-c","INT30-C. Ensure that unsigned integer operations do not wrap"," .",[86,444,446],{"id":445},"noncompliant-code-example-left-shift-signed-type","Noncompliant Code Example (Left Shift, Signed Type)",[39,448,92,449,96,451,100,453,455,456,458,459,121,461,46,463,465,466,468],{},[48,450,95],{},[48,452,99],{},[48,454,103],{}," bit positions; vacated bits are filled with zeros. If ",[48,457,117],{}," has a signed type and nonnegative value, and ",[48,460,117],{},[48,462,124],{},[48,464,127],{}," is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined (See ",[64,467,72],{"href":71}," .).",[39,470,471,472,442],{},"This noncompliant code example fails to ensure that left and right operands have nonnegative values and that the right operand is less than the precision of the promoted left operand. This example does check for signed integer overflow in compliance with ",[64,473,475],{"href":474},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint32-c","INT32-C. Ensure that operations on signed integers do not result in overflow",[133,477,478],{"quality":135},[137,479,481],{"className":139,"code":480,"language":141,"meta":110,"style":110},"#include \u003Climits.h>\n#include \u003Cstddef.h>\n#include \u003Cinttypes.h>\n\nvoid func(signed long si_a, signed long si_b) {\n  signed long result;\n  if (si_a > (LONG_MAX >> si_b)) {\n    \u002F* Handle error *\u002F\n  } else {\n    result = si_a \u003C\u003C si_b;\n  }\n  \u002F* ... *\u002F\n}\n",[48,482,483,489,495,501,505,533,543,561,565,573,588,592,596],{"__ignoreMap":110},[145,484,485,487],{"class":147,"line":148},[145,486,239],{"class":197},[145,488,243],{"class":242},[145,490,491,493],{"class":147,"line":186},[145,492,239],{"class":197},[145,494,250],{"class":242},[145,496,497,499],{"class":147,"line":209},[145,498,239],{"class":197},[145,500,257],{"class":242},[145,502,503],{"class":147,"line":216},[145,504,262],{"emptyLinePlaceholder":7},[145,506,507,509,511,513,516,519,522,524,526,528,531],{"class":147,"line":265},[145,508,152],{"class":151},[145,510,156],{"class":155},[145,512,160],{"class":159},[145,514,515],{"class":151},"signed",[145,517,518],{"class":151}," long",[145,520,521],{"class":169}," si_a",[145,523,173],{"class":159},[145,525,515],{"class":151},[145,527,518],{"class":151},[145,529,530],{"class":169}," si_b",[145,532,183],{"class":159},[145,534,535,538,540],{"class":147,"line":285},[145,536,537],{"class":151},"  signed",[145,539,518],{"class":151},[145,541,542],{"class":159}," result;\n",[145,544,545,547,550,553,556,558],{"class":147,"line":308},[145,546,360],{"class":197},[145,548,549],{"class":159}," (si_a ",[145,551,552],{"class":197},">",[145,554,555],{"class":159}," (LONG_MAX ",[145,557,59],{"class":197},[145,559,560],{"class":159}," si_b)) {\n",[145,562,563],{"class":147,"line":314},[145,564,377],{"class":212},[145,566,567,569,571],{"class":147,"line":339},[145,568,383],{"class":159},[145,570,386],{"class":197},[145,572,389],{"class":159},[145,574,575,578,580,583,585],{"class":147,"line":357},[145,576,577],{"class":159},"    result ",[145,579,198],{"class":197},[145,581,582],{"class":159}," si_a ",[145,584,50],{"class":197},[145,586,587],{"class":159}," si_b;\n",[145,589,590],{"class":147,"line":374},[145,591,409],{"class":159},[145,593,594],{"class":147,"line":380},[145,595,213],{"class":212},[145,597,598],{"class":147,"line":392},[145,599,219],{"class":159},[39,601,602,603,442],{},"Shift operators and other bitwise operators should be used only with unsigned integer operands in accordance with ",[64,604,84],{"href":83},[86,606,608],{"id":607},"compliant-solutionleft-shift-signed-type","Compliant Solution (Left Shift, Signed Type)",[39,610,611],{},"In addition to the check for overflow, this compliant solution ensures that both the left and right operands have nonnegative values and that the right operand is less than the precision of the promoted left operand:",[133,613,614],{"quality":229},[137,615,617],{"className":139,"code":616,"language":141,"meta":110,"style":110},"#include \u003Climits.h>\n#include \u003Cstddef.h>\n#include \u003Cinttypes.h>\n \nextern size_t popcount(uintmax_t);\n#define PRECISION(x) popcount(x)\n \nvoid func(signed long si_a, signed long si_b) {\n  signed long result;\n  if ((si_a \u003C 0) || (si_b \u003C 0) ||\n      (si_b >= PRECISION(ULONG_MAX)) ||\n      (si_a > (LONG_MAX >> si_b))) {\n    \u002F* Handle error *\u002F\n  } else {\n    result = si_a \u003C\u003C si_b;\n  }\n  \u002F* ... *\u002F\n}\n",[48,618,619,625,631,637,641,655,671,675,699,707,736,750,764,768,776,788,792,797],{"__ignoreMap":110},[145,620,621,623],{"class":147,"line":148},[145,622,239],{"class":197},[145,624,243],{"class":242},[145,626,627,629],{"class":147,"line":186},[145,628,239],{"class":197},[145,630,250],{"class":242},[145,632,633,635],{"class":147,"line":209},[145,634,239],{"class":197},[145,636,257],{"class":242},[145,638,639],{"class":147,"line":216},[145,640,311],{"class":159},[145,642,643,645,647,649,651,653],{"class":147,"line":265},[145,644,268],{"class":197},[145,646,271],{"class":151},[145,648,274],{"class":155},[145,650,160],{"class":159},[145,652,279],{"class":151},[145,654,282],{"class":159},[145,656,657,659,661,663,665,667,669],{"class":147,"line":285},[145,658,288],{"class":197},[145,660,291],{"class":155},[145,662,160],{"class":159},[145,664,296],{"class":169},[145,666,299],{"class":159},[145,668,302],{"class":155},[145,670,305],{"class":159},[145,672,673],{"class":147,"line":308},[145,674,311],{"class":159},[145,676,677,679,681,683,685,687,689,691,693,695,697],{"class":147,"line":314},[145,678,152],{"class":151},[145,680,156],{"class":155},[145,682,160],{"class":159},[145,684,515],{"class":151},[145,686,518],{"class":151},[145,688,521],{"class":169},[145,690,173],{"class":159},[145,692,515],{"class":151},[145,694,518],{"class":151},[145,696,530],{"class":169},[145,698,183],{"class":159},[145,700,701,703,705],{"class":147,"line":339},[145,702,537],{"class":151},[145,704,518],{"class":151},[145,706,542],{"class":159},[145,708,709,711,714,717,719,721,724,727,729,731,733],{"class":147,"line":357},[145,710,360],{"class":197},[145,712,713],{"class":159}," ((si_a ",[145,715,716],{"class":197},"\u003C",[145,718,351],{"class":350},[145,720,299],{"class":159},[145,722,723],{"class":197},"||",[145,725,726],{"class":159}," (si_b ",[145,728,716],{"class":197},[145,730,351],{"class":350},[145,732,299],{"class":159},[145,734,735],{"class":197},"||\n",[145,737,738,741,743,745,748],{"class":147,"line":374},[145,739,740],{"class":159},"      (si_b ",[145,742,366],{"class":197},[145,744,291],{"class":155},[145,746,747],{"class":159},"(ULONG_MAX)) ",[145,749,735],{"class":197},[145,751,752,755,757,759,761],{"class":147,"line":380},[145,753,754],{"class":159},"      (si_a ",[145,756,552],{"class":197},[145,758,555],{"class":159},[145,760,59],{"class":197},[145,762,763],{"class":159}," si_b))) {\n",[145,765,766],{"class":147,"line":392},[145,767,377],{"class":212},[145,769,770,772,774],{"class":147,"line":406},[145,771,383],{"class":159},[145,773,386],{"class":197},[145,775,389],{"class":159},[145,777,778,780,782,784,786],{"class":147,"line":412},[145,779,577],{"class":159},[145,781,198],{"class":197},[145,783,582],{"class":159},[145,785,50],{"class":197},[145,787,587],{"class":159},[145,789,790],{"class":147,"line":417},[145,791,409],{"class":159},[145,793,795],{"class":147,"line":794},17,[145,796,213],{"class":212},[145,798,800],{"class":147,"line":799},18,[145,801,219],{"class":159},[39,803,804],{},"Noncompliant Code Example (Right Shift)",[39,806,92,807,96,810,812,813,815,816,818,819,821,822,824,825,46,827,829,830,832,833,837],{},[48,808,809],{},"  E1 >> E2 ",[48,811,99],{},"right-shifted",[48,814,103],{}," bit positions. If ",[48,817,117],{}," has an unsigned type or if ",[48,820,117],{}," has a signed type and a nonnegative value, the value of the result is the integral part of the quotient of ",[48,823,117],{}," \u002F ",[48,826,124],{},[48,828,127],{}," . If ",[48,831,117],{}," has a signed type and a negative value, the resulting value is ",[64,834,836],{"href":835},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-implementation-definedbehavior","implementation-defined"," and can be either an arithmetic (signed) shift",[39,839,840],{},[108,841],{"alt":110,"src":842},"attachments\u002F87152418\u002F88038557.jpg",[39,844,845],{},"or a logical (unsigned) shift",[39,847,848],{},[108,849],{"alt":110,"src":850},"attachments\u002F87152418\u002F88018503.jpg",[39,852,853,854,856],{},"This noncompliant code example fails to test whether the right operand is greater than or equal to the precision of the promoted left operand, allowing undefined behavior (See ",[64,855,72],{"href":71}," .):",[133,858,859],{"quality":135},[137,860,862],{"className":139,"code":861,"language":141,"meta":110,"style":110},"void func(unsigned int ui_a, unsigned int ui_b) {\n  unsigned int uresult = ui_a >> ui_b;\n  \u002F* ... *\u002F\n}\n",[48,863,864,888,904,908],{"__ignoreMap":110},[145,865,866,868,870,872,874,876,878,880,882,884,886],{"class":147,"line":148},[145,867,152],{"class":151},[145,869,156],{"class":155},[145,871,160],{"class":159},[145,873,163],{"class":151},[145,875,166],{"class":151},[145,877,170],{"class":169},[145,879,173],{"class":159},[145,881,163],{"class":151},[145,883,166],{"class":151},[145,885,180],{"class":169},[145,887,183],{"class":159},[145,889,890,892,894,896,898,900,902],{"class":147,"line":186},[145,891,189],{"class":151},[145,893,166],{"class":151},[145,895,194],{"class":159},[145,897,198],{"class":197},[145,899,201],{"class":159},[145,901,59],{"class":197},[145,903,206],{"class":159},[145,905,906],{"class":147,"line":209},[145,907,213],{"class":212},[145,909,910],{"class":147,"line":216},[145,911,219],{"class":159},[39,913,914,915,68,919,73],{},"When working with signed operands, making assumptions about whether a right shift is implemented as an arithmetic (signed) shift or a logical (unsigned) shift can also lead to ",[64,916,918],{"href":917},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-vulnerability","vulnerabilities",[64,920,84],{"href":83},[86,922,924],{"id":923},"compliant-solution-right-shift","Compliant Solution (Right Shift)",[39,926,226],{},[133,928,929],{"quality":229},[137,930,932],{"className":139,"code":931,"language":141,"meta":110,"style":110},"#include \u003Climits.h>\n#include \u003Cstddef.h>\n#include \u003Cinttypes.h>\n\nextern size_t popcount(uintmax_t);\n#define PRECISION(x) popcount(x)\n \nvoid func(unsigned int ui_a, unsigned int ui_b) {\n  unsigned int uresult = 0;\n  if (ui_b >= PRECISION(UINT_MAX)) {\n    \u002F* Handle error *\u002F\n  } else {\n    uresult = ui_a >> ui_b;\n  }\n  \u002F* ... *\u002F\n}\n",[48,933,934,940,946,952,956,970,986,990,1014,1028,1040,1044,1052,1064,1068,1072],{"__ignoreMap":110},[145,935,936,938],{"class":147,"line":148},[145,937,239],{"class":197},[145,939,243],{"class":242},[145,941,942,944],{"class":147,"line":186},[145,943,239],{"class":197},[145,945,250],{"class":242},[145,947,948,950],{"class":147,"line":209},[145,949,239],{"class":197},[145,951,257],{"class":242},[145,953,954],{"class":147,"line":216},[145,955,262],{"emptyLinePlaceholder":7},[145,957,958,960,962,964,966,968],{"class":147,"line":265},[145,959,268],{"class":197},[145,961,271],{"class":151},[145,963,274],{"class":155},[145,965,160],{"class":159},[145,967,279],{"class":151},[145,969,282],{"class":159},[145,971,972,974,976,978,980,982,984],{"class":147,"line":285},[145,973,288],{"class":197},[145,975,291],{"class":155},[145,977,160],{"class":159},[145,979,296],{"class":169},[145,981,299],{"class":159},[145,983,302],{"class":155},[145,985,305],{"class":159},[145,987,988],{"class":147,"line":308},[145,989,311],{"class":159},[145,991,992,994,996,998,1000,1002,1004,1006,1008,1010,1012],{"class":147,"line":314},[145,993,152],{"class":151},[145,995,156],{"class":155},[145,997,160],{"class":159},[145,999,163],{"class":151},[145,1001,166],{"class":151},[145,1003,170],{"class":169},[145,1005,173],{"class":159},[145,1007,163],{"class":151},[145,1009,166],{"class":151},[145,1011,180],{"class":169},[145,1013,183],{"class":159},[145,1015,1016,1018,1020,1022,1024,1026],{"class":147,"line":339},[145,1017,189],{"class":151},[145,1019,166],{"class":151},[145,1021,194],{"class":159},[145,1023,198],{"class":197},[145,1025,351],{"class":350},[145,1027,354],{"class":159},[145,1029,1030,1032,1034,1036,1038],{"class":147,"line":357},[145,1031,360],{"class":197},[145,1033,363],{"class":159},[145,1035,366],{"class":197},[145,1037,291],{"class":155},[145,1039,371],{"class":159},[145,1041,1042],{"class":147,"line":374},[145,1043,377],{"class":212},[145,1045,1046,1048,1050],{"class":147,"line":380},[145,1047,383],{"class":159},[145,1049,386],{"class":197},[145,1051,389],{"class":159},[145,1053,1054,1056,1058,1060,1062],{"class":147,"line":392},[145,1055,395],{"class":159},[145,1057,198],{"class":197},[145,1059,201],{"class":159},[145,1061,59],{"class":197},[145,1063,206],{"class":159},[145,1065,1066],{"class":147,"line":406},[145,1067,409],{"class":159},[145,1069,1070],{"class":147,"line":412},[145,1071,213],{"class":212},[145,1073,1074],{"class":147,"line":417},[145,1075,219],{"class":159},[1077,1078,1080],"h3",{"id":1079},"implementation-details","Implementation Details",[39,1082,1083],{},"GCC has no options to handle shifts by negative amounts or by amounts outside the width of the type predictably or to trap on them; they are always treated as undefined. Processors may reduce the shift amount modulo the width of the type. For example, 32-bit right shifts are implemented using the following instruction on x86-32:",[137,1085,1089],{"className":1086,"code":1087,"language":1088,"meta":110,"style":110},"language-java shiki shiki-themes github-light github-dark monokai","sarl   %cl, %eax\n","java",[48,1090,1091],{"__ignoreMap":110},[145,1092,1093,1096,1099,1102,1104],{"class":147,"line":148},[145,1094,1095],{"class":159},"sarl   ",[145,1097,1098],{"class":197},"%",[145,1100,1101],{"class":159},"cl, ",[145,1103,1098],{"class":197},[145,1105,1106],{"class":159},"eax\n",[39,1108,422,1109,1112,1113,1116,1117,1120],{},[48,1110,1111],{},"sarl"," instruction takes a bit mask of the least significant 5 bits from ",[48,1114,1115],{},"%cl"," to produce a value in the range [0, 31] and then shift ",[48,1118,1119],{},"%eax"," that many bits:",[137,1122,1124],{"className":1086,"code":1123,"language":1088,"meta":110,"style":110},"\u002F\u002F 64-bit right shifts on IA-32 platforms become\nshrdl  %edx, %eax\nsarl   %cl, %edx\n",[48,1125,1126,1131,1145],{"__ignoreMap":110},[145,1127,1128],{"class":147,"line":148},[145,1129,1130],{"class":212},"\u002F\u002F 64-bit right shifts on IA-32 platforms become\n",[145,1132,1133,1136,1138,1141,1143],{"class":147,"line":186},[145,1134,1135],{"class":159},"shrdl  ",[145,1137,1098],{"class":197},[145,1139,1140],{"class":159},"edx, ",[145,1142,1098],{"class":197},[145,1144,1106],{"class":159},[145,1146,1147,1149,1151,1153,1155],{"class":147,"line":209},[145,1148,1095],{"class":159},[145,1150,1098],{"class":197},[145,1152,1101],{"class":159},[145,1154,1098],{"class":197},[145,1156,1157],{"class":159},"edx\n",[39,1159,1160,1161,1163,1164,1167],{},"where ",[48,1162,1119],{}," stores the least significant bits in the doubleword to be shifted, and ",[48,1165,1166],{},"%edx"," stores the most significant bits.",[86,1169,1171],{"id":1170},"risk-assessment","Risk Assessment",[39,1173,1174],{},"Although shifting a negative number of bits or shifting a number of bits greater than or equal to the width of the promoted left operand is undefined behavior in C, the risk is generally low because processors frequently reduce the shift amount modulo the width of the type.",[1176,1177,1178,1179,1178,1209],"table",{},"\n  ",[1180,1181,1182,1183,1178],"thead",{},"\n    ",[1184,1185,1186,1187,1186,1191,1186,1194,1186,1197,1186,1200,1186,1203,1186,1206,1182],"tr",{},"\n      ",[1188,1189,1190],"th",{},"Rule",[1188,1192,1193],{},"Severity",[1188,1195,1196],{},"Likelihood",[1188,1198,1199],{},"Detectable",[1188,1201,1202],{},"Repairable",[1188,1204,1205],{},"Priority",[1188,1207,1208],{},"Level",[1210,1211,1182,1212,1178],"tbody",{},[1184,1213,1186,1214,1186,1218,1186,1221,1186,1224,1186,1227,1186,1230,1186,1237,1182],{},[1215,1216,1217],"td",{},"INT34-C",[1215,1219,1220],{},"Low",[1215,1222,1223],{},"Unlikely",[1215,1225,1226],{},"No",[1215,1228,1229],{},"Yes",[1215,1231,1233],{"style":1232},"color: #27ae60;",[1234,1235,1236],"b",{},"P2",[1215,1238,1239],{"style":1232},[1234,1240,1241],{},"L3",[1077,1243,1245],{"id":1244},"automated-detection","Automated Detection",[1176,1247,1252,1268],{"className":1248,"style":1251},[1249,1250],"wrapped","relative-table","width: 99.9407%;",[1253,1254,1255,1259,1262,1265],"colgroup",{},[1256,1257],"col",{"style":1258},"width: 10%",[1256,1260],{"style":1261},"width: 23%",[1256,1263],{"style":1264},"width: 16%",[1256,1266],{"style":1267},"width: 49%",[1210,1269,1270,1294,1329,1355,1390,1418,1443,1469,1503,1526,1564,1591,1617,1643,1690,1717,1742,1769],{},[1184,1271,1274,1279,1284,1289],{"className":1272},[1273],"header",[1188,1275,1276],{},[39,1277,1278],{},"Tool",[1188,1280,1281],{},[39,1282,1283],{},"Version",[1188,1285,1286],{},[39,1287,1288],{},"Checker",[1188,1290,1291],{},[39,1292,1293],{},"Description",[1184,1295,1298,1304,1312,1326],{"className":1296},[1297],"odd",[1215,1299,1300],{},[64,1301,1303],{"href":1302},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fastree","Astrée",[1215,1305,1306],{},[1307,1308,1311],"div",{"className":1309},[1310],"content-wrapper","25.10",[1215,1313,1314],{},[39,1315,1316,1320,1323],{},[1317,1318,1319],"strong",{},"precision-shift-width",[1321,1322],"br",{},[1317,1324,1325],{},"precision-shift-width-constant",[1215,1327,1328],{},"Fully checked",[1184,1330,1333,1339,1347,1352],{"className":1331},[1332],"even",[1215,1334,1335],{},[64,1336,1338],{"href":1337},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Faxivion-bauhaus-suite","Axivion Bauhaus Suite",[1215,1340,1341],{},[1307,1342,1344],{"className":1343},[1310],[39,1345,1346],{},"7.2.0",[1215,1348,1349],{},[1317,1350,1351],{},"CertC-INT34",[1215,1353,1354],{},"Can detect shifts by a negative or an excessive number of bits and right shifts on negative values.",[1184,1356,1358,1364,1370,1382],{"className":1357},[1297],[1215,1359,1360],{},[64,1361,1363],{"href":1362},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodesonar","CodeSonar",[1215,1365,1366],{},[1307,1367,1369],{"className":1368},[1310],"9.1p0",[1215,1371,1372],{},[39,1373,1374,46,1379],{},[1317,1375,1376,1377],{},"LANG.ARITH.BIGSHIFT",[1321,1378],{},[1317,1380,1381],{},"LANG.ARITH.NEGSHIFT",[1215,1383,1384],{},[39,1385,1386,1387,1389],{},"Shift amount exceeds bit width",[1321,1388],{},"\nNegative shift amount",[1184,1391,1393,1399,1405,1411],{"className":1392},[1332],[1215,1394,1395],{},[64,1396,1398],{"href":1397},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frose","Compass\u002FROSE",[1215,1400,1401],{},[39,1402,1403],{},[1321,1404],{},[1215,1406,1407],{},[39,1408,1409],{},[1321,1410],{},[1215,1412,1413],{},[39,1414,1415,1416],{},"Can detect violations of this rule. Unsigned operands are detected when checking for ",[64,1417,84],{"href":83},[1184,1419,1421,1427,1433,1440],{"className":1420},[1297],[1215,1422,1423],{},[64,1424,1426],{"href":1425},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcoverity","Coverity",[1215,1428,1429],{},[1307,1430,1432],{"className":1431},[1310],"2017.07",[1215,1434,1435],{},[39,1436,1437],{},[1317,1438,1439],{},"BAD_SHIFT",[1215,1441,1442],{},"Implemented",[1184,1444,1446,1452,1458,1463],{"className":1445},[1332],[1215,1447,1448],{},[64,1449,1451],{"href":1450},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck","Cppcheck",[1215,1453,1454],{},[1307,1455,1457],{"className":1456},[1310],"2.15",[1215,1459,1460],{},[1317,1461,1462],{},"shiftNegative, shiftTooManyBits",[1215,1464,1465],{},[39,1466,1467],{},[1321,1468],{},[1184,1470,1472,1478,1486,1499],{"className":1471},[1297],[1215,1473,1474],{},[64,1475,1477],{"href":1476},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck-premium","Cppcheck Premium",[1215,1479,1480],{},[1307,1481,1483],{"className":1482},[1310],[39,1484,1485],{},"24.11.0",[1215,1487,1488,1492],{},[39,1489,1490],{},[1317,1491,1462],{},[39,1493,1494],{},[1317,1495,1496],{},[1317,1497,1498],{},"premium-cert-int34-c",[1215,1500,1501],{},[1321,1502],{},[1184,1504,1506,1512,1518,1523],{"className":1505},[1332],[1215,1507,1508],{},[64,1509,1511],{"href":1510},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Feclair","ECLAIR",[1215,1513,1514],{},[1307,1515,1517],{"className":1516},[1310],"1.2",[1215,1519,1520],{},[1317,1521,1522],{},"CC2.INT34",[1215,1524,1525],{},"Partially implemented",[1184,1527,1529,1535,1543,1560],{"className":1528},[1297],[1215,1530,1531],{},[64,1532,1534],{"href":1533},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fhelix-qac","Helix QAC",[1215,1536,1537],{},[1307,1538,1540],{"className":1539},[1310],[39,1541,1542],{},"2025.2",[1215,1544,1545,1550,1555],{},[39,1546,1547],{},[1317,1548,1549],{},"C0499, C2790,",[39,1551,1552],{},[1317,1553,1554],{},"C++2790,  C++3003",[39,1556,1557],{},[1317,1558,1559],{},"DF2791, DF2792, DF2793",[1215,1561,1562],{},[1321,1563],{},[1184,1565,1567,1573,1580,1587],{"className":1566},[1332],[1215,1568,1569],{},[64,1570,1572],{"href":1571},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fklocwork","Klocwork",[1215,1574,1575],{},[1307,1576,1578],{"className":1577},[1310],[39,1579,1542],{},[1215,1581,1582],{},[39,1583,1584],{},[1317,1585,1586],{},"MISRA.SHIFT.RANGE.2012",[1215,1588,1589],{},[1321,1590],{},[1184,1592,1594,1600,1606,1613],{"className":1593},[1297],[1215,1595,1596],{},[64,1597,1599],{"href":1598},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fldra","LDRA tool suite",[1215,1601,1602],{},[1307,1603,1605],{"className":1604},[1310],"9.7.1",[1215,1607,1608],{},[39,1609,1610],{},[1317,1611,1612],{},"51 S, 403 S, 479 S",[1215,1614,1615],{},[39,1616,1525],{},[1184,1618,1620,1626,1631,1638],{"className":1619},[1332],[1215,1621,1622],{},[64,1623,1625],{"href":1624},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fparasoft","Parasoft C\u002FC++test",[1215,1627,1628],{},[1307,1629,1542],{"className":1630},[1310],[1215,1632,1633],{},[1317,1634,1635,1636],{},"CERT_C-INT34-a",[1321,1637],{},[1215,1639,1640],{},[39,1641,1642],{},"Avoid incorrect shift operations",[1184,1644,1646,1652,1660,1672],{"className":1645},[1297],[1215,1647,1648],{},[64,1649,1651],{"href":1650},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpolyspace-bug-finder","Polyspace Bug Finder",[1215,1653,1654],{},[1307,1655,1657],{"className":1656},[1310],[39,1658,1659],{},"R2025b",[1215,1661,1662,1668],{},[39,1663,1664],{},[64,1665,1667],{"href":1666},"https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fbugfinder\u002Fref\u002Fcertcruleint34c.html","CERT C: Rule INT34-C",[39,1669,1670],{},[1321,1671],{},[1215,1673,1674,1677,1687],{},[39,1675,1676],{},"Checks for:",[1678,1679,1680,1684],"ul",{},[1681,1682,1683],"li",{},"Shift of a negative value",[1681,1685,1686],{},"Shift operation overflow",[39,1688,1689],{},"Rule partially covered.",[1184,1691,1693,1699,1707,1713],{"className":1692},[1332],[1215,1694,1695],{},[64,1696,1698],{"href":1697},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpvs-studio","PVS-Studio",[1215,1700,1701],{},[1307,1702,1704],{"className":1703},[1310],[39,1705,1706],{},"7.42",[1215,1708,1709],{},[64,1710,1712],{"href":1711},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv610\u002F","V610",[1215,1714,1715],{},[1321,1716],{},[1184,1718,1720,1726,1733,1739],{"className":1719},[1297],[1215,1721,1722],{},[64,1723,1725],{"href":1724},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frulechecker","RuleChecker",[1215,1727,1728],{},[1307,1729,1731],{"className":1730},[1310],[39,1732,1311],{},[1215,1734,1735],{},[39,1736,1737],{},[1317,1738,1325],{},[1215,1740,1741],{},"Partially checked",[1184,1743,1745,1751,1759,1766],{"className":1744},[1332],[1215,1746,1747],{},[64,1748,1750],{"href":1749},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsecurity-reviewer-static-reviewer","Security Reviewer - Static Reviewer",[1215,1752,1753],{},[1307,1754,1756],{"className":1755},[1310],[39,1757,1758],{},"6.02",[1215,1760,1761],{},[39,1762,1763],{},[1317,1764,1765],{},"CPP_03",[1215,1767,1768],{},"Fully implemented",[1184,1770,1772,1778,1786,1791],{"className":1771},[1297],[1215,1773,1774],{},[64,1775,1777],{"href":1776},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Ftrustinsoft-analyzer","TrustInSoft Analyzer",[1215,1779,1780],{},[1307,1781,1783],{"className":1782},[1310],[39,1784,1785],{},"1.38",[1215,1787,1788],{},[1317,1789,1790],{},"shift",[1215,1792,1793],{},[39,1794,1795,1796,1800],{},"Exhaustively verified (see ",[64,1797,1799],{"href":1798},"https:\u002F\u002Ftaas.trust-in-soft.com\u002Ftsnippet\u002Ft\u002F9f127105","one compliant and one non-compliant example"," ).",[1077,1802,1804],{"id":1803},"related-vulnerabilities","Related Vulnerabilities",[39,1806,1807,1808,1810,1811,442],{},"Search for ",[64,1809,918],{"href":917}," resulting from the violation of this rule on the ",[64,1812,1816],{"href":1813,"rel":1814},"https:\u002F\u002Fwww.kb.cert.org\u002Fvulnotes\u002Fbymetric?searchview&query=FIELD+KEYWORDS+contains+INT34-C",[1815],"nofollow","CERT website",[86,1818,1820],{"id":1819},"related-guidelines","Related Guidelines",[39,1822,1823,1827],{},[64,1824,1826],{"href":1825},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-RelatedGuidelines","Key here"," (explains table format and definitions)",[1176,1829,1830,1840],{},[1180,1831,1832],{},[1184,1833,1834,1836,1838],{},[1188,1835],{},[1188,1837],{},[1188,1839],{},[1210,1841,1842,1853,1867,1879,1891,1904,1923],{},[1184,1843,1844,1847,1850],{},[1215,1845,1846],{},"Taxonomy",[1215,1848,1849],{},"Taxonomy item",[1215,1851,1852],{},"Relationship",[1184,1854,1855,1860,1864],{},[1215,1856,1857],{},[64,1858,1859],{"href":17},"CERT C",[1215,1861,1862],{},[64,1863,84],{"href":83},[1215,1865,1866],{},"Prior to 2018-01-12: CERT: Unspecified Relationship",[1184,1868,1869,1873,1877],{},[1215,1870,1871],{},[64,1872,1859],{"href":17},[1215,1874,1875],{},[64,1876,434],{"href":433},[1215,1878,1866],{},[1184,1880,1881,1885,1889],{},[1215,1882,1883],{},[64,1884,1859],{"href":17},[1215,1886,1887],{},[64,1888,475],{"href":474},[1215,1890,1866],{},[1184,1892,1893,1899,1902],{},[1215,1894,1895],{},[64,1896,1898],{"href":1897},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTR24772-2013","ISO\u002FIEC TR 24772:2013",[1215,1900,1901],{},"Arithmetic Wrap-Around Error [FIF]",[1215,1903,1866],{},[1184,1905,1906,1913,1920],{},[1215,1907,1908],{},[64,1909,1912],{"href":1910,"rel":1911},"http:\u002F\u002Fcwe.mitre.org\u002F",[1815],"CWE 2.11",[1215,1914,1915],{},[64,1916,1919],{"href":1917,"rel":1918},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html682.html",[1815],"CWE-682",[1215,1921,1922],{},"2017-07-07: CERT: Rule subset of CWE",[1184,1924,1925,1930,1937],{},[1215,1926,1927],{},[64,1928,1912],{"href":1910,"rel":1929},[1815],[1215,1931,1932],{},[64,1933,1936],{"href":1934,"rel":1935},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html758.html",[1815],"CWE-758",[1215,1938,1922],{},[86,1940,1942],{"id":1941},"cert-cwe-mapping-notes","CERT-CWE Mapping Notes",[39,1944,1945,1948],{},[64,1946,1826],{"href":1947},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-CERT-CWEMappingNotes"," for mapping notes",[1077,1950,1952],{"id":1951},"cwe-758-and-int34-c","CWE-758 and INT34-C",[39,1954,1955],{},"Independent( INT34-C, INT36-C, MEM30-C, MSC37-C, FLP32-C, EXP33-C, EXP30-C, ERR34-C, ARR32-C)",[39,1957,1958],{},"CWE-758 = Union( INT34-C, list) where list =",[1678,1960,1961],{},[1681,1962,1963],{},"Undefined behavior that results from anything other than incorrect bit shifting",[1077,1965,1967],{"id":1966},"cwe-682-and-int34-c","CWE-682 and INT34-C",[39,1969,1970],{},"Independent( INT34-C, FLP32-C, INT33-C) CWE-682 = Union( INT34-C, list) where list =",[1678,1972,1973],{},[1681,1974,1975],{},"Incorrect calculations that do not involve out-of-range bit shifts",[86,1977,1979],{"id":1978},"bibliography","Bibliography",[1176,1981,1982,1990],{},[1180,1983,1984],{},[1184,1985,1986,1988],{},[1188,1987],{},[1188,1989],{},[1210,1991,1992,2005,2016,2027],{},[1184,1993,1994,2002],{},[1215,1995,1996,1997,2001],{},"[ ",[64,1998,2000],{"href":1999},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-C992003","C99 Rationale 2003"," ]",[1215,2003,2004],{},"6.5.7, \"Bitwise Shift Operators\"",[1184,2006,2007,2013],{},[1215,2008,1996,2009,2001],{},[64,2010,2012],{"href":2011},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Dowd06","Dowd 2006",[1215,2014,2015],{},"Chapter 6, \"C Language Issues\"",[1184,2017,2018,2024],{},[1215,2019,1996,2020,2001],{},[64,2021,2023],{"href":2022},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Seacord2013","Seacord 2013b",[1215,2025,2026],{},"Chapter 5, \"Integer Security\"",[1184,2028,2029,2035],{},[1215,2030,1996,2031,2001],{},[64,2032,2034],{"href":2033},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Viega05","Viega 2005",[1215,2036,2037],{},"Section 5.2.7, \"Integer Overflow\"",[2039,2040],"hr",{},[39,2042,2043,46,2049,46,2055],{},[64,2044,2046],{"href":2045},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint33-c",[108,2047],{"src":2048},"\u002Fattachments\u002F87152044\u002F88034188.png",[64,2050,2052],{"href":2051},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002F",[108,2053],{"src":2054},"\u002Fattachments\u002F87152044\u002F88034190.png",[64,2056,2057],{"href":433},[108,2058],{"src":2059},"\u002Fattachments\u002F87152044\u002F88034189.png",[86,2061,2063],{"id":2062},"attachments","Attachments:",[1307,2065,2069],{"className":2066,"align":2068},[2067],"greybox","left",[39,2070,2071,46,2074,2079,2080,2082,46,2084,2079,2088,2090,46,2092,2096,2097,2099,46,2101,2079],{},[108,2072],{"alt":110,"src":2073},"images\u002Ficons\u002Fbullet_blue.gif",[64,2075,2078],{"href":2076,"target":2077},"\u002Fattachments\u002F87152418\u002F88038557.jpg","_blank","ShiftRight.JPG"," (image\u002Fjpeg)",[1321,2081],{},[108,2083],{"alt":110,"src":2073},[64,2085,2087],{"href":2086,"target":2077},"\u002Fattachments\u002F87152418\u002F88038562.jpg","ShiftLeft.JPG",[1321,2089],{},[108,2091],{"alt":110,"src":2073},[64,2093,2095],{"href":2094,"target":2077},"\u002Fattachments\u002F87152418\u002F88038559.cpp","leftshift.cpp"," (text\u002Fplain)",[1321,2098],{},[108,2100],{"alt":110,"src":2073},[64,2102,2104],{"href":2103,"target":2077},"\u002Fattachments\u002F87152418\u002F88018503.jpg","LogicalShiftRight.JPG",[2106,2107,2108],"style",{},"html pre.shiki code .sq6CD, html code.shiki .sq6CD{--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html pre.shiki code .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}",{"title":110,"searchDepth":186,"depth":186,"links":2110},[2111,2112,2113,2114,2115,2118,2122,2123,2127,2128],{"id":88,"depth":186,"text":89},{"id":222,"depth":186,"text":223},{"id":445,"depth":186,"text":446},{"id":607,"depth":186,"text":608},{"id":923,"depth":186,"text":924,"children":2116},[2117],{"id":1079,"depth":209,"text":1080},{"id":1170,"depth":186,"text":1171,"children":2119},[2120,2121],{"id":1244,"depth":209,"text":1245},{"id":1803,"depth":209,"text":1804},{"id":1819,"depth":186,"text":1820},{"id":1941,"depth":186,"text":1942,"children":2124},[2125,2126],{"id":1951,"depth":209,"text":1952},{"id":1966,"depth":209,"text":1967},{"id":1978,"depth":186,"text":1979},{"id":2062,"depth":186,"text":2063},"Bitwise shifts include left-shift operations of the form shift-expression \u003C\u003C additive-expression and right-shift operations of the form shift-expression >> additive-expression . The standard integer promotions are first performed on the operands, each of which has an integer type. The type of the result is that of the promoted left operand. If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined . (See undefined behavior 48 .)","md",{"tags":2132},[2133,2134,2135,2136,2137,2138,2139,2140],"in-cpp","ptc","fortify","compass\u002Frose","int","rose-complete","rule","android-applicable","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint34-c",{"title":30,"description":2129},"4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F6.int34-c","i6FQ-3xXghusfGEjl5-r902Keoqtf5O_FzKwWNuUcNE",[2146,2149],{"title":2147,"path":2045,"stem":2148,"children":-1},"INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F5.int33-c",{"title":434,"path":433,"stem":2150,"children":-1},"4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F7.int35-c",[2152],{"title":2153,"path":2154,"stem":2155,"children":2156},"SEI CERT C Coding Standard","\u002Fsei-cert-c-coding-standard","4.sei-cert-c-coding-standard\u002F01.index",[2157,2158,2230,2807,3073,3087,3091,3095,3099,3912],{"title":2153,"path":2154,"stem":2155},{"title":2159,"path":2160,"stem":2161,"children":2162},"Front Matter","\u002Fsei-cert-c-coding-standard\u002Ffront-matter","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F1.index",[2163,2164],{"title":2159,"path":2160,"stem":2161},{"title":2165,"path":2166,"stem":2167,"children":2168},"Introduction","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.index",[2169,2170,2174,2178,2182,2186,2190,2194,2198,2202,2206,2210,2214,2218,2222,2226],{"title":2165,"path":2166,"stem":2167},{"title":2171,"path":2172,"stem":2173},"Scope","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fscope","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.scope",{"title":2175,"path":2176,"stem":2177},"Audience","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Faudience","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F02.audience",{"title":2179,"path":2180,"stem":2181},"How this Coding Standard is Organized","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F03.how-this-coding-standard-is-organized",{"title":2183,"path":2184,"stem":2185},"History","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhistory","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F04.history",{"title":2187,"path":2188,"stem":2189},"ISO\u002FIEC TS 17961 C Secure Coding Rules","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fisoiec-ts-17961-c-secure-coding-rules","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F05.isoiec-ts-17961-c-secure-coding-rules",{"title":2191,"path":2192,"stem":2193},"Tool Selection and Validation","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Ftool-selection-and-validation","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F06.tool-selection-and-validation",{"title":2195,"path":2196,"stem":2197},"Taint Analysis","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Ftaint-analysis","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F07.taint-analysis",{"title":2199,"path":2200,"stem":2201},"Rules versus Recommendations","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Frules-versus-recommendations","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F08.rules-versus-recommendations",{"title":2203,"path":2204,"stem":2205},"Conformance Testing","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fconformance-testing","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F09.conformance-testing",{"title":2207,"path":2208,"stem":2209},"Development Process","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fdevelopment-process","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F10.development-process",{"title":2211,"path":2212,"stem":2213},"Usage","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fusage","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F11.usage",{"title":2215,"path":2216,"stem":2217},"System Qualities","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fsystem-qualities","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F12.system-qualities",{"title":2219,"path":2220,"stem":2221},"Automatically Generated Code","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fautomatically-generated-code","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F13.automatically-generated-code",{"title":2223,"path":2224,"stem":2225},"Government Regulations","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fgovernment-regulations","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F14.government-regulations",{"title":2227,"path":2228,"stem":2229},"Acknowledgments","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Facknowledgments","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F15.acknowledgments",{"title":2231,"path":2232,"stem":2233,"children":2234},"Rules","\u002Fsei-cert-c-coding-standard\u002Frules","4.sei-cert-c-coding-standard\u002F03.rules\u002F01.index",[2235,2236,2240,2270,2300,2362,2400,2426,2448,2514,2540,2598,2619,2649,2659,2697,2767,2785],{"title":2231,"path":2232,"stem":2233},{"title":2237,"path":2238,"stem":2239},"Application Programming Interfaces (API)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fapplication-programming-interfaces-api","4.sei-cert-c-coding-standard\u002F03.rules\u002F02.application-programming-interfaces-api",{"title":2241,"path":2242,"stem":2243,"children":2244},"Arrays (ARR)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F1.index",[2245,2246,2250,2254,2258,2262,2266],{"title":2241,"path":2242,"stem":2243},{"title":2247,"path":2248,"stem":2249},"ARR30-C. Do not form or use out-of-bounds pointers or array subscripts","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr\u002Farr30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F2.arr30-c",{"title":2251,"path":2252,"stem":2253},"ARR32-C. Ensure size arguments for variable length arrays are in a valid range","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr\u002Farr32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F3.arr32-c",{"title":2255,"path":2256,"stem":2257},"ARR36-C. Do not subtract or compare two pointers that do not refer to the same array","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr\u002Farr36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F4.arr36-c",{"title":2259,"path":2260,"stem":2261},"ARR37-C. Do not add or subtract an integer to a pointer to a non-array object","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr\u002Farr37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F5.arr37-c",{"title":2263,"path":2264,"stem":2265},"ARR38-C. Guarantee that library functions do not form invalid pointers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr\u002Farr38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F6.arr38-c",{"title":2267,"path":2268,"stem":2269},"ARR39-C. Do not add or subtract a scaled integer to a pointer","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr\u002Farr39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F7.arr39-c",{"title":2271,"path":2272,"stem":2273,"children":2274},"Characters and Strings (STR)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F1.index",[2275,2276,2280,2284,2288,2292,2296],{"title":2271,"path":2272,"stem":2273},{"title":2277,"path":2278,"stem":2279},"STR30-C. Do not attempt to modify string literals","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F2.str30-c",{"title":2281,"path":2282,"stem":2283},"STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F3.str31-c",{"title":2285,"path":2286,"stem":2287},"STR32-C. Do not pass a non-null-terminated character sequence to a library function that expects a string","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F4.str32-c",{"title":2289,"path":2290,"stem":2291},"STR34-C. Cast characters to unsigned char before converting to larger integer sizes","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F5.str34-c",{"title":2293,"path":2294,"stem":2295},"STR37-C. Arguments to character-handling functions must be representable as an unsigned char","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F6.str37-c",{"title":2297,"path":2298,"stem":2299},"STR38-C. Do not confuse narrow and wide character strings and functions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F7.str38-c",{"title":2301,"path":2302,"stem":2303,"children":2304},"Concurrency (CON)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F01.index",[2305,2306,2310,2314,2318,2322,2326,2330,2334,2338,2342,2346,2350,2354,2358],{"title":2301,"path":2302,"stem":2303},{"title":2307,"path":2308,"stem":2309},"CON30-C. Clean up thread-specific storage","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F02.con30-c",{"title":2311,"path":2312,"stem":2313},"CON31-C. Do not destroy a mutex while it is locked","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F03.con31-c",{"title":2315,"path":2316,"stem":2317},"CON32-C. Prevent data races when accessing bit-fields from multiple threads","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F04.con32-c",{"title":2319,"path":2320,"stem":2321},"CON33-C. Avoid race conditions when using library functions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F05.con33-c",{"title":2323,"path":2324,"stem":2325},"CON34-C. Declare objects shared between threads with appropriate storage durations","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F06.con34-c",{"title":2327,"path":2328,"stem":2329},"CON35-C. Avoid deadlock by locking in a predefined order","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon35-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F07.con35-c",{"title":2331,"path":2332,"stem":2333},"CON36-C. Wrap functions that can spuriously wake up in a loop","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F08.con36-c",{"title":2335,"path":2336,"stem":2337},"CON37-C. Do not call signal() in a multithreaded program","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F09.con37-c",{"title":2339,"path":2340,"stem":2341},"CON38-C. Preserve thread safety and liveness when using condition variables","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F10.con38-c",{"title":2343,"path":2344,"stem":2345},"CON39-C. Do not join or detach a thread that was previously joined or detached","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F11.con39-c",{"title":2347,"path":2348,"stem":2349},"CON40-C. Do not refer to an atomic variable twice in an expression","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon40-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F12.con40-c",{"title":2351,"path":2352,"stem":2353},"CON41-C. Wrap functions that can fail spuriously in a loop","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon41-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F13.con41-c",{"title":2355,"path":2356,"stem":2357},"CON42-C. Don't allow attackers to influence environment variables that control concurrency parameters","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon42-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F14.con42-c",{"title":2359,"path":2360,"stem":2361},"CON43-C. Do not allow data races in multithreaded code","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con\u002Fcon43-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F15.con43-c",{"title":2363,"path":2364,"stem":2365,"children":2366},"Declarations and Initialization (DCL)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F1.index",[2367,2368,2372,2376,2380,2384,2388,2392,2396],{"title":2363,"path":2364,"stem":2365},{"title":2369,"path":2370,"stem":2371},"DCL30-C. Declare objects with appropriate storage durations","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F2.dcl30-c",{"title":2373,"path":2374,"stem":2375},"DCL31-C. Declare identifiers before using them","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F3.dcl31-c",{"title":2377,"path":2378,"stem":2379},"DCL36-C. Do not declare an identifier with conflicting linkage classifications","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F4.dcl36-c",{"title":2381,"path":2382,"stem":2383},"DCL37-C. Do not declare or define a reserved identifier","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F5.dcl37-c",{"title":2385,"path":2386,"stem":2387},"DCL38-C. Use the correct syntax when declaring a flexible array member","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F6.dcl38-c",{"title":2389,"path":2390,"stem":2391},"DCL39-C. Avoid information leakage when passing a structure across a trust boundary","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F7.dcl39-c",{"title":2393,"path":2394,"stem":2395},"DCL40-C. Do not create incompatible declarations of the same function or object","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl40-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F8.dcl40-c",{"title":2397,"path":2398,"stem":2399},"DCL41-C. Do not declare variables inside a switch statement before the first case label","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl41-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F06.declarations-and-initialization-dcl\u002F9.dcl41-c",{"title":2401,"path":2402,"stem":2403,"children":2404},"Environment (ENV)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F1.index",[2405,2406,2410,2414,2418,2422],{"title":2401,"path":2402,"stem":2403},{"title":2407,"path":2408,"stem":2409},"ENV30-C. Do not modify the object referenced by the return value of certain functions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env\u002Fenv30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F2.env30-c",{"title":2411,"path":2412,"stem":2413},"ENV31-C. Do not rely on an environment pointer following an operation that may invalidate it","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env\u002Fenv31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F3.env31-c",{"title":2415,"path":2416,"stem":2417},"ENV32-C. All exit handlers must return normally","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env\u002Fenv32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F4.env32-c",{"title":2419,"path":2420,"stem":2421},"ENV33-C. Do not call system()","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env\u002Fenv33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F5.env33-c",{"title":2423,"path":2424,"stem":2425},"ENV34-C. Do not store pointers returned by certain functions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env\u002Fenv34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F6.env34-c",{"title":2427,"path":2428,"stem":2429,"children":2430},"Error Handling (ERR)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ferror-handling-err","4.sei-cert-c-coding-standard\u002F03.rules\u002F08.error-handling-err\u002F1.index",[2431,2432,2436,2440,2444],{"title":2427,"path":2428,"stem":2429},{"title":2433,"path":2434,"stem":2435},"ERR30-C. Take care when reading errno","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ferror-handling-err\u002Ferr30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F08.error-handling-err\u002F2.err30-c",{"title":2437,"path":2438,"stem":2439},"ERR32-C. Do not rely on indeterminate values of errno","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ferror-handling-err\u002Ferr32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F08.error-handling-err\u002F3.err32-c",{"title":2441,"path":2442,"stem":2443},"ERR33-C. Detect and handle standard library errors","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ferror-handling-err\u002Ferr33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F08.error-handling-err\u002F4.err33-c",{"title":2445,"path":2446,"stem":2447},"ERR34-C. Detect errors when converting a string to a number","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ferror-handling-err\u002Ferr34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F08.error-handling-err\u002F5.err34-c",{"title":2449,"path":2450,"stem":2451,"children":2452},"Expressions (EXP)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F01.index",[2453,2454,2458,2462,2466,2470,2474,2478,2482,2486,2490,2494,2498,2502,2506,2510],{"title":2449,"path":2450,"stem":2451},{"title":2455,"path":2456,"stem":2457},"EXP30-C. Do not depend on the order of evaluation for side effects","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F02.exp30-c",{"title":2459,"path":2460,"stem":2461},"EXP32-C. Do not access a volatile object through a nonvolatile reference","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F03.exp32-c",{"title":2463,"path":2464,"stem":2465},"EXP33-C. Do not read uninitialized memory","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F04.exp33-c",{"title":2467,"path":2468,"stem":2469},"EXP34-C. Do not dereference null pointers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F05.exp34-c",{"title":2471,"path":2472,"stem":2473},"EXP35-C. Do not modify objects with temporary lifetime","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp35-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F06.exp35-c",{"title":2475,"path":2476,"stem":2477},"EXP36-C. Do not cast pointers into more strictly aligned pointer types","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F07.exp36-c",{"title":2479,"path":2480,"stem":2481},"EXP37-C. Call functions with the correct number and type of arguments","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F08.exp37-c",{"title":2483,"path":2484,"stem":2485},"EXP39-C. Do not access a variable through a pointer of an incompatible type","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F09.exp39-c",{"title":2487,"path":2488,"stem":2489},"EXP40-C. Do not modify constant objects","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp40-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F10.exp40-c",{"title":2491,"path":2492,"stem":2493},"EXP42-C. Do not compare padding data","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp42-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F11.exp42-c",{"title":2495,"path":2496,"stem":2497},"EXP43-C. Avoid undefined behavior when using restrict-qualified pointers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp43-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F12.exp43-c",{"title":2499,"path":2500,"stem":2501},"EXP44-C. Do not rely on side effects in operands to sizeof, _Alignof, or _Generic","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp44-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F13.exp44-c",{"title":2503,"path":2504,"stem":2505},"EXP45-C. Do not perform assignments in selection statements","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp45-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F14.exp45-c",{"title":2507,"path":2508,"stem":2509},"EXP46-C. Do not use a bitwise operator with a Boolean-like operand","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp46-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F15.exp46-c",{"title":2511,"path":2512,"stem":2513},"EXP47-C. Do not call va_arg with an argument of the incorrect type","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp47-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F16.exp47-c",{"title":2515,"path":2516,"stem":2517,"children":2518},"Floating Point (FLP)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ffloating-point-flp","4.sei-cert-c-coding-standard\u002F03.rules\u002F10.floating-point-flp\u002F1.index",[2519,2520,2524,2528,2532,2536],{"title":2515,"path":2516,"stem":2517},{"title":2521,"path":2522,"stem":2523},"FLP30-C. Do not use floating-point variables as loop counters","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ffloating-point-flp\u002Fflp30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F10.floating-point-flp\u002F2.flp30-c",{"title":2525,"path":2526,"stem":2527},"FLP32-C. Prevent or detect domain and range errors in math functions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ffloating-point-flp\u002Fflp32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F10.floating-point-flp\u002F3.flp32-c",{"title":2529,"path":2530,"stem":2531},"FLP34-C. Ensure that floating-point conversions are within range of the new type","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ffloating-point-flp\u002Fflp34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F10.floating-point-flp\u002F4.flp34-c",{"title":2533,"path":2534,"stem":2535},"FLP36-C. Preserve precision when converting integral values to floating-point type","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ffloating-point-flp\u002Fflp36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F10.floating-point-flp\u002F5.flp36-c",{"title":2537,"path":2538,"stem":2539},"FLP37-C. Do not use object representations to compare floating-point values","\u002Fsei-cert-c-coding-standard\u002Frules\u002Ffloating-point-flp\u002Fflp37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F10.floating-point-flp\u002F6.flp37-c",{"title":2541,"path":2542,"stem":2543,"children":2544},"Input Output (FIO)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F01.index",[2545,2546,2550,2554,2558,2562,2566,2570,2574,2578,2582,2586,2590,2594],{"title":2541,"path":2542,"stem":2543},{"title":2547,"path":2548,"stem":2549},"FIO30-C. Exclude user input from format strings","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F02.fio30-c",{"title":2551,"path":2552,"stem":2553},"FIO32-C. Do not perform operations on devices that are only appropriate for files","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F03.fio32-c",{"title":2555,"path":2556,"stem":2557},"FIO34-C. Distinguish between characters read from a file and EOF or WEOF","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F04.fio34-c",{"title":2559,"path":2560,"stem":2561},"FIO37-C. Do not assume that fgets() or fgetws() returns a nonempty string when successful","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F05.fio37-c",{"title":2563,"path":2564,"stem":2565},"FIO38-C. Do not copy a FILE object","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F06.fio38-c",{"title":2567,"path":2568,"stem":2569},"FIO39-C. Do not alternately input and output from a stream without an intervening flush or positioning call","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F07.fio39-c",{"title":2571,"path":2572,"stem":2573},"FIO40-C. Reset strings on fgets() or fgetws() failure","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio40-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F08.fio40-c",{"title":2575,"path":2576,"stem":2577},"FIO41-C. Do not call getc(), putc(), getwc(), or putwc() with a stream argument that has side effects","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio41-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F09.fio41-c",{"title":2579,"path":2580,"stem":2581},"FIO42-C. Close files when they are no longer needed","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio42-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F10.fio42-c",{"title":2583,"path":2584,"stem":2585},"FIO44-C. Only use values for fsetpos() that are returned from fgetpos()","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio44-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F11.fio44-c",{"title":2587,"path":2588,"stem":2589},"FIO45-C. Avoid TOCTOU race conditions while accessing files","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio45-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F12.fio45-c",{"title":2591,"path":2592,"stem":2593},"FIO46-C. Do not access a closed file","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio46-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F13.fio46-c",{"title":2595,"path":2596,"stem":2597},"FIO47-C. Use valid format strings","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio47-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F14.fio47-c",{"title":2599,"path":2600,"stem":2601,"children":2602},"Integers (INT)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F1.index",[2603,2604,2606,2610,2612,2613,2614,2615],{"title":2599,"path":2600,"stem":2601},{"title":441,"path":440,"stem":2605},"4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F2.int30-c",{"title":2607,"path":2608,"stem":2609},"INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F3.int31-c",{"title":475,"path":474,"stem":2611},"4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F4.int32-c",{"title":2147,"path":2045,"stem":2148},{"title":30,"path":2141,"stem":2143},{"title":434,"path":433,"stem":2150},{"title":2616,"path":2617,"stem":2618},"INT36-C. Converting a pointer to integer or integer to pointer","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F8.int36-c",{"title":2620,"path":2621,"stem":2622,"children":2623},"Memory Management (MEM)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F1.index",[2624,2625,2629,2633,2637,2641,2645],{"title":2620,"path":2621,"stem":2622},{"title":2626,"path":2627,"stem":2628},"MEM30-C. Do not access freed memory","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem\u002Fmem30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F2.mem30-c",{"title":2630,"path":2631,"stem":2632},"MEM31-C. Free dynamically allocated memory when no longer needed","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem\u002Fmem31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F3.mem31-c",{"title":2634,"path":2635,"stem":2636},"MEM33-C. Allocate and copy structures containing a flexible array member dynamically","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem\u002Fmem33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F4.mem33-c",{"title":2638,"path":2639,"stem":2640},"MEM34-C. Only free memory allocated dynamically","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem\u002Fmem34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F5.mem34-c",{"title":2642,"path":2643,"stem":2644},"MEM35-C. Allocate sufficient memory for an object","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem\u002Fmem35-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F6.mem35-c",{"title":2646,"path":2647,"stem":2648},"MEM36-C. Do not modify the alignment of objects by calling realloc()","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmemory-management-mem\u002Fmem36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F13.memory-management-mem\u002F7.mem36-c",{"title":2650,"path":2651,"stem":2652,"children":2653},"Microsoft Windows (WIN)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmicrosoft-windows-win","4.sei-cert-c-coding-standard\u002F03.rules\u002F14.microsoft-windows-win\u002F1.index",[2654,2655],{"title":2650,"path":2651,"stem":2652},{"title":2656,"path":2657,"stem":2658},"WIN30-C. Properly pair allocation and deallocation functions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmicrosoft-windows-win\u002Fwin30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F14.microsoft-windows-win\u002F2.win30-c",{"title":2660,"path":2661,"stem":2662,"children":2663},"Miscellaneous (MSC)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F1.index",[2664,2665,2669,2673,2677,2681,2685,2689,2693],{"title":2660,"path":2661,"stem":2662},{"title":2666,"path":2667,"stem":2668},"MSC30-C. Do not use the rand() function for generating pseudorandom numbers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F2.msc30-c",{"title":2670,"path":2671,"stem":2672},"MSC32-C. Properly seed pseudorandom number generators","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F3.msc32-c",{"title":2674,"path":2675,"stem":2676},"MSC33-C. Do not pass invalid data to the asctime() function","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F4.msc33-c",{"title":2678,"path":2679,"stem":2680},"MSC37-C. Ensure that control never reaches the end of a non-void function","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F5.msc37-c",{"title":2682,"path":2683,"stem":2684},"MSC38-C. Do not treat a predefined identifier as an object if it might only be implemented as a macro","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F6.msc38-c",{"title":2686,"path":2687,"stem":2688},"MSC39-C. Do not call va_arg() on a va_list that has an indeterminate value","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F7.msc39-c",{"title":2690,"path":2691,"stem":2692},"MSC40-C. Do not violate constraints","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc40-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F8.msc40-c",{"title":2694,"path":2695,"stem":2696},"MSC41-C. Never hard code sensitive information","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc\u002Fmsc41-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F9.msc41-c",{"title":2698,"path":2699,"stem":2700,"children":2701},"POSIX (POS)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F01.index",[2702,2703,2707,2711,2715,2719,2723,2727,2731,2735,2739,2743,2747,2751,2755,2759,2763],{"title":2698,"path":2699,"stem":2700},{"title":2704,"path":2705,"stem":2706},"POS30-C. Use the readlink() function properly","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F02.pos30-c",{"title":2708,"path":2709,"stem":2710},"POS34-C. Do not call putenv() with a pointer to an automatic variable as the argument","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F03.pos34-c",{"title":2712,"path":2713,"stem":2714},"POS35-C. Avoid race conditions while checking for the existence of a symbolic link","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos35-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F04.pos35-c",{"title":2716,"path":2717,"stem":2718},"POS36-C. Observe correct revocation order while relinquishing privileges","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos36-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F05.pos36-c",{"title":2720,"path":2721,"stem":2722},"POS37-C. Ensure that privilege relinquishment is successful","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F06.pos37-c",{"title":2724,"path":2725,"stem":2726},"POS38-C. Beware of race conditions when using fork and file descriptors","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos38-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F07.pos38-c",{"title":2728,"path":2729,"stem":2730},"POS39-C. Use the correct byte ordering when transferring data between systems","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F08.pos39-c",{"title":2732,"path":2733,"stem":2734},"POS44-C. Do not use signals to terminate threads","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos44-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F09.pos44-c",{"title":2736,"path":2737,"stem":2738},"POS47-C. Do not use threads that can be canceled asynchronously","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos47-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F10.pos47-c",{"title":2740,"path":2741,"stem":2742},"POS48-C. Do not unlock or destroy another POSIX thread's mutex","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos48-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F11.pos48-c",{"title":2744,"path":2745,"stem":2746},"POS49-C. When data must be accessed by multiple threads, provide a mutex and guarantee no adjacent data is also accessed","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos49-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F12.pos49-c",{"title":2748,"path":2749,"stem":2750},"POS50-C. Declare objects shared between POSIX threads with appropriate storage durations","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos50-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F13.pos50-c",{"title":2752,"path":2753,"stem":2754},"POS51-C. Avoid deadlock with POSIX threads by locking in predefined order","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos51-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F14.pos51-c",{"title":2756,"path":2757,"stem":2758},"POS52-C. Do not perform operations that can block while holding a POSIX lock","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos52-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F15.pos52-c",{"title":2760,"path":2761,"stem":2762},"POS53-C. Do not use more than one mutex for concurrent waiting operations on a condition variable","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos53-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F16.pos53-c",{"title":2764,"path":2765,"stem":2766},"POS54-C. Detect and handle POSIX library errors","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos\u002Fpos54-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F17.pos54-c",{"title":2768,"path":2769,"stem":2770,"children":2771},"Preprocessor (PRE)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F1.index",[2772,2773,2777,2781],{"title":2768,"path":2769,"stem":2770},{"title":2774,"path":2775,"stem":2776},"PRE30-C. Do not create a universal character name through concatenation","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre\u002Fpre30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F2.pre30-c",{"title":2778,"path":2779,"stem":2780},"PRE31-C. Avoid side effects in arguments to unsafe macros","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre\u002Fpre31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F3.pre31-c",{"title":2782,"path":2783,"stem":2784},"PRE32-C. Do not use preprocessor directives in invocations of function-like macros","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre\u002Fpre32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F4.pre32-c",{"title":2786,"path":2787,"stem":2788,"children":2789},"Signals (SIG)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F1.index",[2790,2791,2795,2799,2803],{"title":2786,"path":2787,"stem":2788},{"title":2792,"path":2793,"stem":2794},"SIG30-C. Call only asynchronous-safe functions within signal handlers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig\u002Fsig30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F2.sig30-c",{"title":2796,"path":2797,"stem":2798},"SIG31-C. Do not access shared objects in signal handlers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig\u002Fsig31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F3.sig31-c",{"title":2800,"path":2801,"stem":2802},"SIG34-C. Do not call signal() from within interruptible signal handlers","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig\u002Fsig34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F4.sig34-c",{"title":2804,"path":2805,"stem":2806},"SIG35-C. Do not return from a computational exception signal handler","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig\u002Fsig35-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F5.sig35-c",{"title":2808,"path":2809,"stem":2810,"children":2811},"Back Matter","\u002Fsei-cert-c-coding-standard\u002Fback-matter","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F1.index",[2812,2813,2817,2821,2825,2829,3012,3069],{"title":2808,"path":2809,"stem":2810},{"title":2814,"path":2815,"stem":2816},"AA. Bibliography","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F2.aa-bibliography",{"title":2818,"path":2819,"stem":2820},"BB. Definitions","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F3.bb-definitions",{"title":2822,"path":2823,"stem":2824},"CC. Undefined Behavior","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F4.cc-undefined-behavior",{"title":2826,"path":2827,"stem":2828},"DD. Unspecified Behavior","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fdd-unspecified-behavior","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F5.dd-unspecified-behavior",{"title":2830,"path":2831,"stem":2832,"children":2833},"EE. Analyzers","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F01.index",[2834,2835,2837,2841,2843,2847,2851,2855,2859,2863,2867,2871,2875,2877,2881,2883,2887,2889,2891,2895,2899,2901,2905,2909,2913,2917,2921,2923,2927,2929,2933,2936,2940,2943,2947,2951,2955,2957,2961,2963,2967,2970,2974,2978,2980,2984,2986,2990,2994,2998,3002,3006,3008],{"title":2830,"path":2831,"stem":2832},{"title":1303,"path":1302,"stem":2836},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F02.astree",{"title":2838,"path":2839,"stem":2840},"Astrée_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fastree_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F03.astree_v",{"title":1338,"path":1337,"stem":2842},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F04.axivion-bauhaus-suite",{"title":2844,"path":2845,"stem":2846},"Axivion Bauhaus Suite_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Faxivion-bauhaus-suite_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F05.axivion-bauhaus-suite_v",{"title":2848,"path":2849,"stem":2850},"Clang","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fclang","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F06.clang",{"title":2852,"path":2853,"stem":2854},"Clang_38_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fclang_38_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F07.clang_38_v",{"title":2856,"path":2857,"stem":2858},"Clang_39_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fclang_39_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F08.clang_39_v",{"title":2860,"path":2861,"stem":2862},"Clang_40_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fclang_40_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F09.clang_40_v",{"title":2864,"path":2865,"stem":2866},"Clang_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fclang_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F10.clang_v",{"title":2868,"path":2869,"stem":2870},"Codee","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodee","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F11.codee",{"title":2872,"path":2873,"stem":2874},"Codee_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodee_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F12.codee_v",{"title":1363,"path":1362,"stem":2876},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F13.codesonar",{"title":2878,"path":2879,"stem":2880},"CodeSonar_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodesonar_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F14.codesonar_v",{"title":1426,"path":1425,"stem":2882},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F15.coverity",{"title":2884,"path":2885,"stem":2886},"Coverity_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcoverity_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F16.coverity_v",{"title":1451,"path":1450,"stem":2888},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F17.cppcheck",{"title":1477,"path":1476,"stem":2890},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F18.cppcheck-premium",{"title":2892,"path":2893,"stem":2894},"Cppcheck Premium_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck-premium_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F19.cppcheck-premium_v",{"title":2896,"path":2897,"stem":2898},"Cppcheck_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F20.cppcheck_v",{"title":1511,"path":1510,"stem":2900},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F21.eclair",{"title":2902,"path":2903,"stem":2904},"ECLAIR_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Feclair_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F22.eclair_v",{"title":2906,"path":2907,"stem":2908},"EDG","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fedg","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F23.edg",{"title":2910,"path":2911,"stem":2912},"EDG_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fedg_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F24.edg_v",{"title":2914,"path":2915,"stem":2916},"GCC","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fgcc","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F25.gcc",{"title":2918,"path":2919,"stem":2920},"GCC_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fgcc_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F26.gcc_v",{"title":1534,"path":1533,"stem":2922},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F27.helix-qac",{"title":2924,"path":2925,"stem":2926},"Helix QAC_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fhelix-qac_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F28.helix-qac_v",{"title":1572,"path":1571,"stem":2928},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F29.klocwork",{"title":2930,"path":2931,"stem":2932},"Klocwork_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fklocwork_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F30.klocwork_v",{"title":2934,"path":1598,"stem":2935},"LDRA","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F31.ldra",{"title":2937,"path":2938,"stem":2939},"LDRA_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fldra_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F32.ldra_v",{"title":2941,"path":1624,"stem":2942},"Parasoft","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F33.parasoft",{"title":2944,"path":2945,"stem":2946},"Parasoft_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fparasoft_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F34.parasoft_v",{"title":2948,"path":2949,"stem":2950},"PC-lint Plus","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpc-lint-plus","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F35.pc-lint-plus",{"title":2952,"path":2953,"stem":2954},"PC-lint Plus_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpc-lint-plus_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F36.pc-lint-plus_v",{"title":1651,"path":1650,"stem":2956},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F37.polyspace-bug-finder",{"title":2958,"path":2959,"stem":2960},"Polyspace Bug Finder_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpolyspace-bug-finder_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F38.polyspace-bug-finder_v",{"title":1698,"path":1697,"stem":2962},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F39.pvs-studio",{"title":2964,"path":2965,"stem":2966},"PVS-Studio_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpvs-studio_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F40.pvs-studio_v",{"title":2968,"path":1397,"stem":2969},"Rose","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F41.rose",{"title":2971,"path":2972,"stem":2973},"Rose_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frose_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F42.rose_v",{"title":2975,"path":2976,"stem":2977},"Rosecheckers Code","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frosecheckers-code","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F43.rosecheckers-code",{"title":1725,"path":1724,"stem":2979},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F44.rulechecker",{"title":2981,"path":2982,"stem":2983},"RuleChecker_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frulechecker_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F45.rulechecker_v",{"title":1750,"path":1749,"stem":2985},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F46.security-reviewer-static-reviewer",{"title":2987,"path":2988,"stem":2989},"Security Reviewer - Static Reviewer_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsecurity-reviewer-static-reviewer_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F47.security-reviewer-static-reviewer_v",{"title":2991,"path":2992,"stem":2993},"SonarQube C\u002FC++ Plugin","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsonarqube-ccpp-plugin","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F48.sonarqube-ccpp-plugin",{"title":2995,"path":2996,"stem":2997},"SonarQube C\u002FC++ Plugin_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsonarqube-ccpp-plugin_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F49.sonarqube-ccpp-plugin_v",{"title":2999,"path":3000,"stem":3001},"Splint","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsplint","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F50.splint",{"title":3003,"path":3004,"stem":3005},"Splint_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsplint_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F51.splint_v",{"title":1777,"path":1776,"stem":3007},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F52.trustinsoft-analyzer",{"title":3009,"path":3010,"stem":3011},"TrustInSoft Analyzer_V","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Ftrustinsoft-analyzer_v","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F53.trustinsoft-analyzer_v",{"title":3013,"path":3014,"stem":3015,"children":3016},"FF. Related Guidelines","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F01.index",[3017,3018,3022,3026,3030,3034,3038,3042,3046,3050,3053,3057,3061,3065],{"title":3013,"path":3014,"stem":3015},{"title":3019,"path":3020,"stem":3021},"2003","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F02.2003","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F02.2003",{"title":3023,"path":3024,"stem":3025},"2006","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F03.2006","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F03.2006",{"title":3027,"path":3028,"stem":3029},"2007","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F04.2007","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F04.2007",{"title":3031,"path":3032,"stem":3033},"2008","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F05.2008","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F05.2008",{"title":3035,"path":3036,"stem":3037},"2010","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F06.2010","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F06.2010",{"title":3039,"path":3040,"stem":3041},"2011","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F07.2011","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F07.2011",{"title":3043,"path":3044,"stem":3045},"2012","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F08.2012","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F08.2012",{"title":3047,"path":3048,"stem":3049},"2013","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F09.2013","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F09.2013",{"title":3047,"path":3051,"stem":3052},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002F10.2013","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F10.2013",{"title":3054,"path":3055,"stem":3056},"MITRE CWE","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002Fmitre-cwe","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F11.mitre-cwe",{"title":3058,"path":3059,"stem":3060},"MITRE CWE 2.11","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002Fmitre-cwe-211","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F12.mitre-cwe-211",{"title":3062,"path":3063,"stem":3064},"MITRE CWE 3.1","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002Fmitre-cwe-31","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F13.mitre-cwe-31",{"title":3066,"path":3067,"stem":3068},"MITRE CWE 3.11","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fff-related-guidelines\u002Fmitre-cwe-311","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F7.ff-related-guidelines\u002F14.mitre-cwe-311",{"title":3070,"path":3071,"stem":3072},"GG. Risk Assessments","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fgg-risk-assessments","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F8.gg-risk-assessments",{"title":3074,"path":3075,"stem":3076,"children":3077},"Admin","\u002Fsei-cert-c-coding-standard\u002Fadmin","4.sei-cert-c-coding-standard\u002F05.admin\u002F1.index",[3078,3079,3083],{"title":3074,"path":3075,"stem":3076},{"title":3080,"path":3081,"stem":3082},"TODO List","\u002Fsei-cert-c-coding-standard\u002Fadmin\u002Ftodo-list","4.sei-cert-c-coding-standard\u002F05.admin\u002F2.todo-list",{"title":3084,"path":3085,"stem":3086},"Undefined and implementation-defined behaviors not deemed ruleworthy","\u002Fsei-cert-c-coding-standard\u002Fadmin\u002Fundefined-and-implementation-defined-behaviors-not-deemed-ruleworthy","4.sei-cert-c-coding-standard\u002F05.admin\u002F3.undefined-and-implementation-defined-behaviors-not-deemed-ruleworthy",{"title":3088,"path":3089,"stem":3090},"Coding Style Guidelines","\u002Fsei-cert-c-coding-standard\u002Fcoding-style-guidelines","4.sei-cert-c-coding-standard\u002F05.coding-style-guidelines",{"title":3092,"path":3093,"stem":3094},"Errata for SEI CERT C Coding Standard (2016 Edition)","\u002Fsei-cert-c-coding-standard\u002Ferrata-for-sei-cert-c-coding-standard-2016-edition","4.sei-cert-c-coding-standard\u002F06.errata-for-sei-cert-c-coding-standard-2016-edition",{"title":3096,"path":3097,"stem":3098},"Wiki Contents","\u002Fsei-cert-c-coding-standard\u002Fwiki-contents","4.sei-cert-c-coding-standard\u002F06.wiki-contents",{"title":3100,"path":3101,"stem":3102,"children":3103},"Recommendations","\u002Fsei-cert-c-coding-standard\u002Frecommendations","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F01.index",[3104,3105,3146,3163,3208,3249,3346,3363,3396,3465,3502,3587,3650,3699,3724,3817,3838,3895],{"title":3100,"path":3101,"stem":3102},{"title":2237,"path":3106,"stem":3107,"children":3108},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F01.index",[3109,3110,3114,3118,3122,3126,3130,3134,3138,3142],{"title":2237,"path":3106,"stem":3107},{"title":3111,"path":3112,"stem":3113},"API00-C. Functions should validate their parameters","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F02.api00-c",{"title":3115,"path":3116,"stem":3117},"API01-C. Avoid laying out strings in memory directly before sensitive data","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F03.api01-c",{"title":3119,"path":3120,"stem":3121},"API02-C. Functions that read or write to or from an array should take an argument to specify the source or target size","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F04.api02-c",{"title":3123,"path":3124,"stem":3125},"API03-C. Create consistent interfaces and capabilities across related functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F05.api03-c",{"title":3127,"path":3128,"stem":3129},"API04-C. Provide a consistent and usable error-checking mechanism","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F06.api04-c",{"title":3131,"path":3132,"stem":3133},"API05-C. Use conformant array parameters","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F07.api05-c",{"title":3135,"path":3136,"stem":3137},"API07-C. Enforce type safety","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F08.api07-c",{"title":3139,"path":3140,"stem":3141},"API09-C. Compatible values should have the same type","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F09.api09-c",{"title":3143,"path":3144,"stem":3145},"API10-C. APIs should have security options enabled by default","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fapplication-programming-interfaces-api\u002Fapi10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F02.application-programming-interfaces-api\u002F10.api10-c",{"title":2241,"path":3147,"stem":3148,"children":3149},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F1.index",[3150,3151,3155,3159],{"title":2241,"path":3147,"stem":3148},{"title":3152,"path":3153,"stem":3154},"ARR00-C. Understand how arrays work","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr\u002Farr00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F2.arr00-c",{"title":3156,"path":3157,"stem":3158},"ARR01-C. Do not apply the sizeof operator to a pointer when taking the size of an array","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr\u002Farr01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F3.arr01-c",{"title":3160,"path":3161,"stem":3162},"ARR02-C. Explicitly specify array bounds, even if implicitly defined by an initializer","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr\u002Farr02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F4.arr02-c",{"title":2271,"path":3164,"stem":3165,"children":3166},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F01.index",[3167,3168,3172,3176,3180,3184,3188,3192,3196,3200,3204],{"title":2271,"path":3164,"stem":3165},{"title":3169,"path":3170,"stem":3171},"STR00-C. Represent characters using an appropriate type","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F02.str00-c",{"title":3173,"path":3174,"stem":3175},"STR01-C. Adopt and implement a consistent plan for managing strings","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F03.str01-c",{"title":3177,"path":3178,"stem":3179},"STR02-C. Sanitize data passed to complex subsystems","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F04.str02-c",{"title":3181,"path":3182,"stem":3183},"STR03-C. Do not inadvertently truncate a string","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F05.str03-c",{"title":3185,"path":3186,"stem":3187},"STR04-C. Use plain char for characters in the basic character set","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F06.str04-c",{"title":3189,"path":3190,"stem":3191},"STR05-C. Use pointers to const when referring to string literals","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F07.str05-c",{"title":3193,"path":3194,"stem":3195},"STR06-C. Do not assume that strtok() leaves the parse string unchanged","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F08.str06-c",{"title":3197,"path":3198,"stem":3199},"STR09-C. Don't assume numeric values for expressions with type plain character","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F09.str09-c",{"title":3201,"path":3202,"stem":3203},"STR10-C. Do not concatenate different type of string literals","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F10.str10-c",{"title":3205,"path":3206,"stem":3207},"STR11-C. Do not specify the bound of a character array initialized with a string literal","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F04.characters-and-strings-str\u002F11.str11-c",{"title":2301,"path":3209,"stem":3210,"children":3211},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F01.index",[3212,3213,3217,3221,3225,3229,3233,3237,3241,3245],{"title":2301,"path":3209,"stem":3210},{"title":3214,"path":3215,"stem":3216},"CON01-C. Acquire and release synchronization primitives in the same module, at the same level of abstraction","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F02.con01-c",{"title":3218,"path":3219,"stem":3220},"CON02-C. Do not use volatile as a synchronization primitive","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F03.con02-c",{"title":3222,"path":3223,"stem":3224},"CON03-C. Ensure visibility when accessing shared variables","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F04.con03-c",{"title":3226,"path":3227,"stem":3228},"CON04-C. Join or detach threads even if their exit status is unimportant","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F05.con04-c",{"title":3230,"path":3231,"stem":3232},"CON05-C. Do not perform operations that can block while holding a lock","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F06.con05-c",{"title":3234,"path":3235,"stem":3236},"CON06-C. Ensure that every mutex outlives the data it protects","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F07.con06-c",{"title":3238,"path":3239,"stem":3240},"CON07-C. Ensure that compound operations on shared variables are atomic","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F08.con07-c",{"title":3242,"path":3243,"stem":3244},"CON08-C. Do not assume that a group of calls to independently atomic methods is atomic","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon08-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F09.con08-c",{"title":3246,"path":3247,"stem":3248},"CON09-C. Avoid the ABA problem when using lock-free algorithms","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con\u002Fcon09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F10.con09-c",{"title":2363,"path":3250,"stem":3251,"children":3252},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F01.index",[3253,3254,3258,3262,3266,3270,3274,3278,3282,3286,3290,3294,3298,3302,3306,3310,3314,3318,3322,3326,3330,3334,3338,3342],{"title":2363,"path":3250,"stem":3251},{"title":3255,"path":3256,"stem":3257},"DCL00-C. Const-qualify immutable objects","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F02.dcl00-c",{"title":3259,"path":3260,"stem":3261},"DCL01-C. Do not reuse variable names in subscopes","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F03.dcl01-c",{"title":3263,"path":3264,"stem":3265},"DCL02-C. Use visually distinct identifiers","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F04.dcl02-c",{"title":3267,"path":3268,"stem":3269},"DCL03-C. Use a static assertion to test the value of a constant expression","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F05.dcl03-c",{"title":3271,"path":3272,"stem":3273},"DCL04-C. Do not declare more than one variable per declaration","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F06.dcl04-c",{"title":3275,"path":3276,"stem":3277},"DCL05-C. Use typedefs of non-pointer types only","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F07.dcl05-c",{"title":3279,"path":3280,"stem":3281},"DCL06-C. Use meaningful symbolic constants to represent literal values","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F08.dcl06-c",{"title":3283,"path":3284,"stem":3285},"DCL07-C. Include the appropriate type information in function declarators","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F09.dcl07-c",{"title":3287,"path":3288,"stem":3289},"DCL08-C. Properly encode relationships in constant definitions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl08-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F10.dcl08-c",{"title":3291,"path":3292,"stem":3293},"DCL09-C. Declare functions that return errno with a return type of errno_t","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F11.dcl09-c",{"title":3295,"path":3296,"stem":3297},"DCL10-C. Maintain the contract between the writer and caller of variadic functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F12.dcl10-c",{"title":3299,"path":3300,"stem":3301},"DCL11-C. Understand the type issues associated with variadic functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F13.dcl11-c",{"title":3303,"path":3304,"stem":3305},"DCL12-C. Implement abstract data types using opaque types","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl12-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F14.dcl12-c",{"title":3307,"path":3308,"stem":3309},"DCL13-C. Declare function parameters that are pointers to values not changed by the function as const","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl13-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F15.dcl13-c",{"title":3311,"path":3312,"stem":3313},"DCL15-C. Declare file-scope objects or functions that do not need external linkage as static","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl15-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F16.dcl15-c",{"title":3315,"path":3316,"stem":3317},"DCL16-C. Use \"L,\" not \"l,\" to indicate a long value","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl16-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F17.dcl16-c",{"title":3319,"path":3320,"stem":3321},"DCL17-C. Beware of miscompiled volatile-qualified variables","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl17-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F18.dcl17-c",{"title":3323,"path":3324,"stem":3325},"DCL18-C. Do not begin integer constants with 0 when specifying a decimal value","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl18-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F19.dcl18-c",{"title":3327,"path":3328,"stem":3329},"DCL19-C. Minimize the scope of variables and functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl19-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F20.dcl19-c",{"title":3331,"path":3332,"stem":3333},"DCL20-C. Explicitly specify void when a function accepts no arguments","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl20-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F21.dcl20-c",{"title":3335,"path":3336,"stem":3337},"DCL21-C. Understand the storage of compound literals","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl21-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F22.dcl21-c",{"title":3339,"path":3340,"stem":3341},"DCL22-C. Use volatile for data that cannot be cached","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl22-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F23.dcl22-c",{"title":3343,"path":3344,"stem":3345},"DCL23-C. Guarantee that mutually visible identifiers are unique","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl23-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F24.dcl23-c",{"title":2401,"path":3347,"stem":3348,"children":3349},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F1.index",[3350,3351,3355,3359],{"title":2401,"path":3347,"stem":3348},{"title":3352,"path":3353,"stem":3354},"ENV01-C. Do not make assumptions about the size of an environment variable","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env\u002Fenv01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F2.env01-c",{"title":3356,"path":3357,"stem":3358},"ENV02-C. Beware of multiple environment variables with the same effective name","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env\u002Fenv02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F3.env02-c",{"title":3360,"path":3361,"stem":3362},"ENV03-C. Sanitize the environment when invoking external programs","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env\u002Fenv03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F4.env03-c",{"title":2427,"path":3364,"stem":3365,"children":3366},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F1.index",[3367,3368,3372,3376,3380,3384,3388,3392],{"title":2427,"path":3364,"stem":3365},{"title":3369,"path":3370,"stem":3371},"ERR00-C. Adopt and implement a consistent and comprehensive error-handling policy","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F2.err00-c",{"title":3373,"path":3374,"stem":3375},"ERR01-C. Use ferror() rather than errno to check for FILE stream errors","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F3.err01-c",{"title":3377,"path":3378,"stem":3379},"ERR02-C. Avoid in-band error indicators","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F4.err02-c",{"title":3381,"path":3382,"stem":3383},"ERR04-C. Choose an appropriate termination strategy","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F5.err04-c",{"title":3385,"path":3386,"stem":3387},"ERR05-C. Application-independent code should provide error detection without dictating error handling","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F6.err05-c",{"title":3389,"path":3390,"stem":3391},"ERR06-C. Understand the termination behavior of assert() and abort()","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F7.err06-c",{"title":3393,"path":3394,"stem":3395},"ERR07-C. Prefer functions that support error checking over equivalent functions that don't","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err\u002Ferr07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F8.err07-c",{"title":2449,"path":3397,"stem":3398,"children":3399},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F01.index",[3400,3401,3405,3409,3413,3417,3421,3425,3429,3433,3437,3441,3445,3449,3453,3457,3461],{"title":2449,"path":3397,"stem":3398},{"title":3402,"path":3403,"stem":3404},"EXP00-C. Use parentheses for precedence of operation","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F02.exp00-c",{"title":3406,"path":3407,"stem":3408},"EXP02-C. Be aware of the short-circuit behavior of the logical AND and OR operators","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F03.exp02-c",{"title":3410,"path":3411,"stem":3412},"EXP03-C. Do not assume the size of a structure is the sum of the sizes of its members","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F04.exp03-c",{"title":3414,"path":3415,"stem":3416},"EXP05-C. Do not cast away a const qualification","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F05.exp05-c",{"title":3418,"path":3419,"stem":3420},"EXP07-C. Do not diminish the benefits of constants by assuming their values in expressions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F06.exp07-c",{"title":3422,"path":3423,"stem":3424},"EXP08-C. Ensure pointer arithmetic is used correctly","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp08-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F07.exp08-c",{"title":3426,"path":3427,"stem":3428},"EXP09-C. Use sizeof to determine the size of a type or variable","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F08.exp09-c",{"title":3430,"path":3431,"stem":3432},"EXP10-C. Do not depend on the order of evaluation of subexpressions or the order in which side effects take place","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F09.exp10-c",{"title":3434,"path":3435,"stem":3436},"EXP11-C. Do not make assumptions regarding the layout of structures with bit-fields","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F10.exp11-c",{"title":3438,"path":3439,"stem":3440},"EXP12-C. Do not ignore values returned by functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp12-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F11.exp12-c",{"title":3442,"path":3443,"stem":3444},"EXP13-C. Treat relational and equality operators as if they were nonassociative","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp13-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F12.exp13-c",{"title":3446,"path":3447,"stem":3448},"EXP14-C. Beware of integer promotion when performing bitwise operations on integer types smaller than int","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp14-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F13.exp14-c",{"title":3450,"path":3451,"stem":3452},"EXP15-C. Do not place a semicolon on the same line as an if, for, or while statement","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp15-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F14.exp15-c",{"title":3454,"path":3455,"stem":3456},"EXP16-C. Do not compare function pointers to constant values","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp16-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F15.exp16-c",{"title":3458,"path":3459,"stem":3460},"EXP19-C. Use braces for the body of an if, for, or while statement","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp19-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F16.exp19-c",{"title":3462,"path":3463,"stem":3464},"EXP20-C. Perform explicit tests to determine success, true and false, and equality","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp\u002Fexp20-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F17.exp20-c",{"title":2515,"path":3466,"stem":3467,"children":3468},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F1.index",[3469,3470,3474,3478,3482,3486,3490,3494,3498],{"title":2515,"path":3466,"stem":3467},{"title":3471,"path":3472,"stem":3473},"FLP00-C. Understand the limitations of floating-point numbers","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F2.flp00-c",{"title":3475,"path":3476,"stem":3477},"FLP01-C. Take care in rearranging floating-point expressions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F3.flp01-c",{"title":3479,"path":3480,"stem":3481},"FLP02-C. Avoid using floating-point numbers when precise computation is needed","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F4.flp02-c",{"title":3483,"path":3484,"stem":3485},"FLP03-C. Detect and handle floating-point errors","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F5.flp03-c",{"title":3487,"path":3488,"stem":3489},"FLP04-C. Check floating-point inputs for exceptional values","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F6.flp04-c",{"title":3491,"path":3492,"stem":3493},"FLP05-C. Do not use denormalized numbers","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F7.flp05-c",{"title":3495,"path":3496,"stem":3497},"FLP06-C. Convert integers to floating point for floating-point operations","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F8.flp06-c",{"title":3499,"path":3500,"stem":3501},"FLP07-C. Cast the return value of a function that returns a floating-point type","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp\u002Fflp07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F9.flp07-c",{"title":2541,"path":3503,"stem":3504,"children":3505},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F01.index",[3506,3507,3511,3515,3519,3523,3527,3531,3535,3539,3543,3547,3551,3555,3559,3563,3567,3571,3575,3579,3583],{"title":2541,"path":3503,"stem":3504},{"title":3508,"path":3509,"stem":3510},"FIO01-C. Be careful using functions that use file names for identification","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F02.fio01-c",{"title":3512,"path":3513,"stem":3514},"FIO02-C. Canonicalize path names originating from tainted sources","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F03.fio02-c",{"title":3516,"path":3517,"stem":3518},"FIO03-C. Do not make assumptions about fopen() and file creation","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F04.fio03-c",{"title":3520,"path":3521,"stem":3522},"FIO05-C. Identify files using multiple file attributes","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F05.fio05-c",{"title":3524,"path":3525,"stem":3526},"FIO06-C. Create files with appropriate access permissions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F06.fio06-c",{"title":3528,"path":3529,"stem":3530},"FIO08-C. Take care when calling remove() on an open file","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio08-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F07.fio08-c",{"title":3532,"path":3533,"stem":3534},"FIO09-C. Be careful with binary data when transferring data across systems","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F08.fio09-c",{"title":3536,"path":3537,"stem":3538},"FIO10-C. Take care when using the rename() function","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F09.fio10-c",{"title":3540,"path":3541,"stem":3542},"FIO11-C. Take care when specifying the mode parameter of fopen()","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F10.fio11-c",{"title":3544,"path":3545,"stem":3546},"FIO13-C. Never push back anything other than one read character","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio13-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F11.fio13-c",{"title":3548,"path":3549,"stem":3550},"FIO14-C. Understand the difference between text mode and binary mode with file streams","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio14-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F12.fio14-c",{"title":3552,"path":3553,"stem":3554},"FIO15-C. Ensure that file operations are performed in a secure directory","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio15-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F13.fio15-c",{"title":3556,"path":3557,"stem":3558},"FIO17-C. Do not rely on an ending null character when using fread()","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio17-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F14.fio17-c",{"title":3560,"path":3561,"stem":3562},"FIO18-C. Never expect fwrite() to terminate the writing process at a null character","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio18-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F15.fio18-c",{"title":3564,"path":3565,"stem":3566},"FIO19-C. Do not use fseek() and ftell() to compute the size of a regular file","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio19-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F16.fio19-c",{"title":3568,"path":3569,"stem":3570},"FIO20-C. Avoid unintentional truncation when using fgets() or fgetws()","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio20-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F17.fio20-c",{"title":3572,"path":3573,"stem":3574},"FIO21-C. Do not create temporary files in shared directories","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio21-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F18.fio21-c",{"title":3576,"path":3577,"stem":3578},"FIO22-C. Close files before spawning processes","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio22-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F19.fio22-c",{"title":3580,"path":3581,"stem":3582},"FIO23-C. Do not exit with unflushed data in stdout or stderr","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio23-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F20.fio23-c",{"title":3584,"path":3585,"stem":3586},"FIO24-C. Do not open a file that is already open","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio\u002Ffio24-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F21.fio24-c",{"title":2599,"path":3588,"stem":3589,"children":3590},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F01.index",[3591,3592,3596,3600,3604,3608,3612,3616,3620,3624,3628,3630,3634,3638,3642,3646],{"title":2599,"path":3588,"stem":3589},{"title":3593,"path":3594,"stem":3595},"INT00-C. Understand the data model used by your implementation(s)","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F02.int00-c",{"title":3597,"path":3598,"stem":3599},"INT01-C. Use size_t or rsize_t for all integer values representing the size of an object","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F03.int01-c",{"title":3601,"path":3602,"stem":3603},"INT04-C. Enforce limits on integer values originating from tainted sources","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F05.int04-c",{"title":3605,"path":3606,"stem":3607},"INT05-C. Do not use input functions to convert character data if they cannot handle all possible inputs","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F06.int05-c",{"title":3609,"path":3610,"stem":3611},"INT07-C. Use only explicitly signed or unsigned char type for numeric values","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F07.int07-c",{"title":3613,"path":3614,"stem":3615},"INT08-C. Verify that all integer values are in range","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint08-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F08.int08-c",{"title":3617,"path":3618,"stem":3619},"INT09-C. Ensure enumeration constants map to unique values","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F09.int09-c",{"title":3621,"path":3622,"stem":3623},"INT10-C. Do not assume a positive remainder when using the % operator","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F10.int10-c",{"title":3625,"path":3626,"stem":3627},"INT12-C. Do not make assumptions about the type of a plain int bit-field when used in an expression","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint12-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F11.int12-c",{"title":84,"path":83,"stem":3629},"4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F12.int13-c",{"title":3631,"path":3632,"stem":3633},"INT14-C. Avoid performing bitwise and arithmetic operations on the same data","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint14-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F13.int14-c",{"title":3635,"path":3636,"stem":3637},"INT15-C. Use intmax_t or uintmax_t for formatted IO on programmer-defined integer types","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint15-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F14.int15-c",{"title":3639,"path":3640,"stem":3641},"INT16-C. Do not make assumptions about representation of signed integers","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint16-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F15.int16-c",{"title":3643,"path":3644,"stem":3645},"INT17-C. Define integer constants in an implementation-independent manner","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint17-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F16.int17-c",{"title":3647,"path":3648,"stem":3649},"INT18-C. Evaluate integer expressions in a larger size before comparing or assigning to that size","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint18-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F17.int18-c",{"title":2620,"path":3651,"stem":3652,"children":3653},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F01.index",[3654,3655,3659,3663,3667,3671,3675,3679,3683,3687,3691,3695],{"title":2620,"path":3651,"stem":3652},{"title":3656,"path":3657,"stem":3658},"MEM00-C. Allocate and free memory in the same module, at the same level of abstraction","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F02.mem00-c",{"title":3660,"path":3661,"stem":3662},"MEM01-C. Store a new value in pointers immediately after free()","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F03.mem01-c",{"title":3664,"path":3665,"stem":3666},"MEM02-C. Immediately cast the result of a memory allocation function call into a pointer to the allocated type","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F04.mem02-c",{"title":3668,"path":3669,"stem":3670},"MEM03-C. Clear sensitive information stored in reusable resources","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F05.mem03-c",{"title":3672,"path":3673,"stem":3674},"MEM04-C. Beware of zero-length allocations","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F06.mem04-c",{"title":3676,"path":3677,"stem":3678},"MEM05-C. Avoid large stack allocations","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F07.mem05-c",{"title":3680,"path":3681,"stem":3682},"MEM06-C. Ensure that sensitive data is not written out to disk","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F08.mem06-c",{"title":3684,"path":3685,"stem":3686},"MEM07-C. Ensure that the arguments to calloc(), when multiplied, do not wrap","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F09.mem07-c",{"title":3688,"path":3689,"stem":3690},"MEM10-C. Define and use a pointer validation function","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F10.mem10-c",{"title":3692,"path":3693,"stem":3694},"MEM11-C. Do not assume infinite heap space","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F11.mem11-c",{"title":3696,"path":3697,"stem":3698},"MEM12-C. Consider using a goto chain when leaving a function on error when using and releasing resources","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem\u002Fmem12-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F12.mem12-c",{"title":2650,"path":3700,"stem":3701,"children":3702},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F1.index",[3703,3704,3708,3712,3716,3720],{"title":2650,"path":3700,"stem":3701},{"title":3705,"path":3706,"stem":3707},"WIN00-C. Be specific when dynamically loading libraries","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win\u002Fwin00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F2.win00-c",{"title":3709,"path":3710,"stem":3711},"WIN01-C. Do not forcibly terminate execution","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win\u002Fwin01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F3.win01-c",{"title":3713,"path":3714,"stem":3715},"WIN02-C. Restrict privileges when spawning child processes","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win\u002Fwin02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F4.win02-c",{"title":3717,"path":3718,"stem":3719},"WIN03-C. Understand HANDLE inheritance","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win\u002Fwin03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F5.win03-c",{"title":3721,"path":3722,"stem":3723},"WIN04-C. Consider encrypting function pointers","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win\u002Fwin04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F6.win04-c",{"title":2660,"path":3725,"stem":3726,"children":3727},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F01.index",[3728,3729,3733,3737,3741,3745,3749,3753,3757,3761,3765,3769,3773,3777,3781,3785,3789,3793,3797,3801,3805,3809,3813],{"title":2660,"path":3725,"stem":3726},{"title":3730,"path":3731,"stem":3732},"MSC00-C. Compile cleanly at high warning levels","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F02.msc00-c",{"title":3734,"path":3735,"stem":3736},"MSC01-C. Strive for logical completeness","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F03.msc01-c",{"title":3738,"path":3739,"stem":3740},"MSC04-C. Use comments consistently and in a readable fashion","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F04.msc04-c",{"title":3742,"path":3743,"stem":3744},"MSC05-C. Do not manipulate time_t typed values directly","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F05.msc05-c",{"title":3746,"path":3747,"stem":3748},"MSC06-C. Beware of compiler optimizations","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F06.msc06-c",{"title":3750,"path":3751,"stem":3752},"MSC07-C. Detect and remove dead code","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F07.msc07-c",{"title":3754,"path":3755,"stem":3756},"UTF8-related issues","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Futf8-related-issues","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F08.utf8-related-issues",{"title":3758,"path":3759,"stem":3760},"MSC11-C. Incorporate diagnostic tests using assertions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F09.msc11-c",{"title":3762,"path":3763,"stem":3764},"MSC12-C. Detect and remove code that has no effect or is never executed","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc12-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F10.msc12-c",{"title":3766,"path":3767,"stem":3768},"MSC13-C. Detect and remove unused values","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc13-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F11.msc13-c",{"title":3770,"path":3771,"stem":3772},"MSC14-C. Do not introduce unnecessary platform dependencies","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc14-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F12.msc14-c",{"title":3774,"path":3775,"stem":3776},"MSC15-C. Do not depend on undefined behavior","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc15-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F13.msc15-c",{"title":3778,"path":3779,"stem":3780},"MSC17-C. Finish every set of statements associated with a case label with a break statement","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc17-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F14.msc17-c",{"title":3782,"path":3783,"stem":3784},"MSC18-C. Be careful while handling sensitive data, such as passwords, in program code","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc18-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F15.msc18-c",{"title":3786,"path":3787,"stem":3788},"MSC19-C. For functions that return an array, prefer returning an empty array over a null value","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc19-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F16.msc19-c",{"title":3790,"path":3791,"stem":3792},"MSC20-C. Do not use a switch statement to transfer control into a complex block","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc20-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F17.msc20-c",{"title":3794,"path":3795,"stem":3796},"MSC21-C. Use robust loop termination conditions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc21-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F18.msc21-c",{"title":3798,"path":3799,"stem":3800},"MSC22-C. Use the setjmp(), longjmp() facility securely","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc22-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F19.msc22-c",{"title":3802,"path":3803,"stem":3804},"MSC23-C. Beware of vendor-specific library and language differences","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc23-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F20.msc23-c",{"title":3806,"path":3807,"stem":3808},"MSC24-C. Do not use deprecated or obsolescent functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc24-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F21.msc24-c",{"title":3810,"path":3811,"stem":3812},"MSC25-C. Do not use insecure or weak cryptographic algorithms","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc25-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F22.msc25-c",{"title":3814,"path":3815,"stem":3816},"Use subset of ASCII for safety","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fuse-subset-of-ascii-for-safety","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F23.use-subset-of-ascii-for-safety",{"title":2698,"path":3818,"stem":3819,"children":3820},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F1.index",[3821,3822,3826,3830,3834],{"title":2698,"path":3818,"stem":3819},{"title":3823,"path":3824,"stem":3825},"POS01-C. Check for the existence of links when dealing with files","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos\u002Fpos01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F2.pos01-c",{"title":3827,"path":3828,"stem":3829},"POS02-C. Follow the principle of least privilege","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos\u002Fpos02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F3.pos02-c",{"title":3831,"path":3832,"stem":3833},"POS04-C. Avoid using PTHREAD_MUTEX_NORMAL type mutex locks","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos\u002Fpos04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F4.pos04-c",{"title":3835,"path":3836,"stem":3837},"POS05-C. Limit access to files by creating a jail","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos\u002Fpos05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F5.pos05-c",{"title":2768,"path":3839,"stem":3840,"children":3841},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F01.index",[3842,3843,3847,3851,3855,3859,3863,3867,3871,3875,3879,3883,3887,3891],{"title":2768,"path":3839,"stem":3840},{"title":3844,"path":3845,"stem":3846},"PRE00-C. Prefer inline or static functions to function-like macros","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F02.pre00-c",{"title":3848,"path":3849,"stem":3850},"PRE01-C. Use parentheses within macros around parameter names","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F03.pre01-c",{"title":3852,"path":3853,"stem":3854},"PRE02-C. Macro replacement lists should be parenthesized","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F04.pre02-c",{"title":3856,"path":3857,"stem":3858},"PRE04-C. Do not reuse a standard header file name","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre04-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F05.pre04-c",{"title":3860,"path":3861,"stem":3862},"PRE05-C. Understand macro replacement when concatenating tokens or performing stringification","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre05-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F06.pre05-c",{"title":3864,"path":3865,"stem":3866},"PRE06-C. Enclose header files in an include guard","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre06-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F07.pre06-c",{"title":3868,"path":3869,"stem":3870},"PRE07-C. Avoid using repeated question marks","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre07-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F08.pre07-c",{"title":3872,"path":3873,"stem":3874},"PRE08-C. Guarantee that header file names are unique","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre08-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F09.pre08-c",{"title":3876,"path":3877,"stem":3878},"PRE09-C. Do not replace secure functions with deprecated or obsolescent functions","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre09-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F10.pre09-c",{"title":3880,"path":3881,"stem":3882},"PRE10-C. Wrap multistatement macros in a do-while loop","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre10-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F11.pre10-c",{"title":3884,"path":3885,"stem":3886},"PRE11-C. Do not conclude macro definitions with a semicolon","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre11-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F12.pre11-c",{"title":3888,"path":3889,"stem":3890},"PRE12-C. Do not define unsafe macros","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre12-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F13.pre12-c",{"title":3892,"path":3893,"stem":3894},"PRE13-C. Use the Standard predefined macros to test for versions and features.","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre\u002Fpre13-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F14.pre13-c",{"title":2786,"path":3896,"stem":3897,"children":3898},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F1.index",[3899,3900,3904,3908],{"title":2786,"path":3896,"stem":3897},{"title":3901,"path":3902,"stem":3903},"SIG00-C. Mask signals handled by noninterruptible signal handlers","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig\u002Fsig00-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F2.sig00-c",{"title":3905,"path":3906,"stem":3907},"SIG01-C. Understand implementation-specific details regarding signal handler persistence","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig\u002Fsig01-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F3.sig01-c",{"title":3909,"path":3910,"stem":3911},"SIG02-C. Avoid using signals to implement normal functionality","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig\u002Fsig02-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F4.sig02-c",{"title":3913,"path":3914,"stem":3915},"CERT manifest files","\u002Fsei-cert-c-coding-standard\u002Fcert-manifest-files","4.sei-cert-c-coding-standard\u002F09.cert-manifest-files",1775657796360]