[{"data":1,"prerenderedAt":4953},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint31-c":28,"surround-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint31-c":3177,"sidebar-sei-cert-c-coding-standard":3184},[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":41,"extension":3156,"meta":3157,"navigation":7,"path":3173,"seo":3174,"stem":3175,"__hash__":3176},"content\u002F4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F3.int31-c.md","INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data",{"type":32,"value":33,"toc":3124},"minimark",[34,38,42,74,81,130,136,154,157,166,187,190,195,202,321,325,336,448,452,455,551,555,565,691,705,710,714,719,794,798,807,923,926,930,935,1007,1011,1019,1123,1126,1134,1166,1247,1253,1264,1343,1359,1365,1385,1460,1464,1470,1534,1538,1567,1581,1592,1595,1602,1607,1610,1615,1618,1677,1694,1699,1708,1713,1723,1726,1730,1733,1800,1805,2626,2634,2638,2658,2671,2675,2682,2905,2909,2915,2919,2922,2925,2930,2935,2939,2942,2946,2949,2952,2957,2961,2964,2968,2971,2976,2980,2983,2986,2990,3096,3099,3120],[35,36,30],"h1",{"id":37},"int31-c-ensure-that-integer-conversions-do-not-result-in-lost-or-misinterpreted-data",[39,40,41],"p",{},"Integer conversions, both implicit and explicit (using a cast), must be guaranteed not to result in lost or misinterpreted data. This rule is particularly true for integer values that originate from untrusted sources and are used in any of the following ways:",[43,44,45,49,52,63],"ul",{},[46,47,48],"li",{},"Integer operands of any pointer arithmetic, including array indexing",[46,50,51],{},"The assignment expression for the declaration of a variable length array",[46,53,54,55,59,60,62],{},"The postfix expression preceding square brackets ",[56,57,58],"code",{},"[]"," or the expression in square brackets ",[56,61,58],{}," of a subscripted designation of an element of an array object",[46,64,65,66,69,70,73],{},"Function arguments of type ",[56,67,68],{},"size_t"," or ",[56,71,72],{},"rsize_t"," (for example, an argument to a memory allocation function)",[39,75,76,77,80],{},"This rule also applies to arguments passed to the following library functions that are converted to ",[56,78,79],{},"  unsigned char "," :",[43,82,83,88,93,115,120,125],{},[46,84,85],{},[56,86,87],{},"memset()",[46,89,90],{},[56,91,92],{},"memset_s()",[46,94,95,98,99,102,103,106,107,110,111,114],{},[56,96,97],{},"fprintf()"," and related functions (For the length modifier ",[56,100,101],{},"c"," , if no ",[56,104,105],{},"l"," length modifier is present, the ",[56,108,109],{},"int"," argument is converted to an ",[56,112,113],{},"   unsigned char  "," , and the resulting character is written.)",[46,116,117],{},[56,118,119],{},"fputc()",[46,121,122],{},[56,123,124],{},"ungetc()",[46,126,127],{},[56,128,129],{},"memchr()",[39,131,132,133,80],{},"and to arguments to the following library functions that are converted to ",[56,134,135],{},"char",[43,137,138,143,148],{},[46,139,140],{},[56,141,142],{},"strchr()",[46,144,145],{},[56,146,147],{},"strrchr()",[46,149,150,151],{},"All of the functions listed in ",[56,152,153],{},"\u003Cctype.h>",[39,155,156],{},"The only integer type conversions that are guaranteed to be safe for all data values and all possible conforming implementations are conversions of an integral value to a wider type of the same signedness.",[39,158,159,160,165],{},"The C Standard, subclause 6.3.1.3 [ ",[161,162,164],"a",{"href":163},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTR24731-2-2024","ISO\u002FIEC 9899:2024"," ], says",[167,168,169,176,179],"blockquote",{},[39,170,171,172,175],{},"When a value with integer type is converted to another integer type other than ",[56,173,174],{},"_Bool"," , if the value can be represented by the new type, it is unchanged.",[39,177,178],{},"Otherwise, if the new type is unsigned, the value is converted by repeatedly adding or subtracting one more than the maximum value that can be represented in the new type until the value is in the range of the new type.",[39,180,181,182,186],{},"Otherwise, the new type is signed and the value cannot be represented in it; either the result is ",[161,183,185],{"href":184},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-implementation-definedbehavior","implementation-defined"," or an implementation-defined signal is raised.",[39,188,189],{},"Typically, converting an integer to a smaller type results in truncation of the high-order bits.",[191,192,194],"h2",{"id":193},"noncompliant-code-example-unsigned-to-signed","Noncompliant Code Example (Unsigned to Signed)",[39,196,197,198,80],{},"Type range errors, including loss of data (truncation) and loss of sign (sign errors), can occur when converting from a value of an unsigned integer type to a value of a signed integer type. This noncompliant code example results in a truncation error on most ",[161,199,201],{"href":200},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-implementation","implementations",[203,204,206],"code-block",{"quality":205},"bad",[207,208,212],"pre",{"className":209,"code":210,"language":101,"meta":211,"style":211},"language-c shiki shiki-themes github-light github-dark monokai","#include \u003Climits.h>\n \nvoid func(void) {\n  unsigned long int u_a = ULONG_MAX;\n  signed char sc;\n  sc = (signed char)u_a; \u002F* Cast eliminates warning *\u002F\n  \u002F* ... *\u002F\n}\n","",[56,213,214,227,234,253,274,286,309,315],{"__ignoreMap":211},[215,216,219,223],"span",{"class":217,"line":218},"line",1,[215,220,222],{"class":221},"sC2Qs","#include",[215,224,226],{"class":225},"sstjo"," \u003Climits.h>\n",[215,228,230],{"class":217,"line":229},2,[215,231,233],{"class":232},"sMOD_"," \n",[215,235,237,241,245,248,250],{"class":217,"line":236},3,[215,238,240],{"class":239},"sq6CD","void",[215,242,244],{"class":243},"srTi1"," func",[215,246,247],{"class":232},"(",[215,249,240],{"class":239},[215,251,252],{"class":232},") {\n",[215,254,256,259,262,265,268,271],{"class":217,"line":255},4,[215,257,258],{"class":239},"  unsigned",[215,260,261],{"class":239}," long",[215,263,264],{"class":239}," int",[215,266,267],{"class":232}," u_a ",[215,269,270],{"class":221},"=",[215,272,273],{"class":232}," ULONG_MAX;\n",[215,275,277,280,283],{"class":217,"line":276},5,[215,278,279],{"class":239},"  signed",[215,281,282],{"class":239}," char",[215,284,285],{"class":232}," sc;\n",[215,287,289,292,294,297,300,302,305],{"class":217,"line":288},6,[215,290,291],{"class":232},"  sc ",[215,293,270],{"class":221},[215,295,296],{"class":232}," (",[215,298,299],{"class":239},"signed",[215,301,282],{"class":239},[215,303,304],{"class":232},")u_a;",[215,306,308],{"class":307},"s8-w5"," \u002F* Cast eliminates warning *\u002F\n",[215,310,312],{"class":217,"line":311},7,[215,313,314],{"class":307},"  \u002F* ... *\u002F\n",[215,316,318],{"class":217,"line":317},8,[215,319,320],{"class":232},"}\n",[191,322,324],{"id":323},"compliant-solution-unsigned-to-signed","Compliant Solution (Unsigned to Signed)",[39,326,327,328,331,332,335],{},"Validate ranges when converting from an unsigned type to a signed type. This compliant solution can be used to convert a value of ",[56,329,330],{},"  unsigned long int "," type to a value of ",[56,333,334],{},"  signed char "," type:",[203,337,339],{"quality":338},"good",[207,340,342],{"className":209,"code":341,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n \nvoid func(void) {\n  unsigned long int u_a = ULONG_MAX;\n  signed char sc;\n  if (u_a \u003C= SCHAR_MAX) {\n    sc = (signed char)u_a;  \u002F* Cast eliminates warning *\u002F\n  } else {\n    \u002F* Handle error *\u002F\n  }\n}\n",[56,343,344,350,354,366,380,388,402,420,431,437,443],{"__ignoreMap":211},[215,345,346,348],{"class":217,"line":218},[215,347,222],{"class":221},[215,349,226],{"class":225},[215,351,352],{"class":217,"line":229},[215,353,233],{"class":232},[215,355,356,358,360,362,364],{"class":217,"line":236},[215,357,240],{"class":239},[215,359,244],{"class":243},[215,361,247],{"class":232},[215,363,240],{"class":239},[215,365,252],{"class":232},[215,367,368,370,372,374,376,378],{"class":217,"line":255},[215,369,258],{"class":239},[215,371,261],{"class":239},[215,373,264],{"class":239},[215,375,267],{"class":232},[215,377,270],{"class":221},[215,379,273],{"class":232},[215,381,382,384,386],{"class":217,"line":276},[215,383,279],{"class":239},[215,385,282],{"class":239},[215,387,285],{"class":232},[215,389,390,393,396,399],{"class":217,"line":288},[215,391,392],{"class":221},"  if",[215,394,395],{"class":232}," (u_a ",[215,397,398],{"class":221},"\u003C=",[215,400,401],{"class":232}," SCHAR_MAX) {\n",[215,403,404,407,409,411,413,415,417],{"class":217,"line":311},[215,405,406],{"class":232},"    sc ",[215,408,270],{"class":221},[215,410,296],{"class":232},[215,412,299],{"class":239},[215,414,282],{"class":239},[215,416,304],{"class":232},[215,418,419],{"class":307},"  \u002F* Cast eliminates warning *\u002F\n",[215,421,422,425,428],{"class":217,"line":317},[215,423,424],{"class":232},"  } ",[215,426,427],{"class":221},"else",[215,429,430],{"class":232}," {\n",[215,432,434],{"class":217,"line":433},9,[215,435,436],{"class":307},"    \u002F* Handle error *\u002F\n",[215,438,440],{"class":217,"line":439},10,[215,441,442],{"class":232},"  }\n",[215,444,446],{"class":217,"line":445},11,[215,447,320],{"class":232},[191,449,451],{"id":450},"noncompliant-code-example-signed-to-unsigned","Noncompliant Code Example (Signed to Unsigned)",[39,453,454],{},"Type range errors, including loss of data (truncation) and loss of sign (sign errors), can occur when converting from a value of a signed type to a value of an unsigned type. This noncompliant code example results in a negative number being misinterpreted as a large positive number.",[203,456,457],{"quality":205},[207,458,460],{"className":209,"code":459,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n\nvoid func(signed int si) {\n  \u002F* Cast eliminates warning *\u002F\n  unsigned int ui = (unsigned int)si;\n\n  \u002F* ... *\u002F\n}\n\n\u002F* ... *\u002F\n\nfunc(INT_MIN);\n",[56,461,462,468,473,491,495,517,521,525,529,533,538,542],{"__ignoreMap":211},[215,463,464,466],{"class":217,"line":218},[215,465,222],{"class":221},[215,467,226],{"class":225},[215,469,470],{"class":217,"line":229},[215,471,472],{"emptyLinePlaceholder":7},"\n",[215,474,475,477,479,481,483,485,489],{"class":217,"line":236},[215,476,240],{"class":239},[215,478,244],{"class":243},[215,480,247],{"class":232},[215,482,299],{"class":239},[215,484,264],{"class":239},[215,486,488],{"class":487},"sTHNf"," si",[215,490,252],{"class":232},[215,492,493],{"class":217,"line":255},[215,494,419],{"class":307},[215,496,497,500,502,505,507,509,512,514],{"class":217,"line":276},[215,498,499],{"class":239},"  unsigned",[215,501,264],{"class":239},[215,503,504],{"class":232}," ui ",[215,506,270],{"class":221},[215,508,296],{"class":232},[215,510,511],{"class":239},"unsigned",[215,513,264],{"class":239},[215,515,516],{"class":232},")si;\n",[215,518,519],{"class":217,"line":288},[215,520,472],{"emptyLinePlaceholder":7},[215,522,523],{"class":217,"line":311},[215,524,314],{"class":307},[215,526,527],{"class":217,"line":317},[215,528,320],{"class":232},[215,530,531],{"class":217,"line":433},[215,532,472],{"emptyLinePlaceholder":7},[215,534,535],{"class":217,"line":439},[215,536,537],{"class":307},"\u002F* ... *\u002F\n",[215,539,540],{"class":217,"line":445},[215,541,472],{"emptyLinePlaceholder":7},[215,543,545,548],{"class":217,"line":544},12,[215,546,547],{"class":243},"func",[215,549,550],{"class":232},"(INT_MIN);\n",[191,552,554],{"id":553},"compliant-solution-signed-to-unsigned","Compliant Solution (Signed to Unsigned)",[39,556,557,558,561,562,335],{},"Validate ranges when converting from a signed type to an unsigned type. This compliant solution converts a value of a ",[56,559,560],{},"  signed int "," type to a value of an ",[56,563,564],{},"  unsigned int ",[203,566,567],{"quality":338},[207,568,570],{"className":209,"code":569,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n\nvoid func(signed int si) {\n  unsigned int ui;\n  if (si \u003C 0) {\n    \u002F* Handle error *\u002F\n  } else {\n    ui = (unsigned int)si;  \u002F* Cast eliminates warning *\u002F\n  }\n  \u002F* ... *\u002F\n}\n\u002F* ... *\u002F\n\nfunc(INT_MIN + 1);\n",[56,571,572,578,582,598,607,623,627,635,653,657,661,665,669,674],{"__ignoreMap":211},[215,573,574,576],{"class":217,"line":218},[215,575,222],{"class":221},[215,577,226],{"class":225},[215,579,580],{"class":217,"line":229},[215,581,472],{"emptyLinePlaceholder":7},[215,583,584,586,588,590,592,594,596],{"class":217,"line":236},[215,585,240],{"class":239},[215,587,244],{"class":243},[215,589,247],{"class":232},[215,591,299],{"class":239},[215,593,264],{"class":239},[215,595,488],{"class":487},[215,597,252],{"class":232},[215,599,600,602,604],{"class":217,"line":255},[215,601,258],{"class":239},[215,603,264],{"class":239},[215,605,606],{"class":232}," ui;\n",[215,608,609,611,614,617,621],{"class":217,"line":276},[215,610,392],{"class":221},[215,612,613],{"class":232}," (si ",[215,615,616],{"class":221},"\u003C",[215,618,620],{"class":619},"s7F3e"," 0",[215,622,252],{"class":232},[215,624,625],{"class":217,"line":288},[215,626,436],{"class":307},[215,628,629,631,633],{"class":217,"line":311},[215,630,424],{"class":232},[215,632,427],{"class":221},[215,634,430],{"class":232},[215,636,637,640,642,644,646,648,651],{"class":217,"line":317},[215,638,639],{"class":232},"    ui ",[215,641,270],{"class":221},[215,643,296],{"class":232},[215,645,511],{"class":239},[215,647,264],{"class":239},[215,649,650],{"class":232},")si;",[215,652,419],{"class":307},[215,654,655],{"class":217,"line":433},[215,656,442],{"class":232},[215,658,659],{"class":217,"line":439},[215,660,314],{"class":307},[215,662,663],{"class":217,"line":445},[215,664,320],{"class":232},[215,666,667],{"class":217,"line":544},[215,668,537],{"class":307},[215,670,672],{"class":217,"line":671},13,[215,673,472],{"emptyLinePlaceholder":7},[215,675,677,679,682,685,688],{"class":217,"line":676},14,[215,678,547],{"class":243},[215,680,681],{"class":232},"(INT_MIN ",[215,683,684],{"class":221},"+",[215,686,687],{"class":619}," 1",[215,689,690],{"class":232},");\n",[39,692,693,694,696,697,701,702,80],{},"Subclause 6.2.5, paragraph 11, of the C Standard [ ",[161,695,164],{"href":163}," ] provides the necessary guarantees to ensure this solution works on a ",[161,698,700],{"href":699},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-conformingprogram","conforming"," ",[161,703,704],{"href":200},"implementation",[167,706,707],{},[39,708,709],{},"The range of nonnegative values of a signed integer type is a subrange of the corresponding unsigned integer type, and the representation of the same value in each type is the same.",[191,711,713],{"id":712},"noncompliant-code-example-signed-loss-of-precision","Noncompliant Code Example (Signed, Loss of Precision)",[39,715,716,717,80],{},"A loss of data (truncation) can occur when converting from a value of a signed integer type to a value of a signed type with less precision. This noncompliant code example results in a truncation error on most ",[161,718,201],{"href":200},[203,720,721],{"quality":205},[207,722,724],{"className":209,"code":723,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n\nvoid func(void) {\n  signed long int s_a = LONG_MAX;\n  signed char sc = (signed char)s_a; \u002F* Cast eliminates warning *\u002F\n  \u002F* ... *\u002F\n}\n",[56,725,726,732,736,748,764,786,790],{"__ignoreMap":211},[215,727,728,730],{"class":217,"line":218},[215,729,222],{"class":221},[215,731,226],{"class":225},[215,733,734],{"class":217,"line":229},[215,735,472],{"emptyLinePlaceholder":7},[215,737,738,740,742,744,746],{"class":217,"line":236},[215,739,240],{"class":239},[215,741,244],{"class":243},[215,743,247],{"class":232},[215,745,240],{"class":239},[215,747,252],{"class":232},[215,749,750,752,754,756,759,761],{"class":217,"line":255},[215,751,279],{"class":239},[215,753,261],{"class":239},[215,755,264],{"class":239},[215,757,758],{"class":232}," s_a ",[215,760,270],{"class":221},[215,762,763],{"class":232}," LONG_MAX;\n",[215,765,766,768,770,773,775,777,779,781,784],{"class":217,"line":276},[215,767,279],{"class":239},[215,769,282],{"class":239},[215,771,772],{"class":232}," sc ",[215,774,270],{"class":221},[215,776,296],{"class":232},[215,778,299],{"class":239},[215,780,282],{"class":239},[215,782,783],{"class":232},")s_a;",[215,785,308],{"class":307},[215,787,788],{"class":217,"line":288},[215,789,314],{"class":307},[215,791,792],{"class":217,"line":311},[215,793,320],{"class":232},[191,795,797],{"id":796},"compliant-solution-signed-loss-of-precision","Compliant Solution (Signed, Loss of Precision)",[39,799,800,801,804,805,335],{},"Validate ranges when converting from a signed type to a signed type with less precision. This compliant solution converts a value of a ",[56,802,803],{},"  signed long int "," type to a value of a ",[56,806,334],{},[203,808,809],{"quality":338},[207,810,812],{"className":209,"code":811,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n\nvoid func(void) {\n  signed long int s_a = LONG_MAX;\n  signed char sc;\n  if ((s_a \u003C SCHAR_MIN) || (s_a > SCHAR_MAX)) {\n    \u002F* Handle error *\u002F\n  } else {\n    sc = (signed char)s_a; \u002F* Use cast to eliminate warning *\u002F\n  }\n  \u002F* ... *\u002F\n}\n",[56,813,814,820,824,836,850,858,882,886,894,911,915,919],{"__ignoreMap":211},[215,815,816,818],{"class":217,"line":218},[215,817,222],{"class":221},[215,819,226],{"class":225},[215,821,822],{"class":217,"line":229},[215,823,472],{"emptyLinePlaceholder":7},[215,825,826,828,830,832,834],{"class":217,"line":236},[215,827,240],{"class":239},[215,829,244],{"class":243},[215,831,247],{"class":232},[215,833,240],{"class":239},[215,835,252],{"class":232},[215,837,838,840,842,844,846,848],{"class":217,"line":255},[215,839,279],{"class":239},[215,841,261],{"class":239},[215,843,264],{"class":239},[215,845,758],{"class":232},[215,847,270],{"class":221},[215,849,763],{"class":232},[215,851,852,854,856],{"class":217,"line":276},[215,853,279],{"class":239},[215,855,282],{"class":239},[215,857,285],{"class":232},[215,859,860,862,865,867,870,873,876,879],{"class":217,"line":288},[215,861,392],{"class":221},[215,863,864],{"class":232}," ((s_a ",[215,866,616],{"class":221},[215,868,869],{"class":232}," SCHAR_MIN) ",[215,871,872],{"class":221},"||",[215,874,875],{"class":232}," (s_a ",[215,877,878],{"class":221},">",[215,880,881],{"class":232}," SCHAR_MAX)) {\n",[215,883,884],{"class":217,"line":311},[215,885,436],{"class":307},[215,887,888,890,892],{"class":217,"line":317},[215,889,424],{"class":232},[215,891,427],{"class":221},[215,893,430],{"class":232},[215,895,896,898,900,902,904,906,908],{"class":217,"line":433},[215,897,406],{"class":232},[215,899,270],{"class":221},[215,901,296],{"class":232},[215,903,299],{"class":239},[215,905,282],{"class":239},[215,907,783],{"class":232},[215,909,910],{"class":307}," \u002F* Use cast to eliminate warning *\u002F\n",[215,912,913],{"class":217,"line":439},[215,914,442],{"class":232},[215,916,917],{"class":217,"line":445},[215,918,314],{"class":307},[215,920,921],{"class":217,"line":544},[215,922,320],{"class":232},[39,924,925],{},"Conversions from a value of a signed integer type to a value of a signed integer type with less precision requires that both the upper and lower bounds are checked.",[191,927,929],{"id":928},"noncompliant-code-example-unsigned-loss-of-precision","Noncompliant Code Example (Unsigned, Loss of Precision)",[39,931,932,933,80],{},"A loss of data (truncation) can occur when converting from a value of an unsigned integer type to a value of an unsigned type with less precision. This noncompliant code example results in a truncation error on most ",[161,934,201],{"href":200},[203,936,937],{"quality":205},[207,938,940],{"className":209,"code":939,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n\nvoid func(void) {\n  unsigned long int u_a = ULONG_MAX;\n  unsigned char uc = (unsigned char)u_a; \u002F* Cast eliminates warning *\u002F\n  \u002F* ... *\u002F\n}\n",[56,941,942,948,952,964,978,999,1003],{"__ignoreMap":211},[215,943,944,946],{"class":217,"line":218},[215,945,222],{"class":221},[215,947,226],{"class":225},[215,949,950],{"class":217,"line":229},[215,951,472],{"emptyLinePlaceholder":7},[215,953,954,956,958,960,962],{"class":217,"line":236},[215,955,240],{"class":239},[215,957,244],{"class":243},[215,959,247],{"class":232},[215,961,240],{"class":239},[215,963,252],{"class":232},[215,965,966,968,970,972,974,976],{"class":217,"line":255},[215,967,258],{"class":239},[215,969,261],{"class":239},[215,971,264],{"class":239},[215,973,267],{"class":232},[215,975,270],{"class":221},[215,977,273],{"class":232},[215,979,980,982,984,987,989,991,993,995,997],{"class":217,"line":276},[215,981,258],{"class":239},[215,983,282],{"class":239},[215,985,986],{"class":232}," uc ",[215,988,270],{"class":221},[215,990,296],{"class":232},[215,992,511],{"class":239},[215,994,282],{"class":239},[215,996,304],{"class":232},[215,998,308],{"class":307},[215,1000,1001],{"class":217,"line":288},[215,1002,314],{"class":307},[215,1004,1005],{"class":217,"line":311},[215,1006,320],{"class":232},[191,1008,1010],{"id":1009},"compliant-solution-unsigned-loss-of-precision","Compliant Solution (Unsigned, Loss of Precision)",[39,1012,1013,1014,1016,1017,335],{},"Validate ranges when converting a value of an unsigned integer type to a value of an unsigned integer type with less precision. This compliant solution converts a value of an ",[56,1015,330],{}," type to a value of an ",[56,1018,79],{},[203,1020,1021],{"quality":338},[207,1022,1024],{"className":209,"code":1023,"language":101,"meta":211,"style":211},"#include \u003Climits.h>\n\nvoid func(void) {\n  unsigned long int u_a = ULONG_MAX;\n  unsigned char uc;\n  if (u_a > UCHAR_MAX) {\n    \u002F* Handle error *\u002F\n  } else {\n    uc = (unsigned char)u_a; \u002F* Cast eliminates warning *\u002F\n  }\n  \u002F* ... *\u002F\n}\n",[56,1025,1026,1032,1036,1048,1062,1071,1082,1086,1094,1111,1115,1119],{"__ignoreMap":211},[215,1027,1028,1030],{"class":217,"line":218},[215,1029,222],{"class":221},[215,1031,226],{"class":225},[215,1033,1034],{"class":217,"line":229},[215,1035,472],{"emptyLinePlaceholder":7},[215,1037,1038,1040,1042,1044,1046],{"class":217,"line":236},[215,1039,240],{"class":239},[215,1041,244],{"class":243},[215,1043,247],{"class":232},[215,1045,240],{"class":239},[215,1047,252],{"class":232},[215,1049,1050,1052,1054,1056,1058,1060],{"class":217,"line":255},[215,1051,258],{"class":239},[215,1053,261],{"class":239},[215,1055,264],{"class":239},[215,1057,267],{"class":232},[215,1059,270],{"class":221},[215,1061,273],{"class":232},[215,1063,1064,1066,1068],{"class":217,"line":276},[215,1065,258],{"class":239},[215,1067,282],{"class":239},[215,1069,1070],{"class":232}," uc;\n",[215,1072,1073,1075,1077,1079],{"class":217,"line":288},[215,1074,392],{"class":221},[215,1076,395],{"class":232},[215,1078,878],{"class":221},[215,1080,1081],{"class":232}," UCHAR_MAX) {\n",[215,1083,1084],{"class":217,"line":311},[215,1085,436],{"class":307},[215,1087,1088,1090,1092],{"class":217,"line":317},[215,1089,424],{"class":232},[215,1091,427],{"class":221},[215,1093,430],{"class":232},[215,1095,1096,1099,1101,1103,1105,1107,1109],{"class":217,"line":433},[215,1097,1098],{"class":232},"    uc ",[215,1100,270],{"class":221},[215,1102,296],{"class":232},[215,1104,511],{"class":239},[215,1106,282],{"class":239},[215,1108,304],{"class":232},[215,1110,308],{"class":307},[215,1112,1113],{"class":217,"line":439},[215,1114,442],{"class":232},[215,1116,1117],{"class":217,"line":445},[215,1118,314],{"class":307},[215,1120,1121],{"class":217,"line":544},[215,1122,320],{"class":232},[39,1124,1125],{},"Conversions from unsigned types with greater precision to unsigned types with less precision require only the upper bounds to be checked.",[191,1127,1129,1130,1133],{"id":1128},"noncompliant-code-example-time_t-return-value","Noncompliant Code Example ( ",[56,1131,1132],{},"time_t"," Return Value)",[39,1135,1136,1137,1140,1141,1144,1145,1147,1148,1152,1153,1155,1156,1158,1159,1161,1162,1165],{},"The ",[56,1138,1139],{},"time()"," function returns the value ",[56,1142,1143],{},"(time_t)(-1)"," to indicate that the calendar time is not available. The C Standard requires that the ",[56,1146,1132],{}," type is only a ",[1149,1150,1151],"em",{},"real type"," capable of representing time. (The integer and real floating types are collectively called real types.) It is left to the implementor to decide the best real type to use to represent time. If ",[56,1154,1132],{}," is implemented as an unsigned integer type with less precision than a signed ",[56,1157,109],{}," , the return value of ",[56,1160,1139],{}," will never compare equal to the integer literal ",[56,1163,1164],{},"-1"," .",[203,1167,1168],{"quality":205},[207,1169,1171],{"className":209,"code":1170,"language":101,"meta":211,"style":211},"#include \u003Ctime.h>\n \nvoid func(void) {\n  time_t now = time(NULL);\n  if (now != -1) {\n    \u002F* Continue processing *\u002F\n  }\n}\n",[56,1172,1173,1180,1184,1196,1216,1234,1239,1243],{"__ignoreMap":211},[215,1174,1175,1177],{"class":217,"line":218},[215,1176,222],{"class":221},[215,1178,1179],{"class":225}," \u003Ctime.h>\n",[215,1181,1182],{"class":217,"line":229},[215,1183,233],{"class":232},[215,1185,1186,1188,1190,1192,1194],{"class":217,"line":236},[215,1187,240],{"class":239},[215,1189,244],{"class":243},[215,1191,247],{"class":232},[215,1193,240],{"class":239},[215,1195,252],{"class":232},[215,1197,1198,1201,1204,1206,1209,1211,1214],{"class":217,"line":255},[215,1199,1200],{"class":239},"  time_t",[215,1202,1203],{"class":232}," now ",[215,1205,270],{"class":221},[215,1207,1208],{"class":243}," time",[215,1210,247],{"class":232},[215,1212,1213],{"class":619},"NULL",[215,1215,690],{"class":232},[215,1217,1218,1220,1223,1226,1229,1232],{"class":217,"line":276},[215,1219,392],{"class":221},[215,1221,1222],{"class":232}," (now ",[215,1224,1225],{"class":221},"!=",[215,1227,1228],{"class":221}," -",[215,1230,1231],{"class":619},"1",[215,1233,252],{"class":232},[215,1235,1236],{"class":217,"line":288},[215,1237,1238],{"class":307},"    \u002F* Continue processing *\u002F\n",[215,1240,1241],{"class":217,"line":311},[215,1242,442],{"class":232},[215,1244,1245],{"class":217,"line":317},[215,1246,320],{"class":232},[191,1248,1250,1251,1133],{"id":1249},"compliant-solution-time_t-return-value","Compliant Solution ( ",[56,1252,1132],{},[39,1254,1255,1256,1258,1259,1261,1262,80],{},"To ensure the comparison is properly performed, the return value of ",[56,1257,1139],{}," should be compared against ",[56,1260,1164],{}," cast to type ",[56,1263,1132],{},[203,1265,1266],{"quality":338},[207,1267,1269],{"className":209,"code":1268,"language":101,"meta":211,"style":211},"#include \u003Ctime.h>\n \nvoid func(void) {\n  time_t now = time(NULL);\n  if (now != (time_t)-1) {\n    \u002F* Continue processing *\u002F\n  }\n}\n",[56,1270,1271,1277,1281,1293,1309,1331,1335,1339],{"__ignoreMap":211},[215,1272,1273,1275],{"class":217,"line":218},[215,1274,222],{"class":221},[215,1276,1179],{"class":225},[215,1278,1279],{"class":217,"line":229},[215,1280,233],{"class":232},[215,1282,1283,1285,1287,1289,1291],{"class":217,"line":236},[215,1284,240],{"class":239},[215,1286,244],{"class":243},[215,1288,247],{"class":232},[215,1290,240],{"class":239},[215,1292,252],{"class":232},[215,1294,1295,1297,1299,1301,1303,1305,1307],{"class":217,"line":255},[215,1296,1200],{"class":239},[215,1298,1203],{"class":232},[215,1300,270],{"class":221},[215,1302,1208],{"class":243},[215,1304,247],{"class":232},[215,1306,1213],{"class":619},[215,1308,690],{"class":232},[215,1310,1311,1313,1315,1317,1319,1321,1324,1327,1329],{"class":217,"line":276},[215,1312,392],{"class":221},[215,1314,1222],{"class":232},[215,1316,1225],{"class":221},[215,1318,296],{"class":232},[215,1320,1132],{"class":239},[215,1322,1323],{"class":232},")",[215,1325,1326],{"class":221},"-",[215,1328,1231],{"class":619},[215,1330,252],{"class":232},[215,1332,1333],{"class":217,"line":288},[215,1334,1238],{"class":307},[215,1336,1337],{"class":217,"line":311},[215,1338,442],{"class":232},[215,1340,1341],{"class":217,"line":317},[215,1342,320],{"class":232},[39,1344,1345,1346,1350,1351,1354,1355,1165],{},"This solution is in accordance with ",[161,1347,1349],{"href":1348},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint18-c","INT18-C. Evaluate integer expressions in a larger size before comparing or assigning to that size"," . Note that ",[56,1352,1353],{},"(time_+t)-1"," also complies with ",[1356,1357,1358],"strong",{},"INT31-C-EX3",[191,1360,1129,1362,1364],{"id":1361},"noncompliant-code-example-memset",[56,1363,87],{}," )",[39,1366,1367,1368,1370,1371,1373,1374,1376,1377,1379,1380,1373,1382,1384],{},"For historical reasons, certain C Standard functions accept an argument of type ",[56,1369,109],{}," and convert it to either ",[56,1372,79],{}," or plain ",[56,1375,135],{}," . This conversion can result in unexpected behavior if the value cannot be represented in the smaller type. The second argument to ",[56,1378,87],{}," is an example; it indicates what byte to store in the range of memory indicated by the first and third arguments.  If the second argument is outside the range of a ",[56,1381,334],{},[56,1383,135],{}," , then its higher order bits will typically be truncated. Consequently, this noncompliant solution unexpectedly sets all elements in the array to 0, rather than 4096:",[203,1386,1387],{"quality":205},[207,1388,1390],{"className":209,"code":1389,"language":101,"meta":211,"style":211},"#include \u003Cstring.h>\n#include \u003Cstddef.h>\n \nint *init_memory(int *array, size_t n) {\n  return memset(array, 4096, n); \n} \n",[56,1391,1392,1399,1406,1410,1439,1456],{"__ignoreMap":211},[215,1393,1394,1396],{"class":217,"line":218},[215,1395,222],{"class":221},[215,1397,1398],{"class":225}," \u003Cstring.h>\n",[215,1400,1401,1403],{"class":217,"line":229},[215,1402,222],{"class":221},[215,1404,1405],{"class":225}," \u003Cstddef.h>\n",[215,1407,1408],{"class":217,"line":236},[215,1409,233],{"class":232},[215,1411,1412,1414,1417,1420,1422,1424,1426,1429,1432,1434,1437],{"class":217,"line":255},[215,1413,109],{"class":239},[215,1415,1416],{"class":221}," *",[215,1418,1419],{"class":243},"init_memory",[215,1421,247],{"class":232},[215,1423,109],{"class":239},[215,1425,1416],{"class":221},[215,1427,1428],{"class":487},"array",[215,1430,1431],{"class":232},", ",[215,1433,68],{"class":239},[215,1435,1436],{"class":487}," n",[215,1438,252],{"class":232},[215,1440,1441,1444,1447,1450,1453],{"class":217,"line":276},[215,1442,1443],{"class":221},"  return",[215,1445,1446],{"class":243}," memset",[215,1448,1449],{"class":232},"(array, ",[215,1451,1452],{"class":619},"4096",[215,1454,1455],{"class":232},", n); \n",[215,1457,1458],{"class":217,"line":288},[215,1459,320],{"class":232},[191,1461,1463],{"id":1462},"compliant-solution-memset","Compliant Solution ( memset() )",[39,1465,1466,1467,1469],{},"In general, the ",[56,1468,87],{}," function should not be used to initialize an integer array unless it is to set or clear all the bits, as in this compliant solution:",[203,1471,1472],{"quality":338},[207,1473,1475],{"className":209,"code":1474,"language":101,"meta":211,"style":211},"#include \u003Cstring.h>\n#include \u003Cstddef.h>\n\nint *init_memory(int *array, size_t n) {\n  return memset(array, 0, n); \n} \n",[56,1476,1477,1483,1489,1493,1517,1530],{"__ignoreMap":211},[215,1478,1479,1481],{"class":217,"line":218},[215,1480,222],{"class":221},[215,1482,1398],{"class":225},[215,1484,1485,1487],{"class":217,"line":229},[215,1486,222],{"class":221},[215,1488,1405],{"class":225},[215,1490,1491],{"class":217,"line":236},[215,1492,472],{"emptyLinePlaceholder":7},[215,1494,1495,1497,1499,1501,1503,1505,1507,1509,1511,1513,1515],{"class":217,"line":255},[215,1496,109],{"class":239},[215,1498,1416],{"class":221},[215,1500,1419],{"class":243},[215,1502,247],{"class":232},[215,1504,109],{"class":239},[215,1506,1416],{"class":221},[215,1508,1428],{"class":487},[215,1510,1431],{"class":232},[215,1512,68],{"class":239},[215,1514,1436],{"class":487},[215,1516,252],{"class":232},[215,1518,1519,1521,1523,1525,1528],{"class":217,"line":276},[215,1520,1443],{"class":221},[215,1522,1446],{"class":243},[215,1524,1449],{"class":232},[215,1526,1527],{"class":619},"0",[215,1529,1455],{"class":232},[215,1531,1532],{"class":217,"line":288},[215,1533,320],{"class":232},[191,1535,1537],{"id":1536},"exceptions","Exceptions",[39,1539,1540,1543,1544,1547,1548,1550,1551,1553,1554,1556,1557,1553,1559,1561,1562,1566],{},[1356,1541,1542],{},"INT31-C-EX1:"," The C Standard defines minimum ranges for standard integer types. For example, the minimum range for an object of type ",[56,1545,1546],{},"  unsigned short int "," is 0 to 65,535, whereas the minimum range for ",[56,1549,109],{}," is −32,767 to +32,767. Consequently, it is not always possible to represent all possible values of an ",[56,1552,1546],{}," as an ",[56,1555,109],{}," . However, on the IA-32 architecture, for example, the actual integer range is from −2,147,483,648 to +2,147,483,647, meaning that it is quite possible to represent all the values of an ",[56,1558,1546],{},[56,1560,109],{}," for this architecture. As a result, it is not necessary to provide a test for this conversion on IA-32. It is not possible to make assumptions about conversions without knowing the precision of the underlying types. If these tests are not provided, assumptions concerning precision must be clearly documented, as the resulting code cannot be safely ported to a system where these assumptions are invalid. A good way to document these assumptions is to use static assertions. (See ",[161,1563,1565],{"href":1564},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl03-c","DCL03-C. Use a static assertion to test the value of a constant expression"," .)",[39,1568,1569,1572,1573,1576,1577,1580],{},[1356,1570,1571],{},"INT31-C-EX2:"," Conversion from any integer type with a value between ",[56,1574,1575],{},"SCHAR_MIN"," and ",[56,1578,1579],{},"UCHAR_MAX"," to a character type is permitted provided the value represents a character and not an integer.",[39,1582,1583,1584,1587,1588,1591],{},"Conversions to unsigned character types are well defined by C to have modular behavior. A character's value is not misinterpreted by the loss of sign or conversion to a negative number. For example, the Euro symbol ",[56,1585,1586],{},"€"," is sometimes represented by bit pattern ",[56,1589,1590],{},"0x80"," which can have the numerical value 128 or −127 depending on the signedness of the type.",[39,1593,1594],{},"Conversions to signed character types are more problematic.",[39,1596,1597,1598,1601],{},"The C Standard, subclause 6.3.1.3, paragraph 3 [ ",[161,1599,164],{"href":1600},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTR24731-2-2010"," ], says, regarding conversions",[167,1603,1604],{},[39,1605,1606],{},"Otherwise, the new type is signed and the value cannot be represented in it; either the result is implementation-defined or an implementation-defined signal is raised.",[39,1608,1609],{},"Furthermore, subclause 6.2.6.2, paragraph 2, says, regarding integer modifications",[167,1611,1612],{},[39,1613,1614],{},"Each bit that is a value bit shall have the same value as the same bit in the object representation of the corresponding unsigned type. If the sign bit is zero, it shall not affect the resulting value. If the sign bit is one, it has value −(2N−1). There may or may not be any padding bits signed char shall not have any padding bits.",[39,1616,1617],{},"Consequently, the standard allows for this code to trap:",[207,1619,1623],{"className":1620,"code":1621,"language":1622,"meta":211,"style":211},"language-java shiki shiki-themes github-light github-dark monokai","int i = 128; \u002F* 1000 0000 in binary *\u002F\nassert(SCHAR_MAX == 127);\nsigned char c = i; \u002F* can trap *\u002F\n","java",[56,1624,1625,1643,1659],{"__ignoreMap":211},[215,1626,1627,1629,1632,1634,1637,1640],{"class":217,"line":218},[215,1628,109],{"class":239},[215,1630,1631],{"class":232}," i ",[215,1633,270],{"class":221},[215,1635,1636],{"class":619}," 128",[215,1638,1639],{"class":232},"; ",[215,1641,1642],{"class":307},"\u002F* 1000 0000 in binary *\u002F\n",[215,1644,1645,1648,1651,1654,1657],{"class":217,"line":229},[215,1646,1647],{"class":243},"assert",[215,1649,1650],{"class":232},"(SCHAR_MAX ",[215,1652,1653],{"class":221},"==",[215,1655,1656],{"class":619}," 127",[215,1658,690],{"class":232},[215,1660,1661,1664,1666,1669,1671,1674],{"class":217,"line":236},[215,1662,1663],{"class":232},"signed ",[215,1665,135],{"class":239},[215,1667,1668],{"class":232}," c ",[215,1670,270],{"class":221},[215,1672,1673],{"class":232}," i; ",[215,1675,1676],{"class":307},"\u002F* can trap *\u002F\n",[39,1678,1679,1680,1688,1689,1693],{},"However, platforms where this code traps or produces an unexpected value are rare. According to ",[1149,1681,1682],{},[161,1683,1687],{"href":1684,"rel":1685},"http:\u002F\u002Fwww.knosof.co.uk\u002Fcbook\u002Fcbook.html",[1686],"nofollow","The New C Standard: An Economic and Cultural Commentary"," by Derek Jones [ ",[161,1690,1692],{"href":1691},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Jones08","Jones 2008"," ],",[167,1695,1696],{},[39,1697,1698],{},"Implementations with such trap representations are thought to have existed in the past. Your author was unable to locate any documents describing such processors.",[39,1700,1701,1704,1705,1707],{},[1356,1702,1703],{},"INT31-C-EX3:"," The C Standard, subclause 7.29.2.5, paragraph 3 [ ",[161,1706,164],{"href":1600}," ] says:",[167,1709,1710],{},[39,1711,1712],{},"The time function returns the implementation’s best approximation to the current calendar time. The value ( time _ t )(-1) is returned if the calendar time is not available.",[39,1714,1715,1716,1718,1719,1722],{},"If ",[56,1717,1132],{}," is an unsigned type, then the expression ",[56,1720,1721],{},"  ((time_t) (-1)) "," is guaranteed to yield a large positive value.",[39,1724,1725],{},"Therefore, conversion of a negative compile-time constant to an unsigned value with the same or larger width is permitted by this rule. This exception does not apply to conversion of unsigned to signed values, nor does it apply if the resulting value would undergo truncation.",[191,1727,1729],{"id":1728},"risk-assessment","Risk Assessment",[39,1731,1732],{},"Integer truncation errors can lead to buffer overflows and the execution of arbitrary code by an attacker.",[1734,1735,1736,1737,1736,1767],"table",{},"\n  ",[1738,1739,1740,1741,1736],"thead",{},"\n    ",[1742,1743,1744,1745,1744,1749,1744,1752,1744,1755,1744,1758,1744,1761,1744,1764,1740],"tr",{},"\n      ",[1746,1747,1748],"th",{},"Rule",[1746,1750,1751],{},"Severity",[1746,1753,1754],{},"Likelihood",[1746,1756,1757],{},"Detectable",[1746,1759,1760],{},"Repairable",[1746,1762,1763],{},"Priority",[1746,1765,1766],{},"Level",[1768,1769,1740,1770,1736],"tbody",{},[1742,1771,1744,1772,1744,1776,1744,1779,1744,1782,1744,1785,1744,1788,1744,1795,1740],{},[1773,1774,1775],"td",{},"INT31-C",[1773,1777,1778],{},"High",[1773,1780,1781],{},"Probable",[1773,1783,1784],{},"No",[1773,1786,1787],{},"Yes",[1773,1789,1791],{"style":1790},"color: #e74c3c;",[1792,1793,1794],"b",{},"P12",[1773,1796,1797],{"style":1790},[1792,1798,1799],{},"L1",[1801,1802,1804],"h3",{"id":1803},"automated-detection","Automated Detection",[1734,1806,1811,1827],{"className":1807,"style":1810},[1808,1809],"wrapped","relative-table","width: 94.4149%;",[1812,1813,1814,1818,1821,1824],"colgroup",{},[1815,1816],"col",{"style":1817},"width: 8%",[1815,1819],{"style":1820},"width: 24%",[1815,1822],{"style":1823},"width: 22%",[1815,1825],{"style":1826},"width: 45%",[1768,1828,1829,1853,1887,1965,1991,2036,2062,2094,2142,2167,2198,2344,2398,2508,2537,2601],{},[1742,1830,1833,1838,1843,1848],{"className":1831},[1832],"header",[1746,1834,1835],{},[39,1836,1837],{},"Tool",[1746,1839,1840],{},[39,1841,1842],{},"Version",[1746,1844,1845],{},[39,1846,1847],{},"Checker",[1746,1849,1850],{},[39,1851,1852],{},"Description",[1742,1854,1857,1863,1871,1884],{"className":1855},[1856],"odd",[1773,1858,1859],{},[161,1860,1862],{"href":1861},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fastree","Astrée",[1773,1864,1865],{},[1866,1867,1870],"div",{"className":1868},[1869],"content-wrapper","25.10",[1773,1872,1873],{},[39,1874,1875,1878,1881],{},[1356,1876,1877],{},"eof-small-int-comparison",[1879,1880],"br",{},[1356,1882,1883],{},"explicit-cast-overflow",[1773,1885,1886],{},"Partially checked",[1742,1888,1891,1897,1903,1939],{"className":1889},[1890],"even",[1773,1892,1893],{},[161,1894,1896],{"href":1895},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodesonar","CodeSonar",[1773,1898,1899],{},[1866,1900,1902],{"className":1901},[1869],"9.1p0",[1773,1904,1905,1916,1924,1932],{},[39,1906,1907],{},[1356,1908,1909,1910,1912,1913,1915],{},"LANG.CAST.PC.AV",[1879,1911],{},"\nLANG.CAST.PC.CONST2PTR",[1879,1914],{},"\nLANG.CAST.PC.INT",[39,1917,1918],{},[1356,1919,1920,1921,1923],{},"LANG.CAST.COERCE",[1879,1922],{},"\nLANG.CAST.VALUE",[39,1925,1926],{},[1356,1927,1928,1929,1931],{},"ALLOC.SIZE.TRUNC",[1879,1930],{},"\nMISC.MEM.SIZE.TRUNC",[39,1933,1934],{},[1356,1935,1936,1937],{},"LANG.MEM.TBA",[1879,1938],{},[1773,1940,1941,1950,1956,1962],{},[39,1942,1943,1944,1946,1947,1949],{},"Cast: arithmetic type\u002Fvoid pointer",[1879,1945],{},"\nConversion: integer constant to pointer",[1879,1948],{},"\nConversion: pointer\u002Finteger",[39,1951,1952,1953,1955],{},"Coercion alters value",[1879,1954],{},"\nCast alters value",[39,1957,1958,1959,1961],{},"Truncation of allocation size",[1879,1960],{},"\nTruncation of size",[39,1963,1964],{},"Tainted buffer access",[1742,1966,1968,1974,1978,1982],{"className":1967},[1856],[1773,1969,1970],{},[161,1971,1973],{"href":1972},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frose","Compass\u002FROSE",[1773,1975,1976],{},[1879,1977],{},[1773,1979,1980],{},[1879,1981],{},[1773,1983,1984],{},[39,1985,1986,1987,1990],{},"Can detect violations of this rule. However, false warnings may be raised if ",[56,1988,1989],{},"       limits.h      "," is included",[1742,1992,1994,2002,2008,2025],{"className":1993},[1890],[1773,1995,1996],{},[39,1997,1998,1416],{},[161,1999,2001],{"href":2000},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcoverity","Coverity",[1773,2003,2004],{},[1866,2005,2007],{"className":2006},[1869],"2017.07",[1773,2009,2010,2015,2020],{},[39,2011,2012],{},[1356,2013,2014],{},"NEGATIVE_RETURNS",[39,2016,2017],{},[1356,2018,2019],{},"REVERSE_NEGATIVE",[39,2021,2022],{},[1356,2023,2024],{},"MISRA_CAST",[1773,2026,2027,2030,2033],{},[39,2028,2029],{},"Can find array accesses, loop bounds, and other expressions that may contain dangerous implied integer conversions that would result in unexpected behavior",[39,2031,2032],{},"Can find instances where a negativity check occurs after the negative value has been used for something else",[39,2034,2035],{},"Can find instances where an integer expression is implicitly converted to a narrower integer type, where the signedness of an integer value is implicitly converted, or where the type of a complex expression is implicitly converted",[1742,2037,2039,2045,2051,2056],{"className":2038},[1856],[1773,2040,2041],{},[161,2042,2044],{"href":2043},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck","Cppcheck",[1773,2046,2047],{},[1866,2048,2050],{"className":2049},[1869],"2.15",[1773,2052,2053],{},[1356,2054,2055],{},"memsetValueOutOfRange",[1773,2057,2058],{},[39,2059,2060],{},[1879,2061],{},[1742,2063,2065,2071,2079,2090],{"className":2064},[1890],[1773,2066,2067],{},[161,2068,2070],{"href":2069},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck-premium","Cppcheck Premium",[1773,2072,2073],{},[1866,2074,2076],{"className":2075},[1869],[39,2077,2078],{},"24.11.0",[1773,2080,2081,2085],{},[39,2082,2083],{},[1356,2084,2055],{},[39,2086,2087],{},[1356,2088,2089],{},"premium-cert-int31-c",[1773,2091,2092],{},[1879,2093],{},[1742,2095,2097,2103,2111,2138],{"className":2096},[1856],[1773,2098,2099],{},[161,2100,2102],{"href":2101},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fhelix-qac","Helix QAC",[1773,2104,2105],{},[1866,2106,2108],{"className":2107},[1869],[39,2109,2110],{},"2025.2",[1773,2112,2113,2118,2129,2133],{},[39,2114,2115],{},[1356,2116,2117],{},"C2850, C2855, C2890, C2895, C2900, C2905,",[39,2119,2120,701,2123,701,2126],{},[1356,2121,2122],{},"C++2850, C++2855, C++2890,",[1356,2124,2125],{},"C++2895, C++2900,",[1356,2127,2128],{},"C++2905,  C++3000, C++3010",[39,2130,2131],{},[1879,2132],{},[39,2134,2135],{},[1356,2136,2137],{},"DF2851, DF2852, DF2853,  DF2856, DF2857, DF2858, DF2891, DF2892, DF2893, DF2896, DF2897, DF2898, DF2901, DF2902, DF2903, DF2906, DF2907, DF2908",[1773,2139,2140],{},[1879,2141],{},[1742,2143,2145,2151,2156,2163],{"className":2144},[1890],[1773,2146,2147],{},[161,2148,2150],{"href":2149},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fklocwork","Klocwork",[1773,2152,2153],{},[1866,2154,2110],{"className":2155},[1869],[1773,2157,2158],{},[39,2159,2160],{},[1356,2161,2162],{},"PORTING.CAST.SIZE",[1773,2164,2165],{},[1879,2166],{},[1742,2168,2170,2176,2182,2195],{"className":2169},[1856],[1773,2171,2172],{},[161,2173,2175],{"href":2174},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fldra","LDRA tool suite",[1773,2177,2178],{},[1866,2179,2181],{"className":2180},[1869],"9.7.1",[1773,2183,2184],{},[39,2185,2186,701,2189,701,2192],{},[1356,2187,2188],{},"93 S",[1356,2190,2191],{},", 433 S",[1356,2193,2194],{},", 434 S",[1773,2196,2197],{},"Partially implemented",[1742,2199,2201,2207,2214,2294],{"className":2200},[1890],[1773,2202,2203],{},[161,2204,2206],{"href":2205},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fparasoft","Parasoft C\u002FC++test",[1773,2208,2209],{},[1866,2210,2212],{"className":2211},[1869],[39,2213,2110],{},[1773,2215,2216],{},[39,2217,2218,2221,2223,2226,2228,2231,2233,2236,2238,2241,2243,2246,2248,2251,2253,2256,2258,2261,2263,2266,2268,2271,2273,2276,2278,2281,2283],{},[1356,2219,2220],{},"CERT_C-INT31-a",[1879,2222],{},[1356,2224,2225],{},"CERT_C-INT31-b",[1879,2227],{},[1356,2229,2230],{},"CERT_C-INT31-c",[1879,2232],{},[1356,2234,2235],{},"CERT_C-INT31-d",[1879,2237],{},[1356,2239,2240],{},"CERT_C-INT31-e",[1879,2242],{},[1356,2244,2245],{},"CERT_C-INT31-f",[1879,2247],{},[1356,2249,2250],{},"CERT_C-INT31-g",[1879,2252],{},[1356,2254,2255],{},"CERT_C-INT31-h",[1879,2257],{},[1356,2259,2260],{},"CERT_C-INT31-i",[1879,2262],{},[1356,2264,2265],{},"CERT_C-INT31-j",[1879,2267],{},[1356,2269,2270],{},"CERT_C-INT31-k",[1879,2272],{},[1356,2274,2275],{},"CERT_C-INT31-l",[1879,2277],{},[1356,2279,2280],{},"CERT_C-INT31-m",[1879,2282],{},[1356,2284,2285,2286,2288,2289,2291,2292],{},"CERT_C-INT31-n",[1879,2287],{},"\nCERT_C-INT31-o",[1879,2290],{},"\nCERT_C-INT31-p",[1879,2293],{},[1773,2295,2296],{},[39,2297,2298,2299,2301,2302,2304,2305,2307,2308,2310,2311,2313,2314,2316,2317,2319,2320,2322,2323,2325,2326,2328,2329,2331,2332,2334,2335,2337,2338,2340,2341,2343],{},"An expression of essentially Boolean type should always be used where an operand is interpreted as a Boolean value",[1879,2300],{},"\nAn operand of essentially Boolean type should not be used where an operand is interpreted as a numeric value",[1879,2303],{},"\nAn operand of essentially character type should not be used where an operand is interpreted as a numeric value",[1879,2306],{},"\nAn operand of essentially enum type should not be used in an arithmetic operation",[1879,2309],{},"\nShift and bitwise operations should not be performed on operands of essentially signed or enum type",[1879,2312],{},"\nAn operand of essentially signed or enum type should not be used as the right hand operand to the bitwise shifting operator",[1879,2315],{},"\nAn operand of essentially unsigned type should not be used as the operand to the unary minus operator",[1879,2318],{},"\nThe value of an expression shall not be assigned to an object with a narrower essential type",[1879,2321],{},"\nThe value of an expression shall not be assigned to an object of a different essential type category",[1879,2324],{},"\nBoth operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category",[1879,2327],{},"\nThe second and third operands of the ternary operator shall have the same essential type category",[1879,2330],{},"\nThe value of a composite expression shall not be assigned to an object with wider essential type",[1879,2333],{},"\nIf a composite expression is used as one operand of an operator in which the usual arithmetic conversions are performed then the other operand shall not have wider essential type",[1879,2336],{},"\nIf a composite expression is used as one (second or third) operand of a conditional operator then the other operand shall not have wider essential type",[1879,2339],{},"\nAvoid data loss when converting between integer types",[1879,2342],{},"\nAvoid value change when converting between integer types",[1742,2345,2347,2353,2361,2373],{"className":2346},[1856],[1773,2348,2349],{},[161,2350,2352],{"href":2351},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpolyspace-bug-finder","Polyspace Bug Finder",[1773,2354,2355],{},[1866,2356,2358],{"className":2357},[1869],[39,2359,2360],{},"R2025b",[1773,2362,2363,2369],{},[39,2364,2365],{},[161,2366,2368],{"href":2367},"https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fbugfinder\u002Fref\u002Fcertcruleint31c.html","CERT C: Rule INT31-C",[39,2370,2371],{},[1879,2372],{},[1773,2374,2375,2378,2395],{},[39,2376,2377],{},"Checks for:",[43,2379,2380,2383,2386,2389,2392],{},[46,2381,2382],{},"Integer conversion overflow",[46,2384,2385],{},"Call to memset with unintended value",[46,2387,2388],{},"Sign change integer conversion overflow",[46,2390,2391],{},"Tainted sign change conversion",[46,2393,2394],{},"Unsigned integer conversion overflow",[39,2396,2397],{},"Rule partially covered.",[1742,2399,2401,2407,2415,2504],{"className":2400},[1890],[1773,2402,2403],{},[161,2404,2406],{"href":2405},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpvs-studio","PVS-Studio",[1773,2408,2409],{},[1866,2410,2412],{"className":2411},[1869],[39,2413,2414],{},"7.42",[1773,2416,2417,2423,2424,2423,2430,2423,2436,2423,2442,2423,2448,2423,2454,2423,2460,2423,2466,2423,2472,2423,2478,2423,2484,2423,2490,2423,2496],{},[161,2418,2420],{"href":2419},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv562\u002F",[1356,2421,2422],{},"V562"," , ",[161,2425,2427],{"href":2426},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv569\u002F",[1356,2428,2429],{},"V569",[161,2431,2433],{"href":2432},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv642\u002F",[1356,2434,2435],{},"V642",[1356,2437,2438],{},[161,2439,2441],{"href":2440},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv676\u002F","V676",[1356,2443,2444],{},[161,2445,2447],{"href":2446},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv716\u002F","V716",[1356,2449,2450],{},[161,2451,2453],{"href":2452},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv721\u002F","V721",[161,2455,2457],{"href":2456},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv724\u002F",[1356,2458,2459],{},"V724",[1356,2461,2462],{},[161,2463,2465],{"href":2464},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv732\u002F","V732",[1356,2467,2468],{},[161,2469,2471],{"href":2470},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv739\u002F","V739",[1356,2473,2474],{},[161,2475,2477],{"href":2476},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv784\u002F","V784",[1356,2479,2480],{},[161,2481,2483],{"href":2482},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv793\u002F","V793",[1356,2485,2486],{},[161,2487,2489],{"href":2488},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv1019\u002F","V1019",[1356,2491,2492],{},[161,2493,2495],{"href":2494},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv1029\u002F","V1029",[1356,2497,2498,2502],{},[161,2499,2501],{"href":2500},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv1046\u002F","V1046",[1879,2503],{},[1773,2505,2506],{},[1879,2507],{},[1742,2509,2511,2517,2527,2535],{"className":2510},[1856],[1773,2512,2513],{},[161,2514,2516],{"href":2515},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frulechecker","RuleChecker",[1773,2518,2519],{},[1866,2520,2522],{"className":2521},[1869],[1866,2523,2525],{"className":2524},[1869],[39,2526,1870],{},[1773,2528,2529,2531,2533],{},[1356,2530,1877],{},[1879,2532],{},[1356,2534,1883],{},[1773,2536,1886],{},[1742,2538,2540,2546,2565,2598],{"className":2539},[1890],[1773,2541,2542],{},[161,2543,2545],{"href":2544},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsecurity-reviewer-static-reviewer","Security Reviewer - Static Reviewer",[1773,2547,2548],{},[1866,2549,2551,2555,2561],{"className":2550},[1869],[39,2552,2553],{},[1879,2554],{},[1866,2556,2558],{"className":2557},[1869],[39,2559,2560],{},"6.02",[39,2562,2563],{},[1879,2564],{},[1773,2566,2567,2570,2572,2575,2577,2580,2582,2585,2587,2590,2592],{},[1356,2568,2569],{},"ClRVNU",[1879,2571],{},[1356,2573,2574],{},"CmAD",[1879,2576],{},[1356,2578,2579],{},"CmemleakOnRealloc",[1879,2581],{},[1356,2583,2584],{},"CmissingReturn",[1879,2586],{},[1356,2588,2589],{},"CMR",[1879,2591],{},[1356,2593,2594,2595,2597],{},"CmVOOR",[1879,2596],{},"\nCnAS",[1773,2599,2600],{},"Fully implemented",[1742,2602,2604,2610,2618,2623],{"className":2603},[1856],[1773,2605,2606],{},[161,2607,2609],{"href":2608},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Ftrustinsoft-analyzer","TrustInSoft Analyzer",[1773,2611,2612],{},[1866,2613,2615],{"className":2614},[1869],[39,2616,2617],{},"1.38",[1773,2619,2620],{},[1356,2621,2622],{},"signed_downcast",[1773,2624,2625],{},"Exhaustively verified.",[39,2627,2628,2629,2633],{},"* Coverity Prevent cannot discover all violations of this rule, so further ",[161,2630,2632],{"href":2631},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-verification","verification"," is necessary.",[1801,2635,2637],{"id":2636},"related-vulnerabilities","Related Vulnerabilities",[39,2639,2640,2645,2646,2648,2649,2654,2655,2657],{},[161,2641,2644],{"href":2642,"rel":2643},"http:\u002F\u002Fweb.nvd.nist.gov\u002Fview\u002Fvuln\u002Fdetail?vulnId=CVE-2009-1376",[1686],"CVE-2009-1376"," results from a violation of this rule. In version 2.5.5 of Pidgin, a ",[56,2647,68],{}," offset is set to the value of a 64-bit unsigned integer, which can lead to truncation [ ",[161,2650,2653],{"href":2651,"rel":2652},"http:\u002F\u002Fxorl.wordpress.com\u002F2009\u002F05\u002F28\u002Fcve-2009-1376-pidgin-msn-slp-integer-truncation\u002F",[1686],"xorl 2009"," ] on platforms where a ",[56,2656,68],{}," is implemented as a 32-bit unsigned integer. An attacker can execute arbitrary code by carefully choosing this value and causing a buffer overflow.",[39,2659,2660,2661,2665,2666,1165],{},"Search for ",[161,2662,2664],{"href":2663},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-vulnerabi","vulnerabilities"," resulting from the violation of this rule on the ",[161,2667,2670],{"href":2668,"rel":2669},"https:\u002F\u002Fwww.kb.cert.org\u002Fvulnotes\u002Fbymetric?searchview&query=FIELD+KEYWORDS+contains+INT31-C",[1686],"CERT website",[191,2672,2674],{"id":2673},"related-guidelines","Related Guidelines",[39,2676,2677,2681],{},[161,2678,2680],{"href":2679},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-RelatedGuidelines","Key here"," (explains table format and definitions)",[1734,2683,2684,2694],{},[1738,2685,2686],{},[1742,2687,2688,2690,2692],{},[1746,2689],{},[1746,2691],{},[1746,2693],{},[1768,2695,2696,2707,2721,2733,2747,2762,2775,2788,2799,2810,2821,2832,2852,2870,2888],{},[1742,2697,2698,2701,2704],{},[1773,2699,2700],{},"Taxonomy",[1773,2702,2703],{},"Taxonomy item",[1773,2705,2706],{},"Relationship",[1742,2708,2709,2714,2718],{},[1773,2710,2711],{},[161,2712,2713],{"href":17},"CERT C",[1773,2715,2716],{},[161,2717,1565],{"href":1564},[1773,2719,2720],{},"Prior to 2018-01-12: CERT: Unspecified Relationship",[1742,2722,2723,2727,2731],{},[1773,2724,2725],{},[161,2726,2713],{"href":17},[1773,2728,2729],{},[161,2730,1349],{"href":1348},[1773,2732,2720],{},[1742,2734,2735,2739,2745],{},[1773,2736,2737],{},[161,2738,2713],{"href":17},[1773,2740,2741],{},[161,2742,2744],{"href":2743},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio34-c","FIO34-C. Distinguish between characters read from a file and EOF or WEOF",[1773,2746,2720],{},[1742,2748,2749,2754,2760],{},[1773,2750,2751],{},[161,2752,2753],{"href":23},"CERT Oracle Secure Coding Standard for Java",[1773,2755,2756],{},[161,2757,2759],{"href":2758},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum12-j","NUM12-J. Ensure conversions of numeric types to narrower types do not result in lost or misinterpreted data",[1773,2761,2720],{},[1742,2763,2764,2770,2773],{},[1773,2765,2766],{},[161,2767,2769],{"href":2768},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTR24772-2013","ISO\u002FIEC TR 24772:2013",[1773,2771,2772],{},"Numeric Conversion Errors [FLC]",[1773,2774,2720],{},[1742,2776,2777,2783,2786],{},[1773,2778,2779],{},[161,2780,2782],{"href":2781},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-MISRA12","MISRA C:2012",[1773,2784,2785],{},"Rule 10.1 (required)",[1773,2787,2720],{},[1742,2789,2790,2794,2797],{},[1773,2791,2792],{},[161,2793,2782],{"href":2781},[1773,2795,2796],{},"Rule 10.3 (required)",[1773,2798,2720],{},[1742,2800,2801,2805,2808],{},[1773,2802,2803],{},[161,2804,2782],{"href":2781},[1773,2806,2807],{},"Rule 10.4 (required)",[1773,2809,2720],{},[1742,2811,2812,2816,2819],{},[1773,2813,2814],{},[161,2815,2782],{"href":2781},[1773,2817,2818],{},"Rule 10.6 (required)",[1773,2820,2720],{},[1742,2822,2823,2827,2830],{},[1773,2824,2825],{},[161,2826,2782],{"href":2781},[1773,2828,2829],{},"Rule 10.7 (required)",[1773,2831,2720],{},[1742,2833,2834,2841,2849],{},[1773,2835,2836],{},[161,2837,2840],{"href":2838,"rel":2839},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html",[1686],"CWE 2.11",[1773,2842,2843,2848],{},[161,2844,2847],{"href":2845,"rel":2846},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F192.html",[1686],"CWE-192"," , Integer Coercion Error",[1773,2850,2851],{},"2017-07-17: CERT: Exact",[1742,2853,2854,2859,2867],{},[1773,2855,2856],{},[161,2857,2840],{"href":2838,"rel":2858},[1686],[1773,2860,2861,2866],{},[161,2862,2865],{"href":2863,"rel":2864},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F197.html",[1686],"CWE-197"," , Numeric Truncation Error",[1773,2868,2869],{},"2017-06-14: CERT: Rule subset of CWE",[1742,2871,2872,2877,2885],{},[1773,2873,2874],{},[161,2875,2840],{"href":2838,"rel":2876},[1686],[1773,2878,2879,2884],{},[161,2880,2883],{"href":2881,"rel":2882},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F681.html",[1686],"CWE-681"," , Incorrect Conversion between Numeric Types",[1773,2886,2887],{},"2017-07-17: CERT: Rule subset of CWE",[1742,2889,2890,2896,2903],{},[1773,2891,2892],{},[161,2893,2840],{"href":2894,"rel":2895},"http:\u002F\u002Fcwe.mitre.org\u002F",[1686],[1773,2897,2898],{},[161,2899,2902],{"href":2900,"rel":2901},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html704.html",[1686],"CWE-704",[1773,2904,2887],{},[191,2906,2908],{"id":2907},"cert-cwe-mapping-notes","CERT-CWE Mapping Notes",[39,2910,2911,2914],{},[161,2912,2680],{"href":2913},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-CERT-CWEMappingNotes"," for mapping notes",[1801,2916,2918],{"id":2917},"cwe-195-and-int31-c","CWE-195 and INT31-C",[39,2920,2921],{},"CWE-195 = Subset( CWE-192)",[39,2923,2924],{},"INT31-C = Union( CWE-195, list) where list =",[43,2926,2927],{},[46,2928,2929],{},"Unsigned-to-signed conversion error",[43,2931,2932],{},[46,2933,2934],{},"Truncation that does not change sign",[1801,2936,2938],{"id":2937},"cwe-197-and-int31-c","CWE-197 and INT31-C",[39,2940,2941],{},"See CWE-197 and FLP34-C",[1801,2943,2945],{"id":2944},"cwe-194-and-int31-c","CWE-194 and INT31-C",[39,2947,2948],{},"CWE-194 = Subset( CWE-192)",[39,2950,2951],{},"INT31-C = Union( CWE-194, list) where list =",[43,2953,2954],{},[46,2955,2956],{},"Integer conversion that truncates significant data, but without loss of sign",[1801,2958,2960],{"id":2959},"cwe-20-and-int31-c","CWE-20 and INT31-C",[39,2962,2963],{},"See CWE-20 and ERR34-C",[1801,2965,2967],{"id":2966},"cwe-704-and-int31-c","CWE-704 and INT31-C",[39,2969,2970],{},"CWE-704 = Union( INT31-C, list) where list =",[43,2972,2973],{},[46,2974,2975],{},"Improper type casts where either the source or target type is not an integral type",[1801,2977,2979],{"id":2978},"cwe-681-and-int31-c","CWE-681 and INT31-C",[39,2981,2982],{},"CWE-681 = Union( INT31-C, FLP34-C)",[39,2984,2985],{},"Intersection( INT31-C, FLP34-C) = Ø",[191,2987,2989],{"id":2988},"bibliography","Bibliography",[1734,2991,2993],{"className":2992},[1808],[1768,2994,2995,3009,3028,3038,3050,3071,3083],{},[1742,2996,2998,3006],{"className":2997},[1856],[1773,2999,3000,3001,3005],{},"[ ",[161,3002,3004],{"href":3003},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Dowd06","Dowd 2006"," ]",[1773,3007,3008],{},"Chapter 6, \"C Language Issues\" (\"Type Conversions,\" pp. 223–270)",[1742,3010,3012,3017],{"className":3011},[1890],[1773,3013,3000,3014,3005],{},[161,3015,164],{"href":3016},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IEC9899-2024",[1773,3018,3019,3022,3025],{},[39,3020,3021],{},"6.3.1.3, \"Signed and Unsigned Integers\"",[39,3023,3024],{},"6.2.5, \"Types\"",[39,3026,3027],{},"7.29.2.5, \"The time function\"",[1742,3029,3031,3035],{"className":3030},[1856],[1773,3032,3000,3033,3005],{},[161,3034,1692],{"href":1691},[1773,3036,3037],{},"Section 6.2.6.2, \"Integer Types\"",[1742,3039,3041,3047],{"className":3040},[1890],[1773,3042,3000,3043,3005],{},[161,3044,3046],{"href":3045},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Seacord2013","Seacord 2013b",[1773,3048,3049],{},"Chapter 5, \"Integer Security\"",[1742,3051,3053,3059],{"className":3052},[1856],[1773,3054,3000,3055,3005],{},[161,3056,3058],{"href":3057},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Viega05","Viega 2005",[1773,3060,3061,3062,3064,3065,3067,3068,3070],{},"Section 5.2.9, \"Truncation Error\"",[1879,3063],{},"\nSection 5.2.10, \"Sign Extension Error\"",[1879,3066],{},"\nSection 5.2.11, \"Signed to Unsigned Conversion Error\"",[1879,3069],{},"\nSection 5.2.12, \"Unsigned to Signed Conversion Error\"",[1742,3072,3074,3080],{"className":3073},[1890],[1773,3075,3000,3076,3005],{},[161,3077,3079],{"href":3078},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Warren02","Warren 2002",[1773,3081,3082],{},"Chapter 2, \"Basics\"",[1742,3084,3086,3091],{"className":3085},[1856],[1773,3087,3000,3088,3005],{},[161,3089,2653],{"href":3090},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-xorl2009",[1773,3092,3093],{},[161,3094,3095],{"href":2651},"\"CVE-2009-1376: Pidgin MSN SLP Integer Truncation\"",[3097,3098],"hr",{},[39,3100,3101,701,3108,701,3114],{},[161,3102,3104],{"href":3103},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint30-c",[3105,3106],"img",{"src":3107},"\u002Fattachments\u002F87152044\u002F88034188.png",[161,3109,3111],{"href":3110},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002F",[3105,3112],{"src":3113},"\u002Fattachments\u002F87152044\u002F88034190.png",[161,3115,3117],{"href":3116},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint32-c",[3105,3118],{"src":3119},"\u002Fattachments\u002F87152044\u002F88034189.png",[3121,3122,3123],"style",{},"html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}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 .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 .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 .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}",{"title":211,"searchDepth":229,"depth":229,"links":3125},[3126,3127,3128,3129,3130,3131,3132,3133,3134,3136,3138,3140,3141,3142,3146,3147,3155],{"id":193,"depth":229,"text":194},{"id":323,"depth":229,"text":324},{"id":450,"depth":229,"text":451},{"id":553,"depth":229,"text":554},{"id":712,"depth":229,"text":713},{"id":796,"depth":229,"text":797},{"id":928,"depth":229,"text":929},{"id":1009,"depth":229,"text":1010},{"id":1128,"depth":229,"text":3135},"Noncompliant Code Example ( time_t Return Value)",{"id":1249,"depth":229,"text":3137},"Compliant Solution ( time_t Return Value)",{"id":1361,"depth":229,"text":3139},"Noncompliant Code Example ( memset() )",{"id":1462,"depth":229,"text":1463},{"id":1536,"depth":229,"text":1537},{"id":1728,"depth":229,"text":1729,"children":3143},[3144,3145],{"id":1803,"depth":236,"text":1804},{"id":2636,"depth":236,"text":2637},{"id":2673,"depth":229,"text":2674},{"id":2907,"depth":229,"text":2908,"children":3148},[3149,3150,3151,3152,3153,3154],{"id":2917,"depth":236,"text":2918},{"id":2937,"depth":236,"text":2938},{"id":2944,"depth":236,"text":2945},{"id":2959,"depth":236,"text":2960},{"id":2966,"depth":236,"text":2967},{"id":2978,"depth":236,"text":2979},{"id":2988,"depth":229,"text":2989},"md",{"tags":3158},[3159,3160,3161,3162,3163,3164,3165,3166,3167,3168,3169,109,3170,3171,1536,3172],"klocwork","in-cpp","ptc","fortify","conversion","rule","cwe-192","compass\u002Frose","cwe-197","sidebar","cwe-681","coverity","rose-partial","android-applicable","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint31-c",{"title":30,"description":41},"4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F3.int31-c","yjWG47NRP0K6-WVXq-o7Q58fnz11qQW63C_PzYLfVQo",[3178,3181],{"title":3179,"path":3103,"stem":3180,"children":-1},"INT30-C. Ensure that unsigned integer operations do not wrap","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F2.int30-c",{"title":3182,"path":3116,"stem":3183,"children":-1},"INT32-C. Ensure that operations on signed integers do not result in overflow","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F4.int32-c",[3185],{"title":3186,"path":3187,"stem":3188,"children":3189},"SEI CERT C Coding Standard","\u002Fsei-cert-c-coding-standard","4.sei-cert-c-coding-standard\u002F01.index",[3190,3191,3263,3842,4112,4126,4130,4134,4138,4949],{"title":3186,"path":3187,"stem":3188},{"title":3192,"path":3193,"stem":3194,"children":3195},"Front Matter","\u002Fsei-cert-c-coding-standard\u002Ffront-matter","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F1.index",[3196,3197],{"title":3192,"path":3193,"stem":3194},{"title":3198,"path":3199,"stem":3200,"children":3201},"Introduction","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.index",[3202,3203,3207,3211,3215,3219,3223,3227,3231,3235,3239,3243,3247,3251,3255,3259],{"title":3198,"path":3199,"stem":3200},{"title":3204,"path":3205,"stem":3206},"Scope","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fscope","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.scope",{"title":3208,"path":3209,"stem":3210},"Audience","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Faudience","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F02.audience",{"title":3212,"path":3213,"stem":3214},"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":3216,"path":3217,"stem":3218},"History","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhistory","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F04.history",{"title":3220,"path":3221,"stem":3222},"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":3224,"path":3225,"stem":3226},"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":3228,"path":3229,"stem":3230},"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":3232,"path":3233,"stem":3234},"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":3236,"path":3237,"stem":3238},"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":3240,"path":3241,"stem":3242},"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":3244,"path":3245,"stem":3246},"Usage","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fusage","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F11.usage",{"title":3248,"path":3249,"stem":3250},"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":3252,"path":3253,"stem":3254},"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":3256,"path":3257,"stem":3258},"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":3260,"path":3261,"stem":3262},"Acknowledgments","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Facknowledgments","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F15.acknowledgments",{"title":3264,"path":3265,"stem":3266,"children":3267},"Rules","\u002Fsei-cert-c-coding-standard\u002Frules","4.sei-cert-c-coding-standard\u002F03.rules\u002F01.index",[3268,3269,3273,3303,3333,3395,3433,3459,3481,3547,3573,3629,3654,3684,3694,3732,3802,3820],{"title":3264,"path":3265,"stem":3266},{"title":3270,"path":3271,"stem":3272},"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":3274,"path":3275,"stem":3276,"children":3277},"Arrays (ARR)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F1.index",[3278,3279,3283,3287,3291,3295,3299],{"title":3274,"path":3275,"stem":3276},{"title":3280,"path":3281,"stem":3282},"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":3284,"path":3285,"stem":3286},"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":3288,"path":3289,"stem":3290},"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":3292,"path":3293,"stem":3294},"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":3296,"path":3297,"stem":3298},"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":3300,"path":3301,"stem":3302},"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":3304,"path":3305,"stem":3306,"children":3307},"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",[3308,3309,3313,3317,3321,3325,3329],{"title":3304,"path":3305,"stem":3306},{"title":3310,"path":3311,"stem":3312},"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":3314,"path":3315,"stem":3316},"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":3318,"path":3319,"stem":3320},"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":3322,"path":3323,"stem":3324},"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":3326,"path":3327,"stem":3328},"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":3330,"path":3331,"stem":3332},"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":3334,"path":3335,"stem":3336,"children":3337},"Concurrency (CON)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F01.index",[3338,3339,3343,3347,3351,3355,3359,3363,3367,3371,3375,3379,3383,3387,3391],{"title":3334,"path":3335,"stem":3336},{"title":3340,"path":3341,"stem":3342},"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":3344,"path":3345,"stem":3346},"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":3348,"path":3349,"stem":3350},"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":3352,"path":3353,"stem":3354},"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":3356,"path":3357,"stem":3358},"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":3360,"path":3361,"stem":3362},"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":3364,"path":3365,"stem":3366},"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":3368,"path":3369,"stem":3370},"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":3372,"path":3373,"stem":3374},"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":3376,"path":3377,"stem":3378},"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":3380,"path":3381,"stem":3382},"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":3384,"path":3385,"stem":3386},"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":3388,"path":3389,"stem":3390},"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":3392,"path":3393,"stem":3394},"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":3396,"path":3397,"stem":3398,"children":3399},"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",[3400,3401,3405,3409,3413,3417,3421,3425,3429],{"title":3396,"path":3397,"stem":3398},{"title":3402,"path":3403,"stem":3404},"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":3406,"path":3407,"stem":3408},"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":3410,"path":3411,"stem":3412},"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":3414,"path":3415,"stem":3416},"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":3418,"path":3419,"stem":3420},"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":3422,"path":3423,"stem":3424},"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":3426,"path":3427,"stem":3428},"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":3430,"path":3431,"stem":3432},"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":3434,"path":3435,"stem":3436,"children":3437},"Environment (ENV)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F1.index",[3438,3439,3443,3447,3451,3455],{"title":3434,"path":3435,"stem":3436},{"title":3440,"path":3441,"stem":3442},"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":3444,"path":3445,"stem":3446},"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":3448,"path":3449,"stem":3450},"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":3452,"path":3453,"stem":3454},"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":3456,"path":3457,"stem":3458},"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":3460,"path":3461,"stem":3462,"children":3463},"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",[3464,3465,3469,3473,3477],{"title":3460,"path":3461,"stem":3462},{"title":3466,"path":3467,"stem":3468},"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":3470,"path":3471,"stem":3472},"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":3474,"path":3475,"stem":3476},"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":3478,"path":3479,"stem":3480},"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":3482,"path":3483,"stem":3484,"children":3485},"Expressions (EXP)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F01.index",[3486,3487,3491,3495,3499,3503,3507,3511,3515,3519,3523,3527,3531,3535,3539,3543],{"title":3482,"path":3483,"stem":3484},{"title":3488,"path":3489,"stem":3490},"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":3492,"path":3493,"stem":3494},"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":3496,"path":3497,"stem":3498},"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":3500,"path":3501,"stem":3502},"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":3504,"path":3505,"stem":3506},"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":3508,"path":3509,"stem":3510},"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":3512,"path":3513,"stem":3514},"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":3516,"path":3517,"stem":3518},"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":3520,"path":3521,"stem":3522},"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":3524,"path":3525,"stem":3526},"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":3528,"path":3529,"stem":3530},"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":3532,"path":3533,"stem":3534},"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":3536,"path":3537,"stem":3538},"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":3540,"path":3541,"stem":3542},"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":3544,"path":3545,"stem":3546},"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":3548,"path":3549,"stem":3550,"children":3551},"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",[3552,3553,3557,3561,3565,3569],{"title":3548,"path":3549,"stem":3550},{"title":3554,"path":3555,"stem":3556},"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":3558,"path":3559,"stem":3560},"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":3562,"path":3563,"stem":3564},"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":3566,"path":3567,"stem":3568},"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":3570,"path":3571,"stem":3572},"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":3574,"path":3575,"stem":3576,"children":3577},"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",[3578,3579,3583,3587,3589,3593,3597,3601,3605,3609,3613,3617,3621,3625],{"title":3574,"path":3575,"stem":3576},{"title":3580,"path":3581,"stem":3582},"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":3584,"path":3585,"stem":3586},"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":2744,"path":2743,"stem":3588},"4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F04.fio34-c",{"title":3590,"path":3591,"stem":3592},"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":3594,"path":3595,"stem":3596},"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":3598,"path":3599,"stem":3600},"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":3602,"path":3603,"stem":3604},"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":3606,"path":3607,"stem":3608},"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":3610,"path":3611,"stem":3612},"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":3614,"path":3615,"stem":3616},"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":3618,"path":3619,"stem":3620},"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":3622,"path":3623,"stem":3624},"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":3626,"path":3627,"stem":3628},"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":3630,"path":3631,"stem":3632,"children":3633},"Integers (INT)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F1.index",[3634,3635,3636,3637,3638,3642,3646,3650],{"title":3630,"path":3631,"stem":3632},{"title":3179,"path":3103,"stem":3180},{"title":30,"path":3173,"stem":3175},{"title":3182,"path":3116,"stem":3183},{"title":3639,"path":3640,"stem":3641},"INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint33-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F5.int33-c",{"title":3643,"path":3644,"stem":3645},"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","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F6.int34-c",{"title":3647,"path":3648,"stem":3649},"INT35-C. Use correct integer precisions","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint35-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F7.int35-c",{"title":3651,"path":3652,"stem":3653},"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":3655,"path":3656,"stem":3657,"children":3658},"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",[3659,3660,3664,3668,3672,3676,3680],{"title":3655,"path":3656,"stem":3657},{"title":3661,"path":3662,"stem":3663},"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":3665,"path":3666,"stem":3667},"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":3669,"path":3670,"stem":3671},"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":3673,"path":3674,"stem":3675},"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":3677,"path":3678,"stem":3679},"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":3681,"path":3682,"stem":3683},"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":3685,"path":3686,"stem":3687,"children":3688},"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",[3689,3690],{"title":3685,"path":3686,"stem":3687},{"title":3691,"path":3692,"stem":3693},"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":3695,"path":3696,"stem":3697,"children":3698},"Miscellaneous (MSC)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F1.index",[3699,3700,3704,3708,3712,3716,3720,3724,3728],{"title":3695,"path":3696,"stem":3697},{"title":3701,"path":3702,"stem":3703},"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":3705,"path":3706,"stem":3707},"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":3709,"path":3710,"stem":3711},"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":3713,"path":3714,"stem":3715},"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":3717,"path":3718,"stem":3719},"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":3721,"path":3722,"stem":3723},"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":3725,"path":3726,"stem":3727},"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":3729,"path":3730,"stem":3731},"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":3733,"path":3734,"stem":3735,"children":3736},"POSIX (POS)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F01.index",[3737,3738,3742,3746,3750,3754,3758,3762,3766,3770,3774,3778,3782,3786,3790,3794,3798],{"title":3733,"path":3734,"stem":3735},{"title":3739,"path":3740,"stem":3741},"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":3743,"path":3744,"stem":3745},"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":3747,"path":3748,"stem":3749},"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":3751,"path":3752,"stem":3753},"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":3755,"path":3756,"stem":3757},"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":3759,"path":3760,"stem":3761},"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":3763,"path":3764,"stem":3765},"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":3767,"path":3768,"stem":3769},"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":3771,"path":3772,"stem":3773},"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":3775,"path":3776,"stem":3777},"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":3779,"path":3780,"stem":3781},"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":3783,"path":3784,"stem":3785},"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":3787,"path":3788,"stem":3789},"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":3791,"path":3792,"stem":3793},"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":3795,"path":3796,"stem":3797},"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":3799,"path":3800,"stem":3801},"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":3803,"path":3804,"stem":3805,"children":3806},"Preprocessor (PRE)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F1.index",[3807,3808,3812,3816],{"title":3803,"path":3804,"stem":3805},{"title":3809,"path":3810,"stem":3811},"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":3813,"path":3814,"stem":3815},"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":3817,"path":3818,"stem":3819},"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":3821,"path":3822,"stem":3823,"children":3824},"Signals (SIG)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F1.index",[3825,3826,3830,3834,3838],{"title":3821,"path":3822,"stem":3823},{"title":3827,"path":3828,"stem":3829},"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":3831,"path":3832,"stem":3833},"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":3835,"path":3836,"stem":3837},"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":3839,"path":3840,"stem":3841},"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":3843,"path":3844,"stem":3845,"children":3846},"Back Matter","\u002Fsei-cert-c-coding-standard\u002Fback-matter","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F1.index",[3847,3848,3852,3856,3860,3864,4051,4108],{"title":3843,"path":3844,"stem":3845},{"title":3849,"path":3850,"stem":3851},"AA. Bibliography","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F2.aa-bibliography",{"title":3853,"path":3854,"stem":3855},"BB. Definitions","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F3.bb-definitions",{"title":3857,"path":3858,"stem":3859},"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":3861,"path":3862,"stem":3863},"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":3865,"path":3866,"stem":3867,"children":3868},"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",[3869,3870,3872,3876,3880,3884,3888,3892,3896,3900,3904,3908,3912,3914,3918,3920,3924,3926,3928,3932,3936,3940,3944,3948,3952,3956,3960,3962,3966,3968,3972,3975,3979,3982,3986,3990,3994,3996,4000,4002,4006,4009,4013,4017,4019,4023,4025,4029,4033,4037,4041,4045,4047],{"title":3865,"path":3866,"stem":3867},{"title":1862,"path":1861,"stem":3871},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F02.astree",{"title":3873,"path":3874,"stem":3875},"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":3877,"path":3878,"stem":3879},"Axivion Bauhaus Suite","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Faxivion-bauhaus-suite","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F04.axivion-bauhaus-suite",{"title":3881,"path":3882,"stem":3883},"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":3885,"path":3886,"stem":3887},"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":3889,"path":3890,"stem":3891},"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":3893,"path":3894,"stem":3895},"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":3897,"path":3898,"stem":3899},"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":3901,"path":3902,"stem":3903},"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":3905,"path":3906,"stem":3907},"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":3909,"path":3910,"stem":3911},"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":1896,"path":1895,"stem":3913},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F13.codesonar",{"title":3915,"path":3916,"stem":3917},"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":2001,"path":2000,"stem":3919},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F15.coverity",{"title":3921,"path":3922,"stem":3923},"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":2044,"path":2043,"stem":3925},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F17.cppcheck",{"title":2070,"path":2069,"stem":3927},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F18.cppcheck-premium",{"title":3929,"path":3930,"stem":3931},"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":3933,"path":3934,"stem":3935},"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":3937,"path":3938,"stem":3939},"ECLAIR","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Feclair","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F21.eclair",{"title":3941,"path":3942,"stem":3943},"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":3945,"path":3946,"stem":3947},"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":3949,"path":3950,"stem":3951},"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":3953,"path":3954,"stem":3955},"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":3957,"path":3958,"stem":3959},"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":2102,"path":2101,"stem":3961},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F27.helix-qac",{"title":3963,"path":3964,"stem":3965},"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":2150,"path":2149,"stem":3967},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F29.klocwork",{"title":3969,"path":3970,"stem":3971},"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":3973,"path":2174,"stem":3974},"LDRA","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F31.ldra",{"title":3976,"path":3977,"stem":3978},"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":3980,"path":2205,"stem":3981},"Parasoft","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F33.parasoft",{"title":3983,"path":3984,"stem":3985},"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":3987,"path":3988,"stem":3989},"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":3991,"path":3992,"stem":3993},"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":2352,"path":2351,"stem":3995},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F37.polyspace-bug-finder",{"title":3997,"path":3998,"stem":3999},"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":2406,"path":2405,"stem":4001},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F39.pvs-studio",{"title":4003,"path":4004,"stem":4005},"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":4007,"path":1972,"stem":4008},"Rose","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F41.rose",{"title":4010,"path":4011,"stem":4012},"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":4014,"path":4015,"stem":4016},"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":2516,"path":2515,"stem":4018},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F44.rulechecker",{"title":4020,"path":4021,"stem":4022},"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":2545,"path":2544,"stem":4024},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F46.security-reviewer-static-reviewer",{"title":4026,"path":4027,"stem":4028},"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":4030,"path":4031,"stem":4032},"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":4034,"path":4035,"stem":4036},"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":4038,"path":4039,"stem":4040},"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":4042,"path":4043,"stem":4044},"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":2609,"path":2608,"stem":4046},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F52.trustinsoft-analyzer",{"title":4048,"path":4049,"stem":4050},"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":4052,"path":4053,"stem":4054,"children":4055},"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",[4056,4057,4061,4065,4069,4073,4077,4081,4085,4089,4092,4096,4100,4104],{"title":4052,"path":4053,"stem":4054},{"title":4058,"path":4059,"stem":4060},"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":4062,"path":4063,"stem":4064},"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":4066,"path":4067,"stem":4068},"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":4070,"path":4071,"stem":4072},"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":4074,"path":4075,"stem":4076},"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":4078,"path":4079,"stem":4080},"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":4082,"path":4083,"stem":4084},"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":4086,"path":4087,"stem":4088},"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":4086,"path":4090,"stem":4091},"\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":4093,"path":4094,"stem":4095},"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":4097,"path":4098,"stem":4099},"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":4101,"path":4102,"stem":4103},"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":4105,"path":4106,"stem":4107},"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":4109,"path":4110,"stem":4111},"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":4113,"path":4114,"stem":4115,"children":4116},"Admin","\u002Fsei-cert-c-coding-standard\u002Fadmin","4.sei-cert-c-coding-standard\u002F05.admin\u002F1.index",[4117,4118,4122],{"title":4113,"path":4114,"stem":4115},{"title":4119,"path":4120,"stem":4121},"TODO List","\u002Fsei-cert-c-coding-standard\u002Fadmin\u002Ftodo-list","4.sei-cert-c-coding-standard\u002F05.admin\u002F2.todo-list",{"title":4123,"path":4124,"stem":4125},"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":4127,"path":4128,"stem":4129},"Coding Style Guidelines","\u002Fsei-cert-c-coding-standard\u002Fcoding-style-guidelines","4.sei-cert-c-coding-standard\u002F05.coding-style-guidelines",{"title":4131,"path":4132,"stem":4133},"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":4135,"path":4136,"stem":4137},"Wiki Contents","\u002Fsei-cert-c-coding-standard\u002Fwiki-contents","4.sei-cert-c-coding-standard\u002F06.wiki-contents",{"title":4139,"path":4140,"stem":4141,"children":4142},"Recommendations","\u002Fsei-cert-c-coding-standard\u002Frecommendations","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F01.index",[4143,4144,4185,4202,4247,4288,4383,4400,4433,4502,4539,4624,4687,4736,4761,4854,4875,4932],{"title":4139,"path":4140,"stem":4141},{"title":3270,"path":4145,"stem":4146,"children":4147},"\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",[4148,4149,4153,4157,4161,4165,4169,4173,4177,4181],{"title":3270,"path":4145,"stem":4146},{"title":4150,"path":4151,"stem":4152},"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":4154,"path":4155,"stem":4156},"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":4158,"path":4159,"stem":4160},"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":4162,"path":4163,"stem":4164},"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":4166,"path":4167,"stem":4168},"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":4170,"path":4171,"stem":4172},"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":4174,"path":4175,"stem":4176},"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":4178,"path":4179,"stem":4180},"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":4182,"path":4183,"stem":4184},"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":3274,"path":4186,"stem":4187,"children":4188},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F1.index",[4189,4190,4194,4198],{"title":3274,"path":4186,"stem":4187},{"title":4191,"path":4192,"stem":4193},"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":4195,"path":4196,"stem":4197},"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":4199,"path":4200,"stem":4201},"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":3304,"path":4203,"stem":4204,"children":4205},"\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",[4206,4207,4211,4215,4219,4223,4227,4231,4235,4239,4243],{"title":3304,"path":4203,"stem":4204},{"title":4208,"path":4209,"stem":4210},"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":4212,"path":4213,"stem":4214},"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":4216,"path":4217,"stem":4218},"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":4220,"path":4221,"stem":4222},"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":4224,"path":4225,"stem":4226},"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":4228,"path":4229,"stem":4230},"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":4232,"path":4233,"stem":4234},"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":4236,"path":4237,"stem":4238},"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":4240,"path":4241,"stem":4242},"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":4244,"path":4245,"stem":4246},"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":3334,"path":4248,"stem":4249,"children":4250},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F01.index",[4251,4252,4256,4260,4264,4268,4272,4276,4280,4284],{"title":3334,"path":4248,"stem":4249},{"title":4253,"path":4254,"stem":4255},"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":4257,"path":4258,"stem":4259},"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":4261,"path":4262,"stem":4263},"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":4265,"path":4266,"stem":4267},"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":4269,"path":4270,"stem":4271},"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":4273,"path":4274,"stem":4275},"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":4277,"path":4278,"stem":4279},"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":4281,"path":4282,"stem":4283},"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":4285,"path":4286,"stem":4287},"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":3396,"path":4289,"stem":4290,"children":4291},"\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",[4292,4293,4297,4301,4305,4307,4311,4315,4319,4323,4327,4331,4335,4339,4343,4347,4351,4355,4359,4363,4367,4371,4375,4379],{"title":3396,"path":4289,"stem":4290},{"title":4294,"path":4295,"stem":4296},"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":4298,"path":4299,"stem":4300},"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":4302,"path":4303,"stem":4304},"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":1565,"path":1564,"stem":4306},"4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F05.dcl03-c",{"title":4308,"path":4309,"stem":4310},"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":4312,"path":4313,"stem":4314},"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":4316,"path":4317,"stem":4318},"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":4320,"path":4321,"stem":4322},"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":4324,"path":4325,"stem":4326},"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":4328,"path":4329,"stem":4330},"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":4332,"path":4333,"stem":4334},"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":4336,"path":4337,"stem":4338},"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":4340,"path":4341,"stem":4342},"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":4344,"path":4345,"stem":4346},"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":4348,"path":4349,"stem":4350},"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":4352,"path":4353,"stem":4354},"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":4356,"path":4357,"stem":4358},"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":4360,"path":4361,"stem":4362},"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":4364,"path":4365,"stem":4366},"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":4368,"path":4369,"stem":4370},"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":4372,"path":4373,"stem":4374},"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":4376,"path":4377,"stem":4378},"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":4380,"path":4381,"stem":4382},"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":3434,"path":4384,"stem":4385,"children":4386},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F1.index",[4387,4388,4392,4396],{"title":3434,"path":4384,"stem":4385},{"title":4389,"path":4390,"stem":4391},"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":4393,"path":4394,"stem":4395},"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":4397,"path":4398,"stem":4399},"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":3460,"path":4401,"stem":4402,"children":4403},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F1.index",[4404,4405,4409,4413,4417,4421,4425,4429],{"title":3460,"path":4401,"stem":4402},{"title":4406,"path":4407,"stem":4408},"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":4410,"path":4411,"stem":4412},"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":4414,"path":4415,"stem":4416},"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":4418,"path":4419,"stem":4420},"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":4422,"path":4423,"stem":4424},"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":4426,"path":4427,"stem":4428},"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":4430,"path":4431,"stem":4432},"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":3482,"path":4434,"stem":4435,"children":4436},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F01.index",[4437,4438,4442,4446,4450,4454,4458,4462,4466,4470,4474,4478,4482,4486,4490,4494,4498],{"title":3482,"path":4434,"stem":4435},{"title":4439,"path":4440,"stem":4441},"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":4443,"path":4444,"stem":4445},"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":4447,"path":4448,"stem":4449},"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":4451,"path":4452,"stem":4453},"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":4455,"path":4456,"stem":4457},"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":4459,"path":4460,"stem":4461},"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":4463,"path":4464,"stem":4465},"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":4467,"path":4468,"stem":4469},"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":4471,"path":4472,"stem":4473},"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":4475,"path":4476,"stem":4477},"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":4479,"path":4480,"stem":4481},"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":4483,"path":4484,"stem":4485},"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":4487,"path":4488,"stem":4489},"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":4491,"path":4492,"stem":4493},"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":4495,"path":4496,"stem":4497},"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":4499,"path":4500,"stem":4501},"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":3548,"path":4503,"stem":4504,"children":4505},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F1.index",[4506,4507,4511,4515,4519,4523,4527,4531,4535],{"title":3548,"path":4503,"stem":4504},{"title":4508,"path":4509,"stem":4510},"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":4512,"path":4513,"stem":4514},"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":4516,"path":4517,"stem":4518},"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":4520,"path":4521,"stem":4522},"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":4524,"path":4525,"stem":4526},"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":4528,"path":4529,"stem":4530},"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":4532,"path":4533,"stem":4534},"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":4536,"path":4537,"stem":4538},"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":3574,"path":4540,"stem":4541,"children":4542},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F01.index",[4543,4544,4548,4552,4556,4560,4564,4568,4572,4576,4580,4584,4588,4592,4596,4600,4604,4608,4612,4616,4620],{"title":3574,"path":4540,"stem":4541},{"title":4545,"path":4546,"stem":4547},"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":4549,"path":4550,"stem":4551},"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":4553,"path":4554,"stem":4555},"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":4557,"path":4558,"stem":4559},"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":4561,"path":4562,"stem":4563},"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":4565,"path":4566,"stem":4567},"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":4569,"path":4570,"stem":4571},"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":4573,"path":4574,"stem":4575},"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":4577,"path":4578,"stem":4579},"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":4581,"path":4582,"stem":4583},"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":4585,"path":4586,"stem":4587},"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":4589,"path":4590,"stem":4591},"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":4593,"path":4594,"stem":4595},"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":4597,"path":4598,"stem":4599},"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":4601,"path":4602,"stem":4603},"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":4605,"path":4606,"stem":4607},"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":4609,"path":4610,"stem":4611},"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":4613,"path":4614,"stem":4615},"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":4617,"path":4618,"stem":4619},"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":4621,"path":4622,"stem":4623},"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":3630,"path":4625,"stem":4626,"children":4627},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F01.index",[4628,4629,4633,4637,4641,4645,4649,4653,4657,4661,4665,4669,4673,4677,4681,4685],{"title":3630,"path":4625,"stem":4626},{"title":4630,"path":4631,"stem":4632},"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":4634,"path":4635,"stem":4636},"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":4638,"path":4639,"stem":4640},"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":4642,"path":4643,"stem":4644},"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":4646,"path":4647,"stem":4648},"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":4650,"path":4651,"stem":4652},"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":4654,"path":4655,"stem":4656},"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":4658,"path":4659,"stem":4660},"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":4662,"path":4663,"stem":4664},"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":4666,"path":4667,"stem":4668},"INT13-C. Use bitwise operators only on unsigned operands","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint13-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F12.int13-c",{"title":4670,"path":4671,"stem":4672},"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":4674,"path":4675,"stem":4676},"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":4678,"path":4679,"stem":4680},"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":4682,"path":4683,"stem":4684},"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":1349,"path":1348,"stem":4686},"4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F17.int18-c",{"title":3655,"path":4688,"stem":4689,"children":4690},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F01.index",[4691,4692,4696,4700,4704,4708,4712,4716,4720,4724,4728,4732],{"title":3655,"path":4688,"stem":4689},{"title":4693,"path":4694,"stem":4695},"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":4697,"path":4698,"stem":4699},"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":4701,"path":4702,"stem":4703},"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":4705,"path":4706,"stem":4707},"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":4709,"path":4710,"stem":4711},"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":4713,"path":4714,"stem":4715},"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":4717,"path":4718,"stem":4719},"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":4721,"path":4722,"stem":4723},"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":4725,"path":4726,"stem":4727},"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":4729,"path":4730,"stem":4731},"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":4733,"path":4734,"stem":4735},"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":3685,"path":4737,"stem":4738,"children":4739},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F1.index",[4740,4741,4745,4749,4753,4757],{"title":3685,"path":4737,"stem":4738},{"title":4742,"path":4743,"stem":4744},"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":4746,"path":4747,"stem":4748},"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":4750,"path":4751,"stem":4752},"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":4754,"path":4755,"stem":4756},"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":4758,"path":4759,"stem":4760},"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":3695,"path":4762,"stem":4763,"children":4764},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F01.index",[4765,4766,4770,4774,4778,4782,4786,4790,4794,4798,4802,4806,4810,4814,4818,4822,4826,4830,4834,4838,4842,4846,4850],{"title":3695,"path":4762,"stem":4763},{"title":4767,"path":4768,"stem":4769},"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":4771,"path":4772,"stem":4773},"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":4775,"path":4776,"stem":4777},"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":4779,"path":4780,"stem":4781},"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":4783,"path":4784,"stem":4785},"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":4787,"path":4788,"stem":4789},"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":4791,"path":4792,"stem":4793},"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":4795,"path":4796,"stem":4797},"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":4799,"path":4800,"stem":4801},"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":4803,"path":4804,"stem":4805},"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":4807,"path":4808,"stem":4809},"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":4811,"path":4812,"stem":4813},"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":4815,"path":4816,"stem":4817},"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":4819,"path":4820,"stem":4821},"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":4823,"path":4824,"stem":4825},"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":4827,"path":4828,"stem":4829},"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":4831,"path":4832,"stem":4833},"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":4835,"path":4836,"stem":4837},"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":4839,"path":4840,"stem":4841},"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":4843,"path":4844,"stem":4845},"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":4847,"path":4848,"stem":4849},"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":4851,"path":4852,"stem":4853},"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":3733,"path":4855,"stem":4856,"children":4857},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F1.index",[4858,4859,4863,4867,4871],{"title":3733,"path":4855,"stem":4856},{"title":4860,"path":4861,"stem":4862},"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":4864,"path":4865,"stem":4866},"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":4868,"path":4869,"stem":4870},"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":4872,"path":4873,"stem":4874},"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":3803,"path":4876,"stem":4877,"children":4878},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F01.index",[4879,4880,4884,4888,4892,4896,4900,4904,4908,4912,4916,4920,4924,4928],{"title":3803,"path":4876,"stem":4877},{"title":4881,"path":4882,"stem":4883},"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":4885,"path":4886,"stem":4887},"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":4889,"path":4890,"stem":4891},"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":4893,"path":4894,"stem":4895},"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":4897,"path":4898,"stem":4899},"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":4901,"path":4902,"stem":4903},"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":4905,"path":4906,"stem":4907},"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":4909,"path":4910,"stem":4911},"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":4913,"path":4914,"stem":4915},"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":4917,"path":4918,"stem":4919},"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":4921,"path":4922,"stem":4923},"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":4925,"path":4926,"stem":4927},"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":4929,"path":4930,"stem":4931},"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":3821,"path":4933,"stem":4934,"children":4935},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F1.index",[4936,4937,4941,4945],{"title":3821,"path":4933,"stem":4934},{"title":4938,"path":4939,"stem":4940},"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":4942,"path":4943,"stem":4944},"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":4946,"path":4947,"stem":4948},"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":4950,"path":4951,"stem":4952},"CERT manifest files","\u002Fsei-cert-c-coding-standard\u002Fcert-manifest-files","4.sei-cert-c-coding-standard\u002F09.cert-manifest-files",1775657796358]