[{"data":1,"prerenderedAt":4279},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp39-c":28,"surround-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp39-c":2486,"sidebar-sei-cert-c-coding-standard":2493},[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":2470,"extension":2471,"meta":2472,"navigation":7,"path":2482,"seo":2483,"stem":2484,"__hash__":2485},"content\u002F4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F09.exp39-c.md","EXP39-C. Do not access a variable through a pointer of an incompatible type",{"type":32,"value":33,"toc":2445},"minimark",[34,38,47,56,84,100,105,116,301,305,312,403,406,413,574,591,596,612,631,634,637,644,801,804,809,826,829,847,1160,1163,1169,1467,1470,1485,1488,1505,1581,1584,1587,1596,1664,1668,1671,1736,1740,2120,2124,2133,2137,2144,2238,2242,2248,2252,2255,2258,2263,2266,2274,2277,2282,2286,2289,2292,2296,2299,2302,2306,2309,2313,2316,2320,2324,2327,2330,2334,2337,2342,2346,2417,2420,2441],[35,36,30],"h1",{"id":37},"exp39-c-do-not-access-a-variable-through-a-pointer-of-an-incompatible-type",[39,40,41,42,46],"p",{},"Modifying a variable through a pointer of an incompatible type (other than ",[43,44,45],"code",{},"  unsigned char "," ) can lead to unpredictable results. Subclause 6.2.7 of the C Standard states that two types may be distinct yet compatible and addresses precisely when two distinct types are compatible.",[39,48,49,50,55],{},"This problem is often caused by a violation of aliasing rules. The C Standard, 6.5, paragraph 7 [ ",[51,52,54],"a",{"href":53},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IEC9899-2024","ISO\u002FIEC 9899:2024"," ], specifies those circumstances in which an object may or may not be aliased.",[57,58,59,62],"blockquote",{},[39,60,61],{},"An object shall have its stored value accessed only by an lvalue expression that has one of the following types:",[63,64,65,69,72,75,78,81],"ul",{},[66,67,68],"li",{},"a type compatible with the effective type of the object,",[66,70,71],{},"a qualified version of a type compatible with the effective type of the object,",[66,73,74],{},"the signed or unsigned type compatible with the underlying type of the effective type of the object,",[66,76,77],{},"the signed or unsigned type compatible with a qualified version of the underlying type of the effective type of the object,",[66,79,80],{},"an aggregate or union type that includes one of the aforementioned types among its members (including, recursively, a member of a subaggregate or contained union), or",[66,82,83],{},"a character type.",[39,85,86,87,91,92,94,95,99],{},"Accessing an object by means of any other ",[51,88,90],{"href":89},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-lvalue","lvalue"," expression (other than ",[43,93,45],{}," ) is ",[51,96,98],{"href":97},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_36","undefined behavior 36"," .",[101,102,104],"h2",{"id":103},"noncompliant-code-example","Noncompliant Code Example",[39,106,107,108,111,112,115],{},"In this noncompliant example, an object of type ",[43,109,110],{},"float"," is incremented through an ",[43,113,114],{},"  int * "," . The programmer can use the unit in the last place to get the next representable value for a floating-point type.  However, accessing an object through a pointer of an incompatible type is undefined behavior.",[117,118,120],"code-block",{"quality":119},"bad",[121,122,127],"pre",{"className":123,"code":124,"language":125,"meta":126,"style":126},"language-c shiki shiki-themes github-light github-dark monokai","#include \u003Cstdio.h>\n \nvoid f(void) {\n  if (sizeof(int) == sizeof(float)) {\n    float f = 0.0f;\n    int *ip = (int *)&f;\n    (*ip)++;\n    printf(\"float is %f\\n\", f);\n  }\n}\n","c","",[43,128,129,142,149,168,201,223,252,269,289,295],{"__ignoreMap":126},[130,131,134,138],"span",{"class":132,"line":133},"line",1,[130,135,137],{"class":136},"sC2Qs","#include",[130,139,141],{"class":140},"sstjo"," \u003Cstdio.h>\n",[130,143,145],{"class":132,"line":144},2,[130,146,148],{"class":147},"sMOD_"," \n",[130,150,152,156,160,163,165],{"class":132,"line":151},3,[130,153,155],{"class":154},"sq6CD","void",[130,157,159],{"class":158},"srTi1"," f",[130,161,162],{"class":147},"(",[130,164,155],{"class":154},[130,166,167],{"class":147},") {\n",[130,169,171,174,177,180,182,185,188,191,194,196,198],{"class":132,"line":170},4,[130,172,173],{"class":136},"  if",[130,175,176],{"class":147}," (",[130,178,179],{"class":136},"sizeof",[130,181,162],{"class":147},[130,183,184],{"class":154},"int",[130,186,187],{"class":147},") ",[130,189,190],{"class":136},"==",[130,192,193],{"class":136}," sizeof",[130,195,162],{"class":147},[130,197,110],{"class":154},[130,199,200],{"class":147},")) {\n",[130,202,204,207,210,213,217,220],{"class":132,"line":203},5,[130,205,206],{"class":154},"    float",[130,208,209],{"class":147}," f ",[130,211,212],{"class":136},"=",[130,214,216],{"class":215},"s7F3e"," 0.0",[130,218,219],{"class":136},"f",[130,221,222],{"class":147},";\n",[130,224,226,229,232,235,237,239,241,243,246,249],{"class":132,"line":225},6,[130,227,228],{"class":154},"    int",[130,230,231],{"class":136}," *",[130,233,234],{"class":147},"ip ",[130,236,212],{"class":136},[130,238,176],{"class":147},[130,240,184],{"class":154},[130,242,231],{"class":136},[130,244,245],{"class":147},")",[130,247,248],{"class":136},"&",[130,250,251],{"class":147},"f;\n",[130,253,255,258,261,264,267],{"class":132,"line":254},7,[130,256,257],{"class":147},"    (",[130,259,260],{"class":136},"*",[130,262,263],{"class":147},"ip)",[130,265,266],{"class":136},"++",[130,268,222],{"class":147},[130,270,272,275,277,280,283,286],{"class":132,"line":271},8,[130,273,274],{"class":158},"    printf",[130,276,162],{"class":147},[130,278,279],{"class":140},"\"float is ",[130,281,282],{"class":215},"%f\\n",[130,284,285],{"class":140},"\"",[130,287,288],{"class":147},", f);\n",[130,290,292],{"class":132,"line":291},9,[130,293,294],{"class":147},"  }\n",[130,296,298],{"class":132,"line":297},10,[130,299,300],{"class":147},"}\n",[101,302,304],{"id":303},"compliant-solution","Compliant Solution",[39,306,307,308,311],{},"In this compliant solution, the standard C function ",[43,309,310],{},"nextafterf()"," is used to round toward the highest representable floating-point value:",[117,313,315],{"quality":314},"good",[121,316,318],{"className":123,"code":317,"language":125,"meta":126,"style":126},"#include \u003Cfloat.h>\n#include \u003Cmath.h>\n#include \u003Cstdio.h>\n \nvoid f(void) {\n  float f = 0.0f;\n  f = nextafterf(f, FLT_MAX);\n  printf(\"float is %f\\n\", f);\n}\n",[43,319,320,327,334,340,344,356,371,384,399],{"__ignoreMap":126},[130,321,322,324],{"class":132,"line":133},[130,323,137],{"class":136},[130,325,326],{"class":140}," \u003Cfloat.h>\n",[130,328,329,331],{"class":132,"line":144},[130,330,137],{"class":136},[130,332,333],{"class":140}," \u003Cmath.h>\n",[130,335,336,338],{"class":132,"line":151},[130,337,137],{"class":136},[130,339,141],{"class":140},[130,341,342],{"class":132,"line":170},[130,343,148],{"class":147},[130,345,346,348,350,352,354],{"class":132,"line":203},[130,347,155],{"class":154},[130,349,159],{"class":158},[130,351,162],{"class":147},[130,353,155],{"class":154},[130,355,167],{"class":147},[130,357,358,361,363,365,367,369],{"class":132,"line":225},[130,359,360],{"class":154},"  float",[130,362,209],{"class":147},[130,364,212],{"class":136},[130,366,216],{"class":215},[130,368,219],{"class":136},[130,370,222],{"class":147},[130,372,373,376,378,381],{"class":132,"line":254},[130,374,375],{"class":147},"  f ",[130,377,212],{"class":136},[130,379,380],{"class":158}," nextafterf",[130,382,383],{"class":147},"(f, FLT_MAX);\n",[130,385,386,389,391,393,395,397],{"class":132,"line":271},[130,387,388],{"class":158},"  printf",[130,390,162],{"class":147},[130,392,279],{"class":140},[130,394,282],{"class":215},[130,396,285],{"class":140},[130,398,288],{"class":147},[130,400,401],{"class":132,"line":291},[130,402,300],{"class":147},[101,404,104],{"id":405},"noncompliant-code-example-1",[39,407,408,409,412],{},"In this noncompliant code example, an array of two values of type ",[43,410,411],{},"short"," is treated as an integer and assigned an integer value. The resulting values are indeterminate.",[117,414,415],{"quality":119},[121,416,418],{"className":123,"code":417,"language":125,"meta":126,"style":126},"#include \u003Cstdio.h>\n \nvoid func(void) {\n  short a[2];\n  a[0]=0x1111;\n  a[1]=0x1111;\n\n  *(int *)a = 0x22222222;\n\n  printf(\"%x %x\\n\", a[0], a[1]);\n}\n",[43,419,420,426,430,443,461,482,499,504,528,532,569],{"__ignoreMap":126},[130,421,422,424],{"class":132,"line":133},[130,423,137],{"class":136},[130,425,141],{"class":140},[130,427,428],{"class":132,"line":144},[130,429,148],{"class":147},[130,431,432,434,437,439,441],{"class":132,"line":151},[130,433,155],{"class":154},[130,435,436],{"class":158}," func",[130,438,162],{"class":147},[130,440,155],{"class":154},[130,442,167],{"class":147},[130,444,445,448,452,455,458],{"class":132,"line":170},[130,446,447],{"class":154},"  short",[130,449,451],{"class":450},"sOrwc"," a",[130,453,454],{"class":147},"[",[130,456,457],{"class":215},"2",[130,459,460],{"class":147},"];\n",[130,462,463,466,468,471,474,477,480],{"class":132,"line":203},[130,464,465],{"class":450},"  a",[130,467,454],{"class":147},[130,469,470],{"class":215},"0",[130,472,473],{"class":147},"]",[130,475,476],{"class":136},"=0x",[130,478,479],{"class":215},"1111",[130,481,222],{"class":147},[130,483,484,486,488,491,493,495,497],{"class":132,"line":225},[130,485,465],{"class":450},[130,487,454],{"class":147},[130,489,490],{"class":215},"1",[130,492,473],{"class":147},[130,494,476],{"class":136},[130,496,479],{"class":215},[130,498,222],{"class":147},[130,500,501],{"class":132,"line":254},[130,502,503],{"emptyLinePlaceholder":7},"\n",[130,505,506,509,511,513,515,518,520,523,526],{"class":132,"line":271},[130,507,508],{"class":136},"  *",[130,510,162],{"class":147},[130,512,184],{"class":154},[130,514,231],{"class":136},[130,516,517],{"class":147},")a ",[130,519,212],{"class":136},[130,521,522],{"class":136}," 0x",[130,524,525],{"class":215},"22222222",[130,527,222],{"class":147},[130,529,530],{"class":132,"line":291},[130,531,503],{"emptyLinePlaceholder":7},[130,533,534,536,538,540,543,546,548,551,553,555,557,560,562,564,566],{"class":132,"line":297},[130,535,388],{"class":158},[130,537,162],{"class":147},[130,539,285],{"class":140},[130,541,542],{"class":215},"%x",[130,544,545],{"class":215}," %x\\n",[130,547,285],{"class":140},[130,549,550],{"class":147},", ",[130,552,51],{"class":450},[130,554,454],{"class":147},[130,556,470],{"class":215},[130,558,559],{"class":147},"], ",[130,561,51],{"class":450},[130,563,454],{"class":147},[130,565,490],{"class":215},[130,567,568],{"class":147},"]);\n",[130,570,572],{"class":132,"line":571},11,[130,573,300],{"class":147},[39,575,576,577,579,580,583,584,587,588,99],{},"When translating this code, an implementation can assume that no access through an integer pointer can change the array ",[43,578,51],{}," , consisting of shorts. Consequently, ",[43,581,582],{},"printf()"," may be called with the original values of ",[43,585,586],{},"a[0]"," and ",[43,589,590],{},"a[1]",[592,593,595],"h3",{"id":594},"implementation-details","Implementation Details",[39,597,598,599,602,603,606,607,611],{},"Recent versions of GCC turn on the option ",[43,600,601],{},"-fstrict-aliasing,"," which allows alias-based optimizations, by default with ",[43,604,605],{},"-O2"," . Some architectures then print \"1111 1111\" as a result. Without optimization, the executable generates the ",[608,609,610],"em",{},"expected"," output \"2222 2222.\"",[39,613,614,615,618,619,622,623,626,627,630],{},"To disable optimizations based on alias analysis for faulty legacy code, the option ",[43,616,617],{},"-fno-strict-aliasing"," can be used as a workaround. The option ",[43,620,621],{},"-Wstrict-aliasing,"," which is included in ",[43,624,625],{},"-Wall,"," warns about some, but not all, violations of aliasing rules when ",[43,628,629],{},"-fstrict-aliasing"," is active.",[39,632,633],{},"When GCC 3.4.6 compiles this code with optimization, the assignment through the aliased pointer is effectively eliminated.",[101,635,304],{"id":636},"compliant-solution-1",[39,638,639,640,643],{},"This compliant solution uses a ",[43,641,642],{},"union"," type that includes a type compatible with the effective type of the object:",[117,645,646],{"quality":314},[121,647,649],{"className":123,"code":648,"language":125,"meta":126,"style":126},"#include \u003Cstdio.h>\n \nvoid func(void) {\n  union {\n    short a[2];\n    int i;\n  } u;\n\n  u.a[0]=0x1111;\n  u.a[1]=0x1111;\n  u.i = 0x22222222;\n\n  printf(\"%x %x\\n\", u.a[0], u.a[1]);\n\n  \u002F* ... *\u002F\n}\n",[43,650,651,657,661,673,681,694,701,706,710,725,739,752,757,784,789,796],{"__ignoreMap":126},[130,652,653,655],{"class":132,"line":133},[130,654,137],{"class":136},[130,656,141],{"class":140},[130,658,659],{"class":132,"line":144},[130,660,148],{"class":147},[130,662,663,665,667,669,671],{"class":132,"line":151},[130,664,155],{"class":154},[130,666,436],{"class":158},[130,668,162],{"class":147},[130,670,155],{"class":154},[130,672,167],{"class":147},[130,674,675,678],{"class":132,"line":170},[130,676,677],{"class":154},"  union",[130,679,680],{"class":147}," {\n",[130,682,683,686,688,690,692],{"class":132,"line":203},[130,684,685],{"class":154},"    short",[130,687,451],{"class":450},[130,689,454],{"class":147},[130,691,457],{"class":215},[130,693,460],{"class":147},[130,695,696,698],{"class":132,"line":225},[130,697,228],{"class":154},[130,699,700],{"class":147}," i;\n",[130,702,703],{"class":132,"line":254},[130,704,705],{"class":147},"  } u;\n",[130,707,708],{"class":132,"line":271},[130,709,503],{"emptyLinePlaceholder":7},[130,711,712,715,717,719,721,723],{"class":132,"line":291},[130,713,714],{"class":147},"  u.a[",[130,716,470],{"class":215},[130,718,473],{"class":147},[130,720,476],{"class":136},[130,722,479],{"class":215},[130,724,222],{"class":147},[130,726,727,729,731,733,735,737],{"class":132,"line":297},[130,728,714],{"class":147},[130,730,490],{"class":215},[130,732,473],{"class":147},[130,734,476],{"class":136},[130,736,479],{"class":215},[130,738,222],{"class":147},[130,740,741,744,746,748,750],{"class":132,"line":571},[130,742,743],{"class":147},"  u.i ",[130,745,212],{"class":136},[130,747,522],{"class":136},[130,749,525],{"class":215},[130,751,222],{"class":147},[130,753,755],{"class":132,"line":754},12,[130,756,503],{"emptyLinePlaceholder":7},[130,758,760,762,764,766,768,770,772,775,777,780,782],{"class":132,"line":759},13,[130,761,388],{"class":158},[130,763,162],{"class":147},[130,765,285],{"class":140},[130,767,542],{"class":215},[130,769,545],{"class":215},[130,771,285],{"class":140},[130,773,774],{"class":147},", u.a[",[130,776,470],{"class":215},[130,778,779],{"class":147},"], u.a[",[130,781,490],{"class":215},[130,783,568],{"class":147},[130,785,787],{"class":132,"line":786},14,[130,788,503],{"emptyLinePlaceholder":7},[130,790,792],{"class":132,"line":791},15,[130,793,795],{"class":794},"s8-w5","  \u002F* ... *\u002F\n",[130,797,799],{"class":132,"line":798},16,[130,800,300],{"class":147},[39,802,803],{},"The C standard states:",[57,805,806],{},[39,807,808],{},"If the member used to read the contents of a union object is not the same as the member last used to store a value in the object, the appropriate part of the object representation of the value is reinterpreted as an object representation in the new type as described in 6.2.6 (a process sometimes called “type punning”). This might be a trap representation",[39,810,811,812,814,815,587,817,820,821,825],{},"The call to ",[43,813,582],{}," typically outputs \"2222 2222\". However, there is no guarantee that this will be true; the object representations of ",[43,816,51],{},[43,818,819],{},"i"," are unspecified and need not be compatible in this way, despite this operation being commonly accepted as an implementation extension. (See ",[51,822,824],{"href":823},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fdd-unspecified-behavior#DD.UnspecifiedBehavior-unspecifiedbehavior11","unspecified behavior 11"," .)",[101,827,104],{"id":828},"noncompliant-code-example-2",[39,830,831,832,835,836,839,840,843,844,846],{},"In this noncompliant code example, a ",[43,833,834],{},"gadget"," object is allocated, then ",[43,837,838],{},"realloc()"," is called to create a ",[43,841,842],{},"widget"," object using the memory from the ",[43,845,834],{}," object. Although reusing memory to change types is acceptable, accessing the memory copied from the original object is undefined behavior.",[117,848,849],{"quality":119},[121,850,852],{"className":123,"code":851,"language":125,"meta":126,"style":126},"#include \u003Cstdlib.h>\n \nstruct gadget {\n  int i;\n  double d;\n  char *p;\n};\n \nstruct widget {\n  char *q;\n  int j;\n  double e;\n};\n \nvoid func(void) {\n  struct gadget *gp;\n  struct widget *wp;\n \n  gp = (struct gadget *)malloc(sizeof(struct gadget));\n  if (!gp) {\n    \u002F* Handle error *\u002F\n  }\n  \u002F* ... Initialize gadget ... *\u002F\n  wp = (struct widget *)realloc(gp, sizeof(struct widget));\n  if (!wp) {\n    free(gp);\n    \u002F* Handle error *\u002F\n  }\n  if (wp->j == 12) {\n    \u002F* ... *\u002F\n  }\n  \u002F* ... *\u002F\n  free(wp);\n}\n",[43,853,854,861,866,874,881,889,899,904,908,915,924,931,938,942,946,958,971,984,989,1021,1034,1040,1045,1051,1084,1096,1105,1110,1115,1130,1136,1141,1146,1155],{"__ignoreMap":126},[130,855,856,858],{"class":132,"line":133},[130,857,137],{"class":136},[130,859,860],{"class":140}," \u003Cstdlib.h>\n",[130,862,863],{"class":132,"line":144},[130,864,865],{"class":147}," \n",[130,867,868,871],{"class":132,"line":151},[130,869,870],{"class":154},"struct",[130,872,873],{"class":147}," gadget {\n",[130,875,876,879],{"class":132,"line":170},[130,877,878],{"class":154},"  int",[130,880,700],{"class":147},[130,882,883,886],{"class":132,"line":203},[130,884,885],{"class":154},"  double",[130,887,888],{"class":147}," d;\n",[130,890,891,894,896],{"class":132,"line":225},[130,892,893],{"class":154},"  char",[130,895,231],{"class":136},[130,897,898],{"class":147},"p;\n",[130,900,901],{"class":132,"line":254},[130,902,903],{"class":147},"};\n",[130,905,906],{"class":132,"line":271},[130,907,865],{"class":147},[130,909,910,912],{"class":132,"line":291},[130,911,870],{"class":154},[130,913,914],{"class":147}," widget {\n",[130,916,917,919,921],{"class":132,"line":297},[130,918,893],{"class":154},[130,920,231],{"class":136},[130,922,923],{"class":147},"q;\n",[130,925,926,928],{"class":132,"line":571},[130,927,878],{"class":154},[130,929,930],{"class":147}," j;\n",[130,932,933,935],{"class":132,"line":754},[130,934,885],{"class":154},[130,936,937],{"class":147}," e;\n",[130,939,940],{"class":132,"line":759},[130,941,903],{"class":147},[130,943,944],{"class":132,"line":786},[130,945,865],{"class":147},[130,947,948,950,952,954,956],{"class":132,"line":791},[130,949,155],{"class":154},[130,951,436],{"class":158},[130,953,162],{"class":147},[130,955,155],{"class":154},[130,957,167],{"class":147},[130,959,960,963,966,968],{"class":132,"line":798},[130,961,962],{"class":154},"  struct",[130,964,965],{"class":147}," gadget ",[130,967,260],{"class":136},[130,969,970],{"class":147},"gp;\n",[130,972,974,976,979,981],{"class":132,"line":973},17,[130,975,962],{"class":154},[130,977,978],{"class":147}," widget ",[130,980,260],{"class":136},[130,982,983],{"class":147},"wp;\n",[130,985,987],{"class":132,"line":986},18,[130,988,865],{"class":147},[130,990,992,995,997,999,1001,1003,1005,1007,1010,1012,1014,1016,1018],{"class":132,"line":991},19,[130,993,994],{"class":147},"  gp ",[130,996,212],{"class":136},[130,998,176],{"class":147},[130,1000,870],{"class":154},[130,1002,965],{"class":147},[130,1004,260],{"class":136},[130,1006,245],{"class":147},[130,1008,1009],{"class":158},"malloc",[130,1011,162],{"class":147},[130,1013,179],{"class":136},[130,1015,162],{"class":147},[130,1017,870],{"class":154},[130,1019,1020],{"class":147}," gadget));\n",[130,1022,1024,1026,1028,1031],{"class":132,"line":1023},20,[130,1025,173],{"class":136},[130,1027,176],{"class":147},[130,1029,1030],{"class":136},"!",[130,1032,1033],{"class":147},"gp) {\n",[130,1035,1037],{"class":132,"line":1036},21,[130,1038,1039],{"class":794},"    \u002F* Handle error *\u002F\n",[130,1041,1043],{"class":132,"line":1042},22,[130,1044,294],{"class":147},[130,1046,1048],{"class":132,"line":1047},23,[130,1049,1050],{"class":794},"  \u002F* ... Initialize gadget ... *\u002F\n",[130,1052,1054,1057,1059,1061,1063,1065,1067,1069,1072,1075,1077,1079,1081],{"class":132,"line":1053},24,[130,1055,1056],{"class":147},"  wp ",[130,1058,212],{"class":136},[130,1060,176],{"class":147},[130,1062,870],{"class":154},[130,1064,978],{"class":147},[130,1066,260],{"class":136},[130,1068,245],{"class":147},[130,1070,1071],{"class":158},"realloc",[130,1073,1074],{"class":147},"(gp, ",[130,1076,179],{"class":136},[130,1078,162],{"class":147},[130,1080,870],{"class":154},[130,1082,1083],{"class":147}," widget));\n",[130,1085,1087,1089,1091,1093],{"class":132,"line":1086},25,[130,1088,173],{"class":136},[130,1090,176],{"class":147},[130,1092,1030],{"class":136},[130,1094,1095],{"class":147},"wp) {\n",[130,1097,1099,1102],{"class":132,"line":1098},26,[130,1100,1101],{"class":158},"    free",[130,1103,1104],{"class":147},"(gp);\n",[130,1106,1108],{"class":132,"line":1107},27,[130,1109,1039],{"class":794},[130,1111,1113],{"class":132,"line":1112},28,[130,1114,294],{"class":147},[130,1116,1118,1120,1123,1125,1128],{"class":132,"line":1117},29,[130,1119,173],{"class":136},[130,1121,1122],{"class":147}," (wp->j ",[130,1124,190],{"class":136},[130,1126,1127],{"class":215}," 12",[130,1129,167],{"class":147},[130,1131,1133],{"class":132,"line":1132},30,[130,1134,1135],{"class":794},"    \u002F* ... *\u002F\n",[130,1137,1139],{"class":132,"line":1138},31,[130,1140,294],{"class":147},[130,1142,1144],{"class":132,"line":1143},32,[130,1145,795],{"class":794},[130,1147,1149,1152],{"class":132,"line":1148},33,[130,1150,1151],{"class":158},"  free",[130,1153,1154],{"class":147},"(wp);\n",[130,1156,1158],{"class":132,"line":1157},34,[130,1159,300],{"class":147},[101,1161,304],{"id":1162},"compliant-solution-2",[39,1164,1165,1166,1168],{},"This compliant solution reuses the memory from the ",[43,1167,834],{}," object but reinitializes the memory to a consistent state before reading from it:",[117,1170,1171],{"quality":314},[121,1172,1174],{"className":123,"code":1173,"language":125,"meta":126,"style":126},"#include \u003Cstdlib.h>\n#include \u003Cstring.h>\n \nstruct gadget {\n  int i;\n  double d;\n  char *p;\n};\n \nstruct widget {\n  char *q;\n  int j;\n  double e;\n};\n \nvoid func(void) {\n  struct gadget *gp;\n  struct widget *wp;\n \n  gp = (struct gadget *)malloc(sizeof (struct gadget));\n  if (!gp) {\n    \u002F* Handle error *\u002F\n  }\n  \u002F* ... *\u002F\n  wp = (struct widget *)realloc(gp, sizeof(struct widget));\n  if (!wp) {\n    free(gp);\n    \u002F* Handle error *\u002F\n  }\n  memset(wp, 0, sizeof(struct widget));\n  \u002F* ... Initialize widget ... *\u002F\n\n  if (wp->j == 12) {\n    \u002F* ... *\u002F\n  }\n  \u002F* ... *\u002F\n  free(wp);\n}\n",[43,1175,1176,1182,1189,1193,1199,1205,1211,1219,1223,1227,1233,1241,1247,1253,1257,1261,1273,1283,1293,1297,1325,1335,1339,1343,1347,1375,1385,1391,1395,1399,1419,1424,1428,1441,1445,1450,1455,1462],{"__ignoreMap":126},[130,1177,1178,1180],{"class":132,"line":133},[130,1179,137],{"class":136},[130,1181,860],{"class":140},[130,1183,1184,1186],{"class":132,"line":144},[130,1185,137],{"class":136},[130,1187,1188],{"class":140}," \u003Cstring.h>\n",[130,1190,1191],{"class":132,"line":151},[130,1192,865],{"class":147},[130,1194,1195,1197],{"class":132,"line":170},[130,1196,870],{"class":154},[130,1198,873],{"class":147},[130,1200,1201,1203],{"class":132,"line":203},[130,1202,878],{"class":154},[130,1204,700],{"class":147},[130,1206,1207,1209],{"class":132,"line":225},[130,1208,885],{"class":154},[130,1210,888],{"class":147},[130,1212,1213,1215,1217],{"class":132,"line":254},[130,1214,893],{"class":154},[130,1216,231],{"class":136},[130,1218,898],{"class":147},[130,1220,1221],{"class":132,"line":271},[130,1222,903],{"class":147},[130,1224,1225],{"class":132,"line":291},[130,1226,865],{"class":147},[130,1228,1229,1231],{"class":132,"line":297},[130,1230,870],{"class":154},[130,1232,914],{"class":147},[130,1234,1235,1237,1239],{"class":132,"line":571},[130,1236,893],{"class":154},[130,1238,231],{"class":136},[130,1240,923],{"class":147},[130,1242,1243,1245],{"class":132,"line":754},[130,1244,878],{"class":154},[130,1246,930],{"class":147},[130,1248,1249,1251],{"class":132,"line":759},[130,1250,885],{"class":154},[130,1252,937],{"class":147},[130,1254,1255],{"class":132,"line":786},[130,1256,903],{"class":147},[130,1258,1259],{"class":132,"line":791},[130,1260,865],{"class":147},[130,1262,1263,1265,1267,1269,1271],{"class":132,"line":798},[130,1264,155],{"class":154},[130,1266,436],{"class":158},[130,1268,162],{"class":147},[130,1270,155],{"class":154},[130,1272,167],{"class":147},[130,1274,1275,1277,1279,1281],{"class":132,"line":973},[130,1276,962],{"class":154},[130,1278,965],{"class":147},[130,1280,260],{"class":136},[130,1282,970],{"class":147},[130,1284,1285,1287,1289,1291],{"class":132,"line":986},[130,1286,962],{"class":154},[130,1288,978],{"class":147},[130,1290,260],{"class":136},[130,1292,983],{"class":147},[130,1294,1295],{"class":132,"line":991},[130,1296,865],{"class":147},[130,1298,1299,1301,1303,1305,1307,1309,1311,1313,1315,1317,1319,1321,1323],{"class":132,"line":1023},[130,1300,994],{"class":147},[130,1302,212],{"class":136},[130,1304,176],{"class":147},[130,1306,870],{"class":154},[130,1308,965],{"class":147},[130,1310,260],{"class":136},[130,1312,245],{"class":147},[130,1314,1009],{"class":158},[130,1316,162],{"class":147},[130,1318,179],{"class":136},[130,1320,176],{"class":147},[130,1322,870],{"class":154},[130,1324,1020],{"class":147},[130,1326,1327,1329,1331,1333],{"class":132,"line":1036},[130,1328,173],{"class":136},[130,1330,176],{"class":147},[130,1332,1030],{"class":136},[130,1334,1033],{"class":147},[130,1336,1337],{"class":132,"line":1042},[130,1338,1039],{"class":794},[130,1340,1341],{"class":132,"line":1047},[130,1342,294],{"class":147},[130,1344,1345],{"class":132,"line":1053},[130,1346,795],{"class":794},[130,1348,1349,1351,1353,1355,1357,1359,1361,1363,1365,1367,1369,1371,1373],{"class":132,"line":1086},[130,1350,1056],{"class":147},[130,1352,212],{"class":136},[130,1354,176],{"class":147},[130,1356,870],{"class":154},[130,1358,978],{"class":147},[130,1360,260],{"class":136},[130,1362,245],{"class":147},[130,1364,1071],{"class":158},[130,1366,1074],{"class":147},[130,1368,179],{"class":136},[130,1370,162],{"class":147},[130,1372,870],{"class":154},[130,1374,1083],{"class":147},[130,1376,1377,1379,1381,1383],{"class":132,"line":1098},[130,1378,173],{"class":136},[130,1380,176],{"class":147},[130,1382,1030],{"class":136},[130,1384,1095],{"class":147},[130,1386,1387,1389],{"class":132,"line":1107},[130,1388,1101],{"class":158},[130,1390,1104],{"class":147},[130,1392,1393],{"class":132,"line":1112},[130,1394,1039],{"class":794},[130,1396,1397],{"class":132,"line":1117},[130,1398,294],{"class":147},[130,1400,1401,1404,1407,1409,1411,1413,1415,1417],{"class":132,"line":1132},[130,1402,1403],{"class":158},"  memset",[130,1405,1406],{"class":147},"(wp, ",[130,1408,470],{"class":215},[130,1410,550],{"class":147},[130,1412,179],{"class":136},[130,1414,162],{"class":147},[130,1416,870],{"class":154},[130,1418,1083],{"class":147},[130,1420,1421],{"class":132,"line":1138},[130,1422,1423],{"class":794},"  \u002F* ... Initialize widget ... *\u002F\n",[130,1425,1426],{"class":132,"line":1143},[130,1427,503],{"emptyLinePlaceholder":7},[130,1429,1430,1433,1435,1437,1439],{"class":132,"line":1148},[130,1431,1432],{"class":136},"  if",[130,1434,1122],{"class":147},[130,1436,190],{"class":136},[130,1438,1127],{"class":215},[130,1440,167],{"class":147},[130,1442,1443],{"class":132,"line":1157},[130,1444,1135],{"class":794},[130,1446,1448],{"class":132,"line":1447},35,[130,1449,294],{"class":147},[130,1451,1453],{"class":132,"line":1452},36,[130,1454,795],{"class":794},[130,1456,1458,1460],{"class":132,"line":1457},37,[130,1459,1151],{"class":158},[130,1461,1154],{"class":147},[130,1463,1465],{"class":132,"line":1464},38,[130,1466,300],{"class":147},[101,1468,104],{"id":1469},"noncompliant-code-example-3",[39,1471,1472,1473,1475,1476,1480,1481,825],{},"According to the C Standard, 6.7.7.3 [ ",[51,1474,54],{"href":53}," ], using two or more incompatible arrays in an expression is ",[51,1477,1479],{"href":1478},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-undefinedbehavior","undefined behavior"," . (See also ",[51,1482,1484],{"href":1483},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_73","undefined behavior 73",[39,1486,1487],{},"For two array types to be compatible, both should have compatible underlying element types, and both size specifiers should have the same constant value. If either of these properties is violated, the resulting behavior is undefined.",[39,1489,1490,1491,587,1493,1496,1497,587,1499,1501,1502,1504],{},"In this noncompliant code example, the two arrays ",[43,1492,51],{},[43,1494,1495],{},"b"," fail to satisfy the equal size specifier criterion for array compatibility. Because ",[43,1498,51],{},[43,1500,1495],{}," are not equal, writing to what is believed to be a valid member of ",[43,1503,51],{}," might exceed its defined memory boundary, resulting in an arbitrary memory overwrite.",[117,1506,1507],{"quality":119},[121,1508,1510],{"className":123,"code":1509,"language":125,"meta":126,"style":126},"enum { ROWS = 10, COLS = 15 };\n \nvoid func(void) {\n  int a[ROWS][COLS];\n  int (*b)[ROWS] = a;\n}\n",[43,1511,1512,1536,1540,1552,1561,1577],{"__ignoreMap":126},[130,1513,1514,1517,1520,1522,1525,1528,1530,1533],{"class":132,"line":133},[130,1515,1516],{"class":154},"enum",[130,1518,1519],{"class":147}," { ROWS ",[130,1521,212],{"class":136},[130,1523,1524],{"class":215}," 10",[130,1526,1527],{"class":147},", COLS ",[130,1529,212],{"class":136},[130,1531,1532],{"class":215}," 15",[130,1534,1535],{"class":147}," };\n",[130,1537,1538],{"class":132,"line":144},[130,1539,148],{"class":147},[130,1541,1542,1544,1546,1548,1550],{"class":132,"line":151},[130,1543,155],{"class":154},[130,1545,436],{"class":158},[130,1547,162],{"class":147},[130,1549,155],{"class":154},[130,1551,167],{"class":147},[130,1553,1554,1556,1558],{"class":132,"line":170},[130,1555,878],{"class":154},[130,1557,451],{"class":450},[130,1559,1560],{"class":147},"[ROWS][COLS];\n",[130,1562,1563,1565,1567,1569,1572,1574],{"class":132,"line":203},[130,1564,878],{"class":154},[130,1566,176],{"class":147},[130,1568,260],{"class":136},[130,1570,1571],{"class":147},"b)[ROWS] ",[130,1573,212],{"class":136},[130,1575,1576],{"class":147}," a;\n",[130,1578,1579],{"class":132,"line":225},[130,1580,300],{"class":147},[39,1582,1583],{},"Most compilers will produce a warning diagnostic if the two array types used in an expression are incompatible.",[101,1585,304],{"id":1586},"compliant-solution-3",[39,1588,1589,1590,1592,1593,1595],{},"In this compliant solution, ",[43,1591,1495],{}," is declared to point to an array with the same number of elements as ",[43,1594,51],{}," , satisfying the size specifier criterion for array compatibility:",[117,1597,1598],{"quality":314},[121,1599,1601],{"className":123,"code":1600,"language":125,"meta":126,"style":126},"enum { ROWS = 10, COLS = 15 };\n \nvoid func(void) {\n  int a[ROWS][COLS];\n  int (*b)[COLS] = a;\n}\n",[43,1602,1603,1621,1625,1637,1645,1660],{"__ignoreMap":126},[130,1604,1605,1607,1609,1611,1613,1615,1617,1619],{"class":132,"line":133},[130,1606,1516],{"class":154},[130,1608,1519],{"class":147},[130,1610,212],{"class":136},[130,1612,1524],{"class":215},[130,1614,1527],{"class":147},[130,1616,212],{"class":136},[130,1618,1532],{"class":215},[130,1620,1535],{"class":147},[130,1622,1623],{"class":132,"line":144},[130,1624,148],{"class":147},[130,1626,1627,1629,1631,1633,1635],{"class":132,"line":151},[130,1628,155],{"class":154},[130,1630,436],{"class":158},[130,1632,162],{"class":147},[130,1634,155],{"class":154},[130,1636,167],{"class":147},[130,1638,1639,1641,1643],{"class":132,"line":170},[130,1640,878],{"class":154},[130,1642,451],{"class":450},[130,1644,1560],{"class":147},[130,1646,1647,1649,1651,1653,1656,1658],{"class":132,"line":203},[130,1648,878],{"class":154},[130,1650,176],{"class":147},[130,1652,260],{"class":136},[130,1654,1655],{"class":147},"b)[COLS] ",[130,1657,212],{"class":136},[130,1659,1576],{"class":147},[130,1661,1662],{"class":132,"line":225},[130,1663,300],{"class":147},[101,1665,1667],{"id":1666},"risk-assessment","Risk Assessment",[39,1669,1670],{},"Optimizing for performance can lead to aliasing errors that can be quite difficult to detect. Furthermore, as in the preceding example, unexpected results can lead to buffer overflow attacks, bypassing security checks, or unexpected execution.",[1672,1673,1674,1675,1674,1705],"table",{},"\n  ",[1676,1677,1678,1679,1674],"thead",{},"\n    ",[1680,1681,1682,1683,1682,1687,1682,1690,1682,1693,1682,1696,1682,1699,1682,1702,1678],"tr",{},"\n      ",[1684,1685,1686],"th",{},"Recommendation",[1684,1688,1689],{},"Severity",[1684,1691,1692],{},"Likelihood",[1684,1694,1695],{},"Detectable",[1684,1697,1698],{},"Repairable",[1684,1700,1701],{},"Priority",[1684,1703,1704],{},"Level",[1706,1707,1678,1708,1674],"tbody",{},[1680,1709,1682,1710,1682,1714,1682,1717,1682,1720,1682,1723,1682,1725,1682,1731,1678],{},[1711,1712,1713],"td",{},"EXP39-C",[1711,1715,1716],{},"Medium",[1711,1718,1719],{},"Unlikely",[1711,1721,1722],{},"No",[1711,1724,1722],{},[1711,1726,1728],{"style":1727},"color: #27ae60;",[1495,1729,1730],{},"P2",[1711,1732,1733],{"style":1727},[1495,1734,1735],{},"L3",[592,1737,1739],{"id":1738},"automated-detection","Automated Detection",[1672,1741,1746,1762],{"className":1742,"style":1745},[1743,1744],"wrapped","relative-table","width: 89.9601%;",[1747,1748,1749,1753,1756,1759],"colgroup",{},[1750,1751],"col",{"style":1752},"width: 8%",[1750,1754],{"style":1755},"width: 25%",[1750,1757],{"style":1758},"width: 24%",[1750,1760],{"style":1761},"width: 40%",[1706,1763,1764,1788,1834,1861,1894,1936,1959,2027,2057,2086],{},[1680,1765,1768,1773,1778,1783],{"className":1766},[1767],"header",[1684,1769,1770],{},[39,1771,1772],{},"Tool",[1684,1774,1775],{},[39,1776,1777],{},"Version",[1684,1779,1780],{},[39,1781,1782],{},"Checker",[1684,1784,1785],{},[39,1786,1787],{},"Description",[1680,1789,1792,1798,1806,1831],{"className":1790},[1791],"odd",[1711,1793,1794],{},[51,1795,1797],{"href":1796},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fastree","Astrée",[1711,1799,1800],{},[1801,1802,1805],"div",{"className":1803},[1804],"content-wrapper","25.10",[1711,1807,1808],{},[39,1809,1810,1817,1818,1817,1823,1817,1828],{},[1811,1812,1813,1814],"strong",{},"inappropriate-pointer-cast",[1815,1816],"br",{}," ",[1811,1819,1820,1821],{},"inappropriate-pointer-cast-implicit",[1815,1822],{},[1811,1824,1825,1826],{},"object-pointer-diff-cast",[1815,1827],{},[1811,1829,1830],{},"object-pointer-diff-cast-implicit",[1711,1832,1833],{},"Partially checked",[1680,1835,1838,1844,1852,1857],{"className":1836},[1837],"even",[1711,1839,1840],{},[51,1841,1843],{"href":1842},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck-premium","Cppcheck Premium",[1711,1845,1846],{},[1801,1847,1849],{"className":1848},[1804],[39,1850,1851],{},"24.11.0",[1711,1853,1854],{},[1811,1855,1856],{},"premium-cert-exp39-c",[1711,1858,1859],{},[1815,1860],{},[1680,1862,1864,1870,1878,1890],{"className":1863},[1791],[1711,1865,1866],{},[51,1867,1869],{"href":1868},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fhelix-qac","Helix QAC",[1711,1871,1872],{},[1801,1873,1875],{"className":1874},[1804],[39,1876,1877],{},"2025.2",[1711,1879,1880,1885],{},[39,1881,1882],{},[1811,1883,1884],{},"C0310, C0751, C3305",[39,1886,1887],{},[1811,1888,1889],{},"C++3017, C++3030, C++3033",[1711,1891,1892],{},[1815,1893],{},[1680,1895,1897,1903,1910,1932],{"className":1896},[1837],[1711,1898,1899],{},[51,1900,1902],{"href":1901},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fklocwork","Klocwork",[1711,1904,1905],{},[1801,1906,1908],{"className":1907},[1804],[39,1909,1877],{},[1711,1911,1912],{},[39,1913,1914,1917,1919,1922,1924,1927,1929],{},[1811,1915,1916],{},"MISRA.CAST.FUNC_PTR.2012",[1815,1918],{},[1811,1920,1921],{},"MISRA.CAST.INCOMPLETE_PTR_TO_ANY.2012",[1815,1923],{},[1811,1925,1926],{},"MISRA.CAST.OBJ_PTR_TO_NON_INT.2012",[1815,1928],{},[1811,1930,1931],{},"MISRA.CAST.OBJ_PTR_TO_OBJ_PTR.2012",[1711,1933,1934],{},[1815,1935],{},[1680,1937,1939,1945,1951,1956],{"className":1938},[1791],[1711,1940,1941],{},[51,1942,1944],{"href":1943},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fldra","LDRA tool suite",[1711,1946,1947],{},[1801,1948,1950],{"className":1949},[1804],"9.7.1",[1711,1952,1953],{},[1811,1954,1955],{},"94 S, 554 S",[1711,1957,1958],{},"Partially implemented",[1680,1960,1962,1968,1975,2007],{"className":1961},[1837],[1711,1963,1964],{},[51,1965,1967],{"href":1966},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fparasoft","Parasoft C\u002FC++test",[1711,1969,1970],{},[1801,1971,1973],{"className":1972},[1804],[39,1974,1877],{},[1711,1976,1977],{},[39,1978,1979,1982,1984,1987,1989,1992,1994,1997,1999,2002,2004],{},[1811,1980,1981],{},"CERT_C-EXP39-a",[1815,1983],{},[1811,1985,1986],{},"CERT_C-EXP39-b",[1815,1988],{},[1811,1990,1991],{},"CERT_C-EXP39-c",[1815,1993],{},[1811,1995,1996],{},"CERT_C-EXP39-d",[1815,1998],{},[1811,2000,2001],{},"CERT_C-EXP39-e",[1815,2003],{},[1811,2005,2006],{},"CERT_C-EXP39-f",[1711,2008,2009],{},[39,2010,2011,2012,2014,2015,2017,2018,2020,2021,2023,2024,2026],{},"There shall be no implicit conversions from integral to floating type",[1815,2013],{},"\nA cast should not be performed between a pointer to object type and a different pointer to object type",[1815,2016],{},"\nAvoid accessing arrays and pointers out of bounds",[1815,2019],{},"\nAvoid buffer overflow from tainted data due to defining incorrect format limits",[1815,2022],{},"\nAvoid buffer read overflow from tainted data",[1815,2025],{},"\nAvoid buffer write overflow from tainted data",[1680,2028,2030,2036,2044,2052],{"className":2029},[1791],[1711,2031,2032],{},[51,2033,2035],{"href":2034},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpolyspace-bug-finder","Polyspace Bug Finder",[1711,2037,2038],{},[1801,2039,2041],{"className":2040},[1804],[39,2042,2043],{},"R2025b",[1711,2045,2046],{},[39,2047,2048],{},[51,2049,2051],{"href":2050},"https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fbugfinder\u002Fref\u002Fcertcruleexp39c.html","CERT C: Rule EXP39-C",[1711,2053,2054],{},[39,2055,2056],{},"Checks for cast to pointer pointing to object of different type (rule partially covered)",[1680,2058,2060,2066,2074,2082],{"className":2059},[1837],[1711,2061,2062],{},[51,2063,2065],{"href":2064},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpvs-studio","PVS-Studio",[1711,2067,2068],{},[1801,2069,2071],{"className":2070},[1804],[39,2072,2073],{},"7.42",[1711,2075,2076],{},[1811,2077,2078],{},[51,2079,2081],{"href":2080},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv580\u002F","V580",[1711,2083,2084],{},[1815,2085],{},[1680,2087,2089,2095,2102,2118],{"className":2088},[1791],[1711,2090,2091],{},[51,2092,2094],{"href":2093},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frulechecker","RuleChecker",[1711,2096,2097],{},[1801,2098,2100],{"className":2099},[1804],[39,2101,1805],{},[1711,2103,2104,1817,2108,1817,2112,1817,2116],{},[1811,2105,1813,2106],{},[1815,2107],{},[1811,2109,1820,2110],{},[1815,2111],{},[1811,2113,1825,2114],{},[1815,2115],{},[1811,2117,1830],{},[1711,2119,1833],{},[592,2121,2123],{"id":2122},"related-vulnerabilities","Related Vulnerabilities",[39,2125,2126,2127,99],{},"Search for vulnerabilities resulting from the violation of this rule on the ",[51,2128,2132],{"href":2129,"rel":2130},"https:\u002F\u002Fwww.kb.cert.org\u002Fvulnotes\u002Fbymetric?searchview&query=FIELD+KEYWORDS+contains+EXP39-C",[2131],"nofollow","CERT website",[101,2134,2136],{"id":2135},"related-guidelines","Related Guidelines",[39,2138,2139,2143],{},[51,2140,2142],{"href":2141},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-RelatedGuidelines","Key here"," (explains table format and definitions)",[1672,2145,2146,2156],{},[1676,2147,2148],{},[1680,2149,2150,2152,2154],{},[1684,2151],{},[1684,2153],{},[1684,2155],{},[1706,2157,2158,2169,2183,2203,2220],{},[1680,2159,2160,2163,2166],{},[1711,2161,2162],{},"Taxonomy",[1711,2164,2165],{},"Taxonomy item",[1711,2167,2168],{},"Relationship",[1680,2170,2171,2177,2180],{},[1711,2172,2173],{},[51,2174,2176],{"href":2175},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTS17961","ISO\u002FIEC TS 17961",[1711,2178,2179],{},"Accessing an object through a pointer to an incompatible type [ptrcomp]",[1711,2181,2182],{},"Prior to 2018-01-12: CERT: Unspecified Relationship",[1680,2184,2185,2192,2200],{},[1711,2186,2187],{},[51,2188,2191],{"href":2189,"rel":2190},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html",[2131],"CWE 2.11",[1711,2193,2194,2199],{},[51,2195,2198],{"href":2196,"rel":2197},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F119.html",[2131],"CWE-119"," , Improper Restriction of Operations within the Bounds of a Memory Buffer",[1711,2201,2202],{},"2017-05-18: CERT: Partial overlap",[1680,2204,2205,2210,2218],{},[1711,2206,2207],{},[51,2208,2191],{"href":2189,"rel":2209},[2131],[1711,2211,2212,2217],{},[51,2213,2216],{"href":2214,"rel":2215},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F125.html",[2131],"CWE-125"," , Out-of-bounds Read",[1711,2219,2202],{},[1680,2221,2222,2228,2235],{},[1711,2223,2224],{},[51,2225,2191],{"href":2226,"rel":2227},"http:\u002F\u002Fcwe.mitre.org\u002F",[2131],[1711,2229,2230],{},[51,2231,2234],{"href":2232,"rel":2233},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html704.html",[2131],"CWE-704",[1711,2236,2237],{},"2017-06-14: CERT: Rule subset of CWE",[101,2239,2241],{"id":2240},"cert-cwe-mapping-notes","CERT-CWE Mapping Notes",[39,2243,2244,2247],{},[51,2245,2142],{"href":2246},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-CERT-CWEMappingNotes"," for mapping notes",[592,2249,2251],{"id":2250},"cwe-119-and-exp39-c","CWE-119 and EXP39-C",[39,2253,2254],{},"Independent( ARR30-C, ARR38-C, ARR32-C, INT30-C, INT31-C, EXP39-C, EXP33-C, FIO37-C) STR31-C = Subset( Union( ARR30-C, ARR38-C)) STR32-C = Subset( ARR38-C)",[39,2256,2257],{},"Intersection( EXP39-C, CWE-119) =",[63,2259,2260],{},[66,2261,2262],{},"Reading memory assigned to one type, but being accessed through a pointer to a larger type.",[39,2264,2265],{},"EXP39-C – CWE-119 =",[63,2267,2268,2271],{},[66,2269,2270],{},"Writing to memory assigned to one type, but accessed through a pointer to a larger type",[66,2272,2273],{},"Reading memory assigned to one type, but being accessed through a pointer to a smaller (or equal-sized) type",[39,2275,2276],{},"CWE-119 – EXP39-C =",[63,2278,2279],{},[66,2280,2281],{},"Reading beyond a buffer using a means other than accessing a variable through an incompatible pointer.",[592,2283,2285],{"id":2284},"cwe-123-and-exp39-c","CWE-123 and EXP39-C",[39,2287,2288],{},"Intersection( CWE-123, EXP39-C) = Ø",[39,2290,2291],{},"EXP39-C allows overflowing a (small) buffer, but not arbitrary memory writes. (Possibly an arbitrary-memory write exploit could be devised using a “perfect storm” of incompatible types, but this would be uncommon in practice.)",[592,2293,2295],{"id":2294},"cwe-125-and-exp39-c","CWE-125 and EXP39-C",[39,2297,2298],{},"Independent( ARR30-C, ARR38-C, EXP39-C, INT30-C) STR31-C = Subset( Union( ARR30-C, ARR38-C)) STR32-C = Subset( ARR38-C)",[39,2300,2301],{},"Intersection( EXP39-C, CWE-125) =",[63,2303,2304],{},[66,2305,2262],{},[39,2307,2308],{},"ESP39-C – CWE-125 =",[63,2310,2311],{},[66,2312,2273],{},[39,2314,2315],{},"CWE-125 – EXP39-C =",[63,2317,2318],{},[66,2319,2281],{},[592,2321,2323],{"id":2322},"cwe-188-and-exp39-c","CWE-188 and EXP39-C",[39,2325,2326],{},"Intersection( CWE-188, EXP39-C) = Ø",[39,2328,2329],{},"CWE-188 appears to be about making assumptions about the layout of memory between distinct variables (that are not part of a larger struct or array). Such assumptions typically involve pointer arithmetic (which violates ARR30-C). EXP39-C involves only one object in memory being (incorrectly) interpreted as if it were another object. EG a float being treated as an int (usually via pointers and typecasting)",[592,2331,2333],{"id":2332},"cwe-704-and-exp39-c","CWE-704 and EXP39-C",[39,2335,2336],{},"CWE-704 = Union( EXP39-C, list) where list =",[63,2338,2339],{},[66,2340,2341],{},"Incorrect (?) typecast that is not incompatible",[101,2343,2345],{"id":2344},"bibliography","Bibliography",[1672,2347,2349,2356],{"className":2348},[1743],[1747,2350,2351,2354],{},[1750,2352],{"style":2353},"width: 50%",[1750,2355],{"style":2353},[1706,2357,2358,2377,2389,2402],{},[1680,2359,2361,2369],{"className":2360},[1791],[1711,2362,2363,2364,2368],{},"[ ",[51,2365,2367],{"href":2366},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Acton06","Acton 2006"," ]",[1711,2370,2371,2372,2376],{},"\" ",[51,2373,2375],{"href":2374},"http:\u002F\u002Fwww.cellperformance.com\u002Fmike_acton\u002F2006\u002F06\u002Funderstanding_strict_aliasing.html","Understanding Strict Aliasing"," \"",[1680,2378,2380,2386],{"className":2379},[1837],[1711,2381,2382],{},[51,2383,2385],{"href":2384},"http:\u002F\u002Fgcc.gnu.org\u002Fbugs.html#known","GCC Known Bugs",[1711,2387,2388],{},"\"C Bugs, Aliasing Issues while Casting to Incompatible Types\"",[1680,2390,2392,2396],{"className":2391},[1791],[1711,2393,2363,2394,2368],{},[51,2395,54],{"href":53},[1711,2397,2398,2399,2401],{},"6.5, \"Expressions\"",[1815,2400],{},"\n6.7.7.3, \"Array Declarators\"",[1680,2403,2405,2411],{"className":2404},[1837],[1711,2406,2363,2407,2368],{},[51,2408,2410],{"href":2409},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Walfridsson03","Walfridsson 2003",[1711,2412,2413],{},[51,2414,2416],{"href":2415},"http:\u002F\u002Fmail-index.netbsd.org\u002Ftech-kern\u002F2003\u002F08\u002F11\u002F0001.html","Aliasing, Pointer Casts and GCC 3.3",[2418,2419],"hr",{},[39,2421,2422,1817,2429,1817,2435],{},[51,2423,2425],{"href":2424},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp37-c",[2426,2427],"img",{"src":2428},"\u002Fattachments\u002F87152044\u002F88034188.png",[51,2430,2432],{"href":2431},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002F",[2426,2433],{"src":2434},"\u002Fattachments\u002F87152044\u002F88034190.png",[51,2436,2438],{"href":2437},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp40-c",[2426,2439],{"src":2440},"\u002Fattachments\u002F87152044\u002F88034189.png",[2442,2443,2444],"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 .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}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 .sOrwc, html code.shiki .sOrwc{--shiki-default:#E36209;--shiki-dark:#FFAB70;--shiki-sepia:#F8F8F2}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}",{"title":126,"searchDepth":144,"depth":144,"links":2446},[2447,2448,2449,2452,2453,2454,2455,2456,2457,2461,2462,2469],{"id":103,"depth":144,"text":104},{"id":303,"depth":144,"text":304},{"id":405,"depth":144,"text":104,"children":2450},[2451],{"id":594,"depth":151,"text":595},{"id":636,"depth":144,"text":304},{"id":828,"depth":144,"text":104},{"id":1162,"depth":144,"text":304},{"id":1469,"depth":144,"text":104},{"id":1586,"depth":144,"text":304},{"id":1666,"depth":144,"text":1667,"children":2458},[2459,2460],{"id":1738,"depth":151,"text":1739},{"id":2122,"depth":151,"text":2123},{"id":2135,"depth":144,"text":2136},{"id":2240,"depth":144,"text":2241,"children":2463},[2464,2465,2466,2467,2468],{"id":2250,"depth":151,"text":2251},{"id":2284,"depth":151,"text":2285},{"id":2294,"depth":151,"text":2295},{"id":2322,"depth":151,"text":2323},{"id":2332,"depth":151,"text":2333},{"id":2344,"depth":144,"text":2345},"Modifying a variable through a pointer of an incompatible type (other than   unsigned char  ) can lead to unpredictable results. Subclause 6.2.7 of the C Standard states that two types may be distinct yet compatible and addresses precisely when two distinct types are compatible.","md",{"tags":2473},[2474,2475,2476,2477,2478,2479,2480,2481],"in-cpp","nptc-aliasing","nptc","exp","rose-possible","cwe-119","rule","android-applicable","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp39-c",{"title":30,"description":2470},"4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F09.exp39-c","RIV8kdwqe8NChkCmJRhZdV2_VqPcS27_MypYfmGbLzo",[2487,2490],{"title":2488,"path":2424,"stem":2489,"children":-1},"EXP37-C. Call functions with the correct number and type of arguments","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F08.exp37-c",{"title":2491,"path":2437,"stem":2492,"children":-1},"EXP40-C. Do not modify constant objects","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F10.exp40-c",[2494],{"title":2495,"path":2496,"stem":2497,"children":2498},"SEI CERT C Coding Standard","\u002Fsei-cert-c-coding-standard","4.sei-cert-c-coding-standard\u002F01.index",[2499,2500,2572,3153,3434,3448,3452,3456,3460,4275],{"title":2495,"path":2496,"stem":2497},{"title":2501,"path":2502,"stem":2503,"children":2504},"Front Matter","\u002Fsei-cert-c-coding-standard\u002Ffront-matter","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F1.index",[2505,2506],{"title":2501,"path":2502,"stem":2503},{"title":2507,"path":2508,"stem":2509,"children":2510},"Introduction","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.index",[2511,2512,2516,2520,2524,2528,2532,2536,2540,2544,2548,2552,2556,2560,2564,2568],{"title":2507,"path":2508,"stem":2509},{"title":2513,"path":2514,"stem":2515},"Scope","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fscope","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.scope",{"title":2517,"path":2518,"stem":2519},"Audience","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Faudience","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F02.audience",{"title":2521,"path":2522,"stem":2523},"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":2525,"path":2526,"stem":2527},"History","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhistory","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F04.history",{"title":2529,"path":2530,"stem":2531},"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":2533,"path":2534,"stem":2535},"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":2537,"path":2538,"stem":2539},"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":2541,"path":2542,"stem":2543},"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":2545,"path":2546,"stem":2547},"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":2549,"path":2550,"stem":2551},"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":2553,"path":2554,"stem":2555},"Usage","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fusage","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F11.usage",{"title":2557,"path":2558,"stem":2559},"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":2561,"path":2562,"stem":2563},"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":2565,"path":2566,"stem":2567},"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":2569,"path":2570,"stem":2571},"Acknowledgments","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Facknowledgments","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F15.acknowledgments",{"title":2573,"path":2574,"stem":2575,"children":2576},"Rules","\u002Fsei-cert-c-coding-standard\u002Frules","4.sei-cert-c-coding-standard\u002F03.rules\u002F01.index",[2577,2578,2582,2612,2642,2704,2742,2768,2790,2847,2873,2931,2965,2995,3005,3043,3113,3131],{"title":2573,"path":2574,"stem":2575},{"title":2579,"path":2580,"stem":2581},"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":2583,"path":2584,"stem":2585,"children":2586},"Arrays (ARR)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F1.index",[2587,2588,2592,2596,2600,2604,2608],{"title":2583,"path":2584,"stem":2585},{"title":2589,"path":2590,"stem":2591},"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":2593,"path":2594,"stem":2595},"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":2597,"path":2598,"stem":2599},"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":2601,"path":2602,"stem":2603},"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":2605,"path":2606,"stem":2607},"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":2609,"path":2610,"stem":2611},"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":2613,"path":2614,"stem":2615,"children":2616},"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",[2617,2618,2622,2626,2630,2634,2638],{"title":2613,"path":2614,"stem":2615},{"title":2619,"path":2620,"stem":2621},"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":2623,"path":2624,"stem":2625},"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":2627,"path":2628,"stem":2629},"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":2631,"path":2632,"stem":2633},"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":2635,"path":2636,"stem":2637},"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":2639,"path":2640,"stem":2641},"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":2643,"path":2644,"stem":2645,"children":2646},"Concurrency (CON)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F01.index",[2647,2648,2652,2656,2660,2664,2668,2672,2676,2680,2684,2688,2692,2696,2700],{"title":2643,"path":2644,"stem":2645},{"title":2649,"path":2650,"stem":2651},"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":2653,"path":2654,"stem":2655},"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":2657,"path":2658,"stem":2659},"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":2661,"path":2662,"stem":2663},"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":2665,"path":2666,"stem":2667},"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":2669,"path":2670,"stem":2671},"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":2673,"path":2674,"stem":2675},"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":2677,"path":2678,"stem":2679},"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":2681,"path":2682,"stem":2683},"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":2685,"path":2686,"stem":2687},"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":2689,"path":2690,"stem":2691},"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":2693,"path":2694,"stem":2695},"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":2697,"path":2698,"stem":2699},"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":2701,"path":2702,"stem":2703},"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":2705,"path":2706,"stem":2707,"children":2708},"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",[2709,2710,2714,2718,2722,2726,2730,2734,2738],{"title":2705,"path":2706,"stem":2707},{"title":2711,"path":2712,"stem":2713},"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":2715,"path":2716,"stem":2717},"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":2719,"path":2720,"stem":2721},"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":2723,"path":2724,"stem":2725},"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":2727,"path":2728,"stem":2729},"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":2731,"path":2732,"stem":2733},"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":2735,"path":2736,"stem":2737},"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":2739,"path":2740,"stem":2741},"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":2743,"path":2744,"stem":2745,"children":2746},"Environment (ENV)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F1.index",[2747,2748,2752,2756,2760,2764],{"title":2743,"path":2744,"stem":2745},{"title":2749,"path":2750,"stem":2751},"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":2753,"path":2754,"stem":2755},"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":2757,"path":2758,"stem":2759},"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":2761,"path":2762,"stem":2763},"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":2765,"path":2766,"stem":2767},"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":2769,"path":2770,"stem":2771,"children":2772},"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",[2773,2774,2778,2782,2786],{"title":2769,"path":2770,"stem":2771},{"title":2775,"path":2776,"stem":2777},"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":2779,"path":2780,"stem":2781},"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":2783,"path":2784,"stem":2785},"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":2787,"path":2788,"stem":2789},"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":2791,"path":2792,"stem":2793,"children":2794},"Expressions (EXP)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F01.index",[2795,2796,2800,2804,2808,2812,2816,2820,2821,2822,2823,2827,2831,2835,2839,2843],{"title":2791,"path":2792,"stem":2793},{"title":2797,"path":2798,"stem":2799},"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":2801,"path":2802,"stem":2803},"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":2805,"path":2806,"stem":2807},"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":2809,"path":2810,"stem":2811},"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":2813,"path":2814,"stem":2815},"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":2817,"path":2818,"stem":2819},"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":2488,"path":2424,"stem":2489},{"title":30,"path":2482,"stem":2484},{"title":2491,"path":2437,"stem":2492},{"title":2824,"path":2825,"stem":2826},"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":2828,"path":2829,"stem":2830},"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":2832,"path":2833,"stem":2834},"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":2836,"path":2837,"stem":2838},"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":2840,"path":2841,"stem":2842},"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":2844,"path":2845,"stem":2846},"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":2848,"path":2849,"stem":2850,"children":2851},"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",[2852,2853,2857,2861,2865,2869],{"title":2848,"path":2849,"stem":2850},{"title":2854,"path":2855,"stem":2856},"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":2858,"path":2859,"stem":2860},"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":2862,"path":2863,"stem":2864},"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":2866,"path":2867,"stem":2868},"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":2870,"path":2871,"stem":2872},"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":2874,"path":2875,"stem":2876,"children":2877},"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",[2878,2879,2883,2887,2891,2895,2899,2903,2907,2911,2915,2919,2923,2927],{"title":2874,"path":2875,"stem":2876},{"title":2880,"path":2881,"stem":2882},"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":2884,"path":2885,"stem":2886},"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":2888,"path":2889,"stem":2890},"FIO34-C. Distinguish between characters read from a file and EOF or WEOF","\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio34-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F11.input-output-fio\u002F04.fio34-c",{"title":2892,"path":2893,"stem":2894},"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":2896,"path":2897,"stem":2898},"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":2900,"path":2901,"stem":2902},"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":2904,"path":2905,"stem":2906},"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":2908,"path":2909,"stem":2910},"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":2912,"path":2913,"stem":2914},"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":2916,"path":2917,"stem":2918},"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":2920,"path":2921,"stem":2922},"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":2924,"path":2925,"stem":2926},"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":2928,"path":2929,"stem":2930},"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":2932,"path":2933,"stem":2934,"children":2935},"Integers (INT)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F1.index",[2936,2937,2941,2945,2949,2953,2957,2961],{"title":2932,"path":2933,"stem":2934},{"title":2938,"path":2939,"stem":2940},"INT30-C. Ensure that unsigned integer operations do not wrap","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint30-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F2.int30-c",{"title":2942,"path":2943,"stem":2944},"INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint31-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F3.int31-c",{"title":2946,"path":2947,"stem":2948},"INT32-C. Ensure that operations on signed integers do not result in overflow","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int\u002Fint32-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F4.int32-c",{"title":2950,"path":2951,"stem":2952},"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":2954,"path":2955,"stem":2956},"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":2958,"path":2959,"stem":2960},"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":2962,"path":2963,"stem":2964},"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":2966,"path":2967,"stem":2968,"children":2969},"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",[2970,2971,2975,2979,2983,2987,2991],{"title":2966,"path":2967,"stem":2968},{"title":2972,"path":2973,"stem":2974},"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":2976,"path":2977,"stem":2978},"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":2980,"path":2981,"stem":2982},"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":2984,"path":2985,"stem":2986},"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":2988,"path":2989,"stem":2990},"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":2992,"path":2993,"stem":2994},"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":2996,"path":2997,"stem":2998,"children":2999},"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",[3000,3001],{"title":2996,"path":2997,"stem":2998},{"title":3002,"path":3003,"stem":3004},"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":3006,"path":3007,"stem":3008,"children":3009},"Miscellaneous (MSC)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F1.index",[3010,3011,3015,3019,3023,3027,3031,3035,3039],{"title":3006,"path":3007,"stem":3008},{"title":3012,"path":3013,"stem":3014},"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":3016,"path":3017,"stem":3018},"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":3020,"path":3021,"stem":3022},"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":3024,"path":3025,"stem":3026},"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":3028,"path":3029,"stem":3030},"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":3032,"path":3033,"stem":3034},"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":3036,"path":3037,"stem":3038},"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":3040,"path":3041,"stem":3042},"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":3044,"path":3045,"stem":3046,"children":3047},"POSIX (POS)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F01.index",[3048,3049,3053,3057,3061,3065,3069,3073,3077,3081,3085,3089,3093,3097,3101,3105,3109],{"title":3044,"path":3045,"stem":3046},{"title":3050,"path":3051,"stem":3052},"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":3054,"path":3055,"stem":3056},"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":3058,"path":3059,"stem":3060},"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":3062,"path":3063,"stem":3064},"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":3066,"path":3067,"stem":3068},"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":3070,"path":3071,"stem":3072},"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":3074,"path":3075,"stem":3076},"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":3078,"path":3079,"stem":3080},"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":3082,"path":3083,"stem":3084},"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":3086,"path":3087,"stem":3088},"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":3090,"path":3091,"stem":3092},"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":3094,"path":3095,"stem":3096},"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":3098,"path":3099,"stem":3100},"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":3102,"path":3103,"stem":3104},"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":3106,"path":3107,"stem":3108},"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":3110,"path":3111,"stem":3112},"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":3114,"path":3115,"stem":3116,"children":3117},"Preprocessor (PRE)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F1.index",[3118,3119,3123,3127],{"title":3114,"path":3115,"stem":3116},{"title":3120,"path":3121,"stem":3122},"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":3124,"path":3125,"stem":3126},"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":3128,"path":3129,"stem":3130},"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":3132,"path":3133,"stem":3134,"children":3135},"Signals (SIG)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F1.index",[3136,3137,3141,3145,3149],{"title":3132,"path":3133,"stem":3134},{"title":3138,"path":3139,"stem":3140},"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":3142,"path":3143,"stem":3144},"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":3146,"path":3147,"stem":3148},"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":3150,"path":3151,"stem":3152},"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":3154,"path":3155,"stem":3156,"children":3157},"Back Matter","\u002Fsei-cert-c-coding-standard\u002Fback-matter","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F1.index",[3158,3159,3163,3167,3171,3175,3373,3430],{"title":3154,"path":3155,"stem":3156},{"title":3160,"path":3161,"stem":3162},"AA. Bibliography","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F2.aa-bibliography",{"title":3164,"path":3165,"stem":3166},"BB. Definitions","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F3.bb-definitions",{"title":3168,"path":3169,"stem":3170},"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":3172,"path":3173,"stem":3174},"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":3176,"path":3177,"stem":3178,"children":3179},"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",[3180,3181,3183,3187,3191,3195,3199,3203,3207,3211,3215,3219,3223,3227,3231,3235,3239,3243,3245,3249,3253,3257,3261,3265,3269,3273,3277,3279,3283,3285,3289,3292,3296,3299,3303,3307,3311,3313,3317,3319,3323,3327,3331,3335,3337,3341,3345,3349,3353,3357,3361,3365,3369],{"title":3176,"path":3177,"stem":3178},{"title":1797,"path":1796,"stem":3182},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F02.astree",{"title":3184,"path":3185,"stem":3186},"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":3188,"path":3189,"stem":3190},"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":3192,"path":3193,"stem":3194},"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":3196,"path":3197,"stem":3198},"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":3200,"path":3201,"stem":3202},"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":3204,"path":3205,"stem":3206},"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":3208,"path":3209,"stem":3210},"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":3212,"path":3213,"stem":3214},"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":3216,"path":3217,"stem":3218},"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":3220,"path":3221,"stem":3222},"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":3224,"path":3225,"stem":3226},"CodeSonar","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodesonar","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F13.codesonar",{"title":3228,"path":3229,"stem":3230},"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":3232,"path":3233,"stem":3234},"Coverity","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcoverity","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F15.coverity",{"title":3236,"path":3237,"stem":3238},"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":3240,"path":3241,"stem":3242},"Cppcheck","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F17.cppcheck",{"title":1843,"path":1842,"stem":3244},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F18.cppcheck-premium",{"title":3246,"path":3247,"stem":3248},"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":3250,"path":3251,"stem":3252},"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":3254,"path":3255,"stem":3256},"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":3258,"path":3259,"stem":3260},"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":3262,"path":3263,"stem":3264},"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":3266,"path":3267,"stem":3268},"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":3270,"path":3271,"stem":3272},"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":3274,"path":3275,"stem":3276},"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":1869,"path":1868,"stem":3278},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F27.helix-qac",{"title":3280,"path":3281,"stem":3282},"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":1902,"path":1901,"stem":3284},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F29.klocwork",{"title":3286,"path":3287,"stem":3288},"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":3290,"path":1943,"stem":3291},"LDRA","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F31.ldra",{"title":3293,"path":3294,"stem":3295},"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":3297,"path":1966,"stem":3298},"Parasoft","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F33.parasoft",{"title":3300,"path":3301,"stem":3302},"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":3304,"path":3305,"stem":3306},"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":3308,"path":3309,"stem":3310},"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":2035,"path":2034,"stem":3312},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F37.polyspace-bug-finder",{"title":3314,"path":3315,"stem":3316},"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":2065,"path":2064,"stem":3318},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F39.pvs-studio",{"title":3320,"path":3321,"stem":3322},"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":3324,"path":3325,"stem":3326},"Rose","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frose","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F41.rose",{"title":3328,"path":3329,"stem":3330},"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":3332,"path":3333,"stem":3334},"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":2094,"path":2093,"stem":3336},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F44.rulechecker",{"title":3338,"path":3339,"stem":3340},"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":3342,"path":3343,"stem":3344},"Security Reviewer - Static Reviewer","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsecurity-reviewer-static-reviewer","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F46.security-reviewer-static-reviewer",{"title":3346,"path":3347,"stem":3348},"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":3350,"path":3351,"stem":3352},"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":3354,"path":3355,"stem":3356},"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":3358,"path":3359,"stem":3360},"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":3362,"path":3363,"stem":3364},"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":3366,"path":3367,"stem":3368},"TrustInSoft Analyzer","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Ftrustinsoft-analyzer","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F52.trustinsoft-analyzer",{"title":3370,"path":3371,"stem":3372},"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":3374,"path":3375,"stem":3376,"children":3377},"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",[3378,3379,3383,3387,3391,3395,3399,3403,3407,3411,3414,3418,3422,3426],{"title":3374,"path":3375,"stem":3376},{"title":3380,"path":3381,"stem":3382},"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":3384,"path":3385,"stem":3386},"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":3388,"path":3389,"stem":3390},"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":3392,"path":3393,"stem":3394},"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":3396,"path":3397,"stem":3398},"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":3400,"path":3401,"stem":3402},"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":3404,"path":3405,"stem":3406},"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":3408,"path":3409,"stem":3410},"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":3408,"path":3412,"stem":3413},"\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":3415,"path":3416,"stem":3417},"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":3419,"path":3420,"stem":3421},"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":3423,"path":3424,"stem":3425},"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":3427,"path":3428,"stem":3429},"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":3431,"path":3432,"stem":3433},"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":3435,"path":3436,"stem":3437,"children":3438},"Admin","\u002Fsei-cert-c-coding-standard\u002Fadmin","4.sei-cert-c-coding-standard\u002F05.admin\u002F1.index",[3439,3440,3444],{"title":3435,"path":3436,"stem":3437},{"title":3441,"path":3442,"stem":3443},"TODO List","\u002Fsei-cert-c-coding-standard\u002Fadmin\u002Ftodo-list","4.sei-cert-c-coding-standard\u002F05.admin\u002F2.todo-list",{"title":3445,"path":3446,"stem":3447},"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":3449,"path":3450,"stem":3451},"Coding Style Guidelines","\u002Fsei-cert-c-coding-standard\u002Fcoding-style-guidelines","4.sei-cert-c-coding-standard\u002F05.coding-style-guidelines",{"title":3453,"path":3454,"stem":3455},"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":3457,"path":3458,"stem":3459},"Wiki Contents","\u002Fsei-cert-c-coding-standard\u002Fwiki-contents","4.sei-cert-c-coding-standard\u002F06.wiki-contents",{"title":3461,"path":3462,"stem":3463,"children":3464},"Recommendations","\u002Fsei-cert-c-coding-standard\u002Frecommendations","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F01.index",[3465,3466,3507,3524,3569,3610,3707,3724,3757,3826,3863,3948,4013,4062,4087,4180,4201,4258],{"title":3461,"path":3462,"stem":3463},{"title":2579,"path":3467,"stem":3468,"children":3469},"\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",[3470,3471,3475,3479,3483,3487,3491,3495,3499,3503],{"title":2579,"path":3467,"stem":3468},{"title":3472,"path":3473,"stem":3474},"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":3476,"path":3477,"stem":3478},"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":3480,"path":3481,"stem":3482},"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":3484,"path":3485,"stem":3486},"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":3488,"path":3489,"stem":3490},"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":3492,"path":3493,"stem":3494},"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":3496,"path":3497,"stem":3498},"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":3500,"path":3501,"stem":3502},"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":3504,"path":3505,"stem":3506},"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":2583,"path":3508,"stem":3509,"children":3510},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F1.index",[3511,3512,3516,3520],{"title":2583,"path":3508,"stem":3509},{"title":3513,"path":3514,"stem":3515},"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":3517,"path":3518,"stem":3519},"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":3521,"path":3522,"stem":3523},"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":2613,"path":3525,"stem":3526,"children":3527},"\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",[3528,3529,3533,3537,3541,3545,3549,3553,3557,3561,3565],{"title":2613,"path":3525,"stem":3526},{"title":3530,"path":3531,"stem":3532},"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":3534,"path":3535,"stem":3536},"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":3538,"path":3539,"stem":3540},"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":3542,"path":3543,"stem":3544},"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":3546,"path":3547,"stem":3548},"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":3550,"path":3551,"stem":3552},"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":3554,"path":3555,"stem":3556},"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":3558,"path":3559,"stem":3560},"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":3562,"path":3563,"stem":3564},"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":3566,"path":3567,"stem":3568},"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":2643,"path":3570,"stem":3571,"children":3572},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F01.index",[3573,3574,3578,3582,3586,3590,3594,3598,3602,3606],{"title":2643,"path":3570,"stem":3571},{"title":3575,"path":3576,"stem":3577},"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":3579,"path":3580,"stem":3581},"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":3583,"path":3584,"stem":3585},"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":3587,"path":3588,"stem":3589},"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":3591,"path":3592,"stem":3593},"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":3595,"path":3596,"stem":3597},"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":3599,"path":3600,"stem":3601},"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":3603,"path":3604,"stem":3605},"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":3607,"path":3608,"stem":3609},"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":2705,"path":3611,"stem":3612,"children":3613},"\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",[3614,3615,3619,3623,3627,3631,3635,3639,3643,3647,3651,3655,3659,3663,3667,3671,3675,3679,3683,3687,3691,3695,3699,3703],{"title":2705,"path":3611,"stem":3612},{"title":3616,"path":3617,"stem":3618},"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":3620,"path":3621,"stem":3622},"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":3624,"path":3625,"stem":3626},"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":3628,"path":3629,"stem":3630},"DCL03-C. Use a static assertion to test the value of a constant expression","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl03-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F06.declarations-and-initialization-dcl\u002F05.dcl03-c",{"title":3632,"path":3633,"stem":3634},"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":3636,"path":3637,"stem":3638},"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":3640,"path":3641,"stem":3642},"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":3644,"path":3645,"stem":3646},"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":3648,"path":3649,"stem":3650},"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":3652,"path":3653,"stem":3654},"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":3656,"path":3657,"stem":3658},"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":3660,"path":3661,"stem":3662},"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":3664,"path":3665,"stem":3666},"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":3668,"path":3669,"stem":3670},"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":3672,"path":3673,"stem":3674},"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":3676,"path":3677,"stem":3678},"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":3680,"path":3681,"stem":3682},"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":3684,"path":3685,"stem":3686},"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":3688,"path":3689,"stem":3690},"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":3692,"path":3693,"stem":3694},"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":3696,"path":3697,"stem":3698},"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":3700,"path":3701,"stem":3702},"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":3704,"path":3705,"stem":3706},"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":2743,"path":3708,"stem":3709,"children":3710},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F1.index",[3711,3712,3716,3720],{"title":2743,"path":3708,"stem":3709},{"title":3713,"path":3714,"stem":3715},"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":3717,"path":3718,"stem":3719},"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":3721,"path":3722,"stem":3723},"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":2769,"path":3725,"stem":3726,"children":3727},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F1.index",[3728,3729,3733,3737,3741,3745,3749,3753],{"title":2769,"path":3725,"stem":3726},{"title":3730,"path":3731,"stem":3732},"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":3734,"path":3735,"stem":3736},"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":3738,"path":3739,"stem":3740},"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":3742,"path":3743,"stem":3744},"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":3746,"path":3747,"stem":3748},"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":3750,"path":3751,"stem":3752},"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":3754,"path":3755,"stem":3756},"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":2791,"path":3758,"stem":3759,"children":3760},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F01.index",[3761,3762,3766,3770,3774,3778,3782,3786,3790,3794,3798,3802,3806,3810,3814,3818,3822],{"title":2791,"path":3758,"stem":3759},{"title":3763,"path":3764,"stem":3765},"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":3767,"path":3768,"stem":3769},"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":3771,"path":3772,"stem":3773},"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":3775,"path":3776,"stem":3777},"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":3779,"path":3780,"stem":3781},"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":3783,"path":3784,"stem":3785},"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":3787,"path":3788,"stem":3789},"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":3791,"path":3792,"stem":3793},"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":3795,"path":3796,"stem":3797},"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":3799,"path":3800,"stem":3801},"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":3803,"path":3804,"stem":3805},"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":3807,"path":3808,"stem":3809},"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":3811,"path":3812,"stem":3813},"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":3815,"path":3816,"stem":3817},"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":3819,"path":3820,"stem":3821},"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":3823,"path":3824,"stem":3825},"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":2848,"path":3827,"stem":3828,"children":3829},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F1.index",[3830,3831,3835,3839,3843,3847,3851,3855,3859],{"title":2848,"path":3827,"stem":3828},{"title":3832,"path":3833,"stem":3834},"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":3836,"path":3837,"stem":3838},"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":3840,"path":3841,"stem":3842},"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":3844,"path":3845,"stem":3846},"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":3848,"path":3849,"stem":3850},"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":3852,"path":3853,"stem":3854},"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":3856,"path":3857,"stem":3858},"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":3860,"path":3861,"stem":3862},"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":2874,"path":3864,"stem":3865,"children":3866},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F01.index",[3867,3868,3872,3876,3880,3884,3888,3892,3896,3900,3904,3908,3912,3916,3920,3924,3928,3932,3936,3940,3944],{"title":2874,"path":3864,"stem":3865},{"title":3869,"path":3870,"stem":3871},"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":3873,"path":3874,"stem":3875},"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":3877,"path":3878,"stem":3879},"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":3881,"path":3882,"stem":3883},"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":3885,"path":3886,"stem":3887},"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":3889,"path":3890,"stem":3891},"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":3893,"path":3894,"stem":3895},"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":3897,"path":3898,"stem":3899},"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":3901,"path":3902,"stem":3903},"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":3905,"path":3906,"stem":3907},"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":3909,"path":3910,"stem":3911},"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":3913,"path":3914,"stem":3915},"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":3917,"path":3918,"stem":3919},"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":3921,"path":3922,"stem":3923},"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":3925,"path":3926,"stem":3927},"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":3929,"path":3930,"stem":3931},"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":3933,"path":3934,"stem":3935},"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":3937,"path":3938,"stem":3939},"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":3941,"path":3942,"stem":3943},"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":3945,"path":3946,"stem":3947},"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":2932,"path":3949,"stem":3950,"children":3951},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F01.index",[3952,3953,3957,3961,3965,3969,3973,3977,3981,3985,3989,3993,3997,4001,4005,4009],{"title":2932,"path":3949,"stem":3950},{"title":3954,"path":3955,"stem":3956},"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":3958,"path":3959,"stem":3960},"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":3962,"path":3963,"stem":3964},"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":3966,"path":3967,"stem":3968},"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":3970,"path":3971,"stem":3972},"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":3974,"path":3975,"stem":3976},"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":3978,"path":3979,"stem":3980},"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":3982,"path":3983,"stem":3984},"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":3986,"path":3987,"stem":3988},"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":3990,"path":3991,"stem":3992},"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":3994,"path":3995,"stem":3996},"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":3998,"path":3999,"stem":4000},"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":4002,"path":4003,"stem":4004},"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":4006,"path":4007,"stem":4008},"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":4010,"path":4011,"stem":4012},"INT18-C. Evaluate integer expressions in a larger size before comparing or assigning to that size","\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int\u002Fint18-c","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F17.int18-c",{"title":2966,"path":4014,"stem":4015,"children":4016},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F01.index",[4017,4018,4022,4026,4030,4034,4038,4042,4046,4050,4054,4058],{"title":2966,"path":4014,"stem":4015},{"title":4019,"path":4020,"stem":4021},"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":4023,"path":4024,"stem":4025},"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":4027,"path":4028,"stem":4029},"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":4031,"path":4032,"stem":4033},"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":4035,"path":4036,"stem":4037},"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":4039,"path":4040,"stem":4041},"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":4043,"path":4044,"stem":4045},"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":4047,"path":4048,"stem":4049},"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":4051,"path":4052,"stem":4053},"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":4055,"path":4056,"stem":4057},"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":4059,"path":4060,"stem":4061},"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":2996,"path":4063,"stem":4064,"children":4065},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F1.index",[4066,4067,4071,4075,4079,4083],{"title":2996,"path":4063,"stem":4064},{"title":4068,"path":4069,"stem":4070},"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":4072,"path":4073,"stem":4074},"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":4076,"path":4077,"stem":4078},"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":4080,"path":4081,"stem":4082},"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":4084,"path":4085,"stem":4086},"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":3006,"path":4088,"stem":4089,"children":4090},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F01.index",[4091,4092,4096,4100,4104,4108,4112,4116,4120,4124,4128,4132,4136,4140,4144,4148,4152,4156,4160,4164,4168,4172,4176],{"title":3006,"path":4088,"stem":4089},{"title":4093,"path":4094,"stem":4095},"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":4097,"path":4098,"stem":4099},"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":4101,"path":4102,"stem":4103},"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":4105,"path":4106,"stem":4107},"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":4109,"path":4110,"stem":4111},"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":4113,"path":4114,"stem":4115},"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":4117,"path":4118,"stem":4119},"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":4121,"path":4122,"stem":4123},"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":4125,"path":4126,"stem":4127},"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":4129,"path":4130,"stem":4131},"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":4133,"path":4134,"stem":4135},"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":4137,"path":4138,"stem":4139},"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":4141,"path":4142,"stem":4143},"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":4145,"path":4146,"stem":4147},"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":4149,"path":4150,"stem":4151},"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":4153,"path":4154,"stem":4155},"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":4157,"path":4158,"stem":4159},"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":4161,"path":4162,"stem":4163},"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":4165,"path":4166,"stem":4167},"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":4169,"path":4170,"stem":4171},"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":4173,"path":4174,"stem":4175},"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":4177,"path":4178,"stem":4179},"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":3044,"path":4181,"stem":4182,"children":4183},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F1.index",[4184,4185,4189,4193,4197],{"title":3044,"path":4181,"stem":4182},{"title":4186,"path":4187,"stem":4188},"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":4190,"path":4191,"stem":4192},"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":4194,"path":4195,"stem":4196},"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":4198,"path":4199,"stem":4200},"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":3114,"path":4202,"stem":4203,"children":4204},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F01.index",[4205,4206,4210,4214,4218,4222,4226,4230,4234,4238,4242,4246,4250,4254],{"title":3114,"path":4202,"stem":4203},{"title":4207,"path":4208,"stem":4209},"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":4211,"path":4212,"stem":4213},"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":4215,"path":4216,"stem":4217},"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":4219,"path":4220,"stem":4221},"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":4223,"path":4224,"stem":4225},"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":4227,"path":4228,"stem":4229},"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":4231,"path":4232,"stem":4233},"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":4235,"path":4236,"stem":4237},"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":4239,"path":4240,"stem":4241},"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":4243,"path":4244,"stem":4245},"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":4247,"path":4248,"stem":4249},"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":4251,"path":4252,"stem":4253},"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":4255,"path":4256,"stem":4257},"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":3132,"path":4259,"stem":4260,"children":4261},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F1.index",[4262,4263,4267,4271],{"title":3132,"path":4259,"stem":4260},{"title":4264,"path":4265,"stem":4266},"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":4268,"path":4269,"stem":4270},"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":4272,"path":4273,"stem":4274},"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":4276,"path":4277,"stem":4278},"CERT manifest files","\u002Fsei-cert-c-coding-standard\u002Fcert-manifest-files","4.sei-cert-c-coding-standard\u002F09.cert-manifest-files",1775657796059]