[{"data":1,"prerenderedAt":5843},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp33-c":28,"surround-\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp33-c":4077,"sidebar-sei-cert-c-coding-standard":4084},[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":4053,"extension":4054,"meta":4055,"navigation":7,"path":4073,"seo":4074,"stem":4075,"__hash__":4076},"content\u002F4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F04.exp33-c.md","EXP33-C. Do not read uninitialized memory",{"type":32,"value":33,"toc":4019},"minimark",[34,38,48,59,66,69,72,138,175,180,217,455,458,465,469,475,483,663,667,701,917,920,928,1031,1041,1045,1052,1170,1174,1177,1232,1240,1258,1355,1361,1370,1473,1477,1505,1638,1641,1645,1648,1787,1792,1812,1820,1826,2256,2261,2268,2723,2727,2761,2765,2782,2796,2857,2862,3594,3598,3617,3629,3633,3640,3800,3804,3810,3814,3822,3826,3834,3838,3841,3844,3849,3853,3856,3859,3863,3866,3871,3874,3878,3881,3884,3888,3891,3896,3900,3990,3993,4015],[35,36,30],"h1",{"id":37},"exp33-c-do-not-read-uninitialized-memory",[39,40,41,42,47],"p",{},"Local, automatic variables assume unexpected values if they are read before they are initialized. The C Standard, 6.7.11, paragraph 11, specifies [ ",[43,44,46],"a",{"href":45},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IEC9899-2024","ISO\u002FIEC 9899:2024"," ]",[49,50,51],"blockquote",{},[39,52,53,54,58],{},"If an object that has automatic storage duration is not initialized explicitly, its representation is ",[43,55,57],{"href":56},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-indeterminatevalue","indeterminate"," .",[39,60,61,62,58],{},"See ",[43,63,65],{"href":64},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_11","undefined behavior 11",[39,67,68],{},"When local, automatic variables are stored on the program stack, for example, their values default to whichever values are currently stored in stack memory.",[39,70,71],{},"Additionally, some dynamic memory allocation functions do not initialize the contents of the memory they allocate.",[73,74,75,86],"table",{},[76,77,78],"thead",{},[79,80,81,84],"tr",{},[82,83],"th",{},[82,85],{},[87,88,89,98,109,119,128],"tbody",{},[79,90,91,95],{},[92,93,94],"td",{},"Function",[92,96,97],{},"Initialization",[79,99,100,106],{},[92,101,102],{},[103,104,105],"code",{},"aligned_alloc()",[92,107,108],{},"Does not perform initialization",[79,110,111,116],{},[92,112,113],{},[103,114,115],{},"calloc()",[92,117,118],{},"Zero-initializes allocated memory",[79,120,121,126],{},[92,122,123],{},[103,124,125],{},"malloc()",[92,127,108],{},[79,129,130,135],{},[92,131,132],{},[103,133,134],{},"realloc()",[92,136,137],{},"Copies contents from original pointer; may not initialize all memory",[39,139,140,141,144,145,149,150,154,155,159,160,164,165,169,170,174],{},"Uninitialized automatic variables or dynamically allocated memory has ",[43,142,143],{"href":56},"indeterminate values"," , which for objects of some types, can be a ",[43,146,148],{"href":147},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-traprepresentation","trap representation"," . Reading such trap representations is ",[43,151,153],{"href":152},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-undefinedbehavior","undefined behavior"," ; it can cause a program to behave in an ",[43,156,158],{"href":157},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-unexpectedbehavior","unexpected"," manner and provide an avenue for attack. (See ",[43,161,163],{"href":162},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_10","undefined behavior 10"," and ",[43,166,168],{"href":167},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_12","undefined behavior 12"," .)  In many cases, compilers issue a warning diagnostic message when reading uninitialized variables. (See ",[43,171,173],{"href":172},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc00-c","MSC00-C. Compile cleanly at high warning levels"," for more information.)",[176,177,179],"h2",{"id":178},"noncompliant-code-example-return-by-reference","Noncompliant Code Example (Return-by-Reference)",[39,181,182,183,186,187,190,191,194,195,197,198,201,202,205,206,208,209,211,212,214,215,58],{},"In this noncompliant code example, the ",[103,184,185],{},"set_flag()"," function is intended to set the parameter, ",[103,188,189],{},"sign_flag"," , to the sign of ",[103,192,193],{},"number"," . However, the programmer neglected to account for the case where ",[103,196,193],{}," is equal to ",[103,199,200],{},"0"," . Because the local variable ",[103,203,204],{},"sign"," is uninitialized when calling ",[103,207,185],{}," and is never written to by ",[103,210,185],{}," , the comparison operation exhibits ",[43,213,153],{"href":152}," when reading ",[103,216,204],{},[218,219,221],"code-block",{"quality":220},"bad",[222,223,228],"pre",{"className":224,"code":225,"language":226,"meta":227,"style":227},"language-c shiki shiki-themes github-light github-dark monokai","void set_flag(int number, int *sign_flag) {\n  if (NULL == sign_flag) {\n    return;\n  }\n\n  if (number > 0) {\n    *sign_flag = 1;\n  } else if (number \u003C 0) {\n    *sign_flag = -1;\n  }\n}\n\nint is_negative(int number) {\n  int sign;\n  set_flag(number, &sign);\n  return sign \u003C 0;\n}\n","c","",[103,229,230,268,287,296,302,308,324,341,362,379,384,390,395,411,420,435,450],{"__ignoreMap":227},[231,232,235,239,243,247,250,254,257,259,263,265],"span",{"class":233,"line":234},"line",1,[231,236,238],{"class":237},"sq6CD","void",[231,240,242],{"class":241},"srTi1"," set_flag",[231,244,246],{"class":245},"sMOD_","(",[231,248,249],{"class":237},"int",[231,251,253],{"class":252},"sTHNf"," number",[231,255,256],{"class":245},", ",[231,258,249],{"class":237},[231,260,262],{"class":261},"sC2Qs"," *",[231,264,189],{"class":252},[231,266,267],{"class":245},") {\n",[231,269,271,274,277,281,284],{"class":233,"line":270},2,[231,272,273],{"class":261},"  if",[231,275,276],{"class":245}," (",[231,278,280],{"class":279},"s7F3e","NULL",[231,282,283],{"class":261}," ==",[231,285,286],{"class":245}," sign_flag) {\n",[231,288,290,293],{"class":233,"line":289},3,[231,291,292],{"class":261},"    return",[231,294,295],{"class":245},";\n",[231,297,299],{"class":233,"line":298},4,[231,300,301],{"class":245},"  }\n",[231,303,305],{"class":233,"line":304},5,[231,306,307],{"emptyLinePlaceholder":7},"\n",[231,309,311,313,316,319,322],{"class":233,"line":310},6,[231,312,273],{"class":261},[231,314,315],{"class":245}," (number ",[231,317,318],{"class":261},">",[231,320,321],{"class":279}," 0",[231,323,267],{"class":245},[231,325,327,330,333,336,339],{"class":233,"line":326},7,[231,328,329],{"class":261},"    *",[231,331,332],{"class":245},"sign_flag ",[231,334,335],{"class":261},"=",[231,337,338],{"class":279}," 1",[231,340,295],{"class":245},[231,342,344,347,350,353,355,358,360],{"class":233,"line":343},8,[231,345,346],{"class":245},"  } ",[231,348,349],{"class":261},"else",[231,351,352],{"class":261}," if",[231,354,315],{"class":245},[231,356,357],{"class":261},"\u003C",[231,359,321],{"class":279},[231,361,267],{"class":245},[231,363,365,367,369,371,374,377],{"class":233,"line":364},9,[231,366,329],{"class":261},[231,368,332],{"class":245},[231,370,335],{"class":261},[231,372,373],{"class":261}," -",[231,375,376],{"class":279},"1",[231,378,295],{"class":245},[231,380,382],{"class":233,"line":381},10,[231,383,301],{"class":245},[231,385,387],{"class":233,"line":386},11,[231,388,389],{"class":245},"}\n",[231,391,393],{"class":233,"line":392},12,[231,394,307],{"emptyLinePlaceholder":7},[231,396,398,400,403,405,407,409],{"class":233,"line":397},13,[231,399,249],{"class":237},[231,401,402],{"class":241}," is_negative",[231,404,246],{"class":245},[231,406,249],{"class":237},[231,408,253],{"class":252},[231,410,267],{"class":245},[231,412,414,417],{"class":233,"line":413},14,[231,415,416],{"class":237},"  int",[231,418,419],{"class":245}," sign;\n",[231,421,423,426,429,432],{"class":233,"line":422},15,[231,424,425],{"class":241},"  set_flag",[231,427,428],{"class":245},"(number, ",[231,430,431],{"class":261},"&",[231,433,434],{"class":245},"sign);\n",[231,436,438,441,444,446,448],{"class":233,"line":437},16,[231,439,440],{"class":261},"  return",[231,442,443],{"class":245}," sign ",[231,445,357],{"class":261},[231,447,321],{"class":279},[231,449,295],{"class":245},[231,451,453],{"class":233,"line":452},17,[231,454,389],{"class":245},[39,456,457],{},"Some compilers assume that when the address of an uninitialized variable is passed to a function, the variable is initialized within that function. Because compilers frequently fail to diagnose any resulting failure to initialize the variable, the programmer must apply additional scrutiny to ensure the correctness of the code.",[39,459,460,461,174],{},"This defect results from a failure to consider all possible data states. (See ",[43,462,464],{"href":463},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc01-c","MSC01-C. Strive for logical completeness",[176,466,468],{"id":467},"compliant-solution-return-by-reference","Compliant Solution (Return-by-Reference)",[39,470,471,472,474],{},"This compliant solution trivially repairs the problem by accounting for the possibility that ",[103,473,193],{}," can be equal to 0.",[39,476,477,478,482],{},"Although compilers and ",[43,479,481],{"href":480},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-staticanalysis","static analysis"," tools often detect uses of uninitialized variables when they have access to the source code, diagnosing the problem is difficult or impossible when either the initialization or the use takes place in object code for which the source code is inaccessible. Unless doing so is prohibitive for performance reasons, an additional defense-in-depth practice worth considering is to initialize local variables immediately after declaration.",[218,484,486],{"quality":485},"good",[222,487,489],{"className":224,"code":488,"language":226,"meta":227,"style":227},"void set_flag(int number, int *sign_flag) {\n  if (NULL == sign_flag) {\n    return;\n  }\n\n  \u002F* Account for number being 0 *\u002F\n  if (number >= 0) { \n    *sign_flag = 1;\n  } else {\n    *sign_flag = -1;\n  }\n}\n\nint is_negative(int number) {\n  int sign = 0; \u002F* Initialize for defense-in-depth *\u002F\n  set_flag(number, &sign);\n  return sign \u003C 0;\n}\n",[103,490,491,513,525,531,535,539,545,559,571,580,594,598,602,606,620,636,646,658],{"__ignoreMap":227},[231,492,493,495,497,499,501,503,505,507,509,511],{"class":233,"line":234},[231,494,238],{"class":237},[231,496,242],{"class":241},[231,498,246],{"class":245},[231,500,249],{"class":237},[231,502,253],{"class":252},[231,504,256],{"class":245},[231,506,249],{"class":237},[231,508,262],{"class":261},[231,510,189],{"class":252},[231,512,267],{"class":245},[231,514,515,517,519,521,523],{"class":233,"line":270},[231,516,273],{"class":261},[231,518,276],{"class":245},[231,520,280],{"class":279},[231,522,283],{"class":261},[231,524,286],{"class":245},[231,526,527,529],{"class":233,"line":289},[231,528,292],{"class":261},[231,530,295],{"class":245},[231,532,533],{"class":233,"line":298},[231,534,301],{"class":245},[231,536,537],{"class":233,"line":304},[231,538,307],{"emptyLinePlaceholder":7},[231,540,541],{"class":233,"line":310},[231,542,544],{"class":543},"s8-w5","  \u002F* Account for number being 0 *\u002F\n",[231,546,547,549,551,554,556],{"class":233,"line":326},[231,548,273],{"class":261},[231,550,315],{"class":245},[231,552,553],{"class":261},">=",[231,555,321],{"class":279},[231,557,558],{"class":245},") { \n",[231,560,561,563,565,567,569],{"class":233,"line":343},[231,562,329],{"class":261},[231,564,332],{"class":245},[231,566,335],{"class":261},[231,568,338],{"class":279},[231,570,295],{"class":245},[231,572,573,575,577],{"class":233,"line":364},[231,574,346],{"class":245},[231,576,349],{"class":261},[231,578,579],{"class":245}," {\n",[231,581,582,584,586,588,590,592],{"class":233,"line":381},[231,583,329],{"class":261},[231,585,332],{"class":245},[231,587,335],{"class":261},[231,589,373],{"class":261},[231,591,376],{"class":279},[231,593,295],{"class":245},[231,595,596],{"class":233,"line":386},[231,597,301],{"class":245},[231,599,600],{"class":233,"line":392},[231,601,389],{"class":245},[231,603,604],{"class":233,"line":397},[231,605,307],{"emptyLinePlaceholder":7},[231,607,608,610,612,614,616,618],{"class":233,"line":413},[231,609,249],{"class":237},[231,611,402],{"class":241},[231,613,246],{"class":245},[231,615,249],{"class":237},[231,617,253],{"class":252},[231,619,267],{"class":245},[231,621,622,624,626,628,630,633],{"class":233,"line":422},[231,623,416],{"class":237},[231,625,443],{"class":245},[231,627,335],{"class":261},[231,629,321],{"class":279},[231,631,632],{"class":245},";",[231,634,635],{"class":543}," \u002F* Initialize for defense-in-depth *\u002F\n",[231,637,638,640,642,644],{"class":233,"line":437},[231,639,425],{"class":241},[231,641,428],{"class":245},[231,643,431],{"class":261},[231,645,434],{"class":245},[231,647,648,650,652,654,656],{"class":233,"line":452},[231,649,440],{"class":261},[231,651,443],{"class":245},[231,653,357],{"class":261},[231,655,321],{"class":279},[231,657,295],{"class":245},[231,659,661],{"class":233,"line":660},18,[231,662,389],{"class":245},[176,664,666],{"id":665},"noncompliant-code-example-uninitialized-local","Noncompliant Code Example (Uninitialized Local)",[39,668,669,670,673,674,677,678,681,682,686,687,689,690,693,694,697,698,700],{},"In this noncompliant code example, the programmer mistakenly fails to set the local variable ",[103,671,672],{},"error_log"," to the ",[103,675,676],{},"msg"," argument in the ",[103,679,680],{},"report_error()"," function [ ",[43,683,685],{"href":684},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-mercy06","Mercy 2006"," ]. Because ",[103,688,672],{}," has not been initialized, an ",[43,691,692],{"href":56},"indeterminate value"," is read. The ",[103,695,696],{},"sprintf()"," call copies data from the arbitrary location pointed to by the indeterminate ",[103,699,672],{}," variable until a null byte is reached, which can result in a buffer overflow.",[218,702,703],{"quality":220},[222,704,706],{"className":224,"code":705,"language":226,"meta":227,"style":227},"#include \u003Cstdio.h>\n\n\u002F* Get username and password from user, return -1 on error *\u002F\nextern int do_auth(void);\nenum { BUFFERSIZE = 24 }; \nvoid report_error(const char *msg) {\n  const char *error_log;\n  char buffer[BUFFERSIZE];\n\n  sprintf(buffer, \"Error: %s\", error_log);\n  printf(\"%s\\n\", buffer);\n}\n\nint main(void) {\n  if (do_auth() == -1) {\n    report_error(\"Unable to login\");\n  }\n  return 0;\n}\n",[103,707,708,717,721,726,744,760,781,793,805,809,829,846,850,854,867,888,900,904,912],{"__ignoreMap":227},[231,709,710,713],{"class":233,"line":234},[231,711,712],{"class":261},"#include",[231,714,716],{"class":715},"sstjo"," \u003Cstdio.h>\n",[231,718,719],{"class":233,"line":270},[231,720,307],{"emptyLinePlaceholder":7},[231,722,723],{"class":233,"line":289},[231,724,725],{"class":543},"\u002F* Get username and password from user, return -1 on error *\u002F\n",[231,727,728,731,734,737,739,741],{"class":233,"line":298},[231,729,730],{"class":261},"extern",[231,732,733],{"class":237}," int",[231,735,736],{"class":241}," do_auth",[231,738,246],{"class":245},[231,740,238],{"class":237},[231,742,743],{"class":245},");\n",[231,745,746,749,752,754,757],{"class":233,"line":304},[231,747,748],{"class":237},"enum",[231,750,751],{"class":245}," { BUFFERSIZE ",[231,753,335],{"class":261},[231,755,756],{"class":279}," 24",[231,758,759],{"class":245}," }; \n",[231,761,762,764,767,769,772,775,777,779],{"class":233,"line":310},[231,763,238],{"class":237},[231,765,766],{"class":241}," report_error",[231,768,246],{"class":245},[231,770,771],{"class":261},"const",[231,773,774],{"class":237}," char",[231,776,262],{"class":261},[231,778,676],{"class":252},[231,780,267],{"class":245},[231,782,783,786,788,790],{"class":233,"line":326},[231,784,785],{"class":261},"  const",[231,787,774],{"class":237},[231,789,262],{"class":261},[231,791,792],{"class":245},"error_log;\n",[231,794,795,798,802],{"class":233,"line":343},[231,796,797],{"class":237},"  char",[231,799,801],{"class":800},"sOrwc"," buffer",[231,803,804],{"class":245},"[BUFFERSIZE];\n",[231,806,807],{"class":233,"line":364},[231,808,307],{"emptyLinePlaceholder":7},[231,810,811,814,817,820,823,826],{"class":233,"line":381},[231,812,813],{"class":241},"  sprintf",[231,815,816],{"class":245},"(buffer, ",[231,818,819],{"class":715},"\"Error: ",[231,821,822],{"class":279},"%s",[231,824,825],{"class":715},"\"",[231,827,828],{"class":245},", error_log);\n",[231,830,831,834,836,838,841,843],{"class":233,"line":386},[231,832,833],{"class":241},"  printf",[231,835,246],{"class":245},[231,837,825],{"class":715},[231,839,840],{"class":279},"%s\\n",[231,842,825],{"class":715},[231,844,845],{"class":245},", buffer);\n",[231,847,848],{"class":233,"line":392},[231,849,389],{"class":245},[231,851,852],{"class":233,"line":397},[231,853,307],{"emptyLinePlaceholder":7},[231,855,856,858,861,863,865],{"class":233,"line":413},[231,857,249],{"class":237},[231,859,860],{"class":241}," main",[231,862,246],{"class":245},[231,864,238],{"class":237},[231,866,267],{"class":245},[231,868,869,871,873,876,879,882,884,886],{"class":233,"line":422},[231,870,273],{"class":261},[231,872,276],{"class":245},[231,874,875],{"class":241},"do_auth",[231,877,878],{"class":245},"() ",[231,880,881],{"class":261},"==",[231,883,373],{"class":261},[231,885,376],{"class":279},[231,887,267],{"class":245},[231,889,890,893,895,898],{"class":233,"line":437},[231,891,892],{"class":241},"    report_error",[231,894,246],{"class":245},[231,896,897],{"class":715},"\"Unable to login\"",[231,899,743],{"class":245},[231,901,902],{"class":233,"line":452},[231,903,301],{"class":245},[231,905,906,908,910],{"class":233,"line":660},[231,907,440],{"class":261},[231,909,321],{"class":279},[231,911,295],{"class":245},[231,913,915],{"class":233,"line":914},19,[231,916,389],{"class":245},[176,918,666],{"id":919},"noncompliant-code-example-uninitialized-local-1",[39,921,182,922,924,925,927],{},[103,923,680],{}," function has been modified so that ",[103,926,672],{}," is properly initialized:",[218,929,930],{"quality":220},[222,931,933],{"className":224,"code":932,"language":226,"meta":227,"style":227},"#include \u003Cstdio.h>\nenum { BUFFERSIZE = 24 }; \nvoid report_error(const char *msg) {\n  const char *error_log = msg;\n  char buffer[BUFFERSIZE];\n\n  sprintf(buffer, \"Error: %s\", error_log);\n  printf(\"%s\\n\", buffer);\n}\n",[103,934,935,941,953,971,987,995,999,1013,1027],{"__ignoreMap":227},[231,936,937,939],{"class":233,"line":234},[231,938,712],{"class":261},[231,940,716],{"class":715},[231,942,943,945,947,949,951],{"class":233,"line":270},[231,944,748],{"class":237},[231,946,751],{"class":245},[231,948,335],{"class":261},[231,950,756],{"class":279},[231,952,759],{"class":245},[231,954,955,957,959,961,963,965,967,969],{"class":233,"line":289},[231,956,238],{"class":237},[231,958,766],{"class":241},[231,960,246],{"class":245},[231,962,771],{"class":261},[231,964,774],{"class":237},[231,966,262],{"class":261},[231,968,676],{"class":252},[231,970,267],{"class":245},[231,972,973,975,977,979,982,984],{"class":233,"line":298},[231,974,785],{"class":261},[231,976,774],{"class":237},[231,978,262],{"class":261},[231,980,981],{"class":245},"error_log ",[231,983,335],{"class":261},[231,985,986],{"class":245}," msg;\n",[231,988,989,991,993],{"class":233,"line":304},[231,990,797],{"class":237},[231,992,801],{"class":800},[231,994,804],{"class":245},[231,996,997],{"class":233,"line":310},[231,998,307],{"emptyLinePlaceholder":7},[231,1000,1001,1003,1005,1007,1009,1011],{"class":233,"line":326},[231,1002,813],{"class":241},[231,1004,816],{"class":245},[231,1006,819],{"class":715},[231,1008,822],{"class":279},[231,1010,825],{"class":715},[231,1012,828],{"class":245},[231,1014,1015,1017,1019,1021,1023,1025],{"class":233,"line":343},[231,1016,833],{"class":241},[231,1018,246],{"class":245},[231,1020,825],{"class":715},[231,1022,840],{"class":279},[231,1024,825],{"class":715},[231,1026,845],{"class":245},[231,1028,1029],{"class":233,"line":364},[231,1030,389],{"class":245},[39,1032,1033,1034,1036,1037,174],{},"This example remains problematic because a buffer overflow will occur if the null-terminated byte string referenced by ",[103,1035,676],{}," is greater than 17 characters, including the null terminator. (See ",[43,1038,1040],{"href":1039},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fcharacters-and-strings-str\u002Fstr31-c","STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator",[176,1042,1044],{"id":1043},"compliant-solutionuninitialized-local","Compliant Solution (Uninitialized Local)",[39,1046,1047,1048,1051],{},"In this compliant solution, the buffer overflow is eliminated by calling the ",[103,1049,1050],{},"snprintf()"," function:",[218,1053,1054],{"quality":485},[222,1055,1057],{"className":224,"code":1056,"language":226,"meta":227,"style":227},"#include \u003Cstdio.h>\nenum { BUFFERSIZE = 24 };\nvoid report_error(const char *msg) {\n  char buffer[BUFFERSIZE];\n\n  if (0 \u003C snprintf(buffer, BUFFERSIZE, \"Error: %s\", msg))\n    printf(\"%s\\n\", buffer);\n  else\n    puts(\"Unknown error\");\n}\n",[103,1058,1059,1065,1078,1096,1104,1108,1134,1149,1154,1166],{"__ignoreMap":227},[231,1060,1061,1063],{"class":233,"line":234},[231,1062,712],{"class":261},[231,1064,716],{"class":715},[231,1066,1067,1069,1071,1073,1075],{"class":233,"line":270},[231,1068,748],{"class":237},[231,1070,751],{"class":245},[231,1072,335],{"class":261},[231,1074,756],{"class":279},[231,1076,1077],{"class":245}," };\n",[231,1079,1080,1082,1084,1086,1088,1090,1092,1094],{"class":233,"line":289},[231,1081,238],{"class":237},[231,1083,766],{"class":241},[231,1085,246],{"class":245},[231,1087,771],{"class":261},[231,1089,774],{"class":237},[231,1091,262],{"class":261},[231,1093,676],{"class":252},[231,1095,267],{"class":245},[231,1097,1098,1100,1102],{"class":233,"line":298},[231,1099,797],{"class":237},[231,1101,801],{"class":800},[231,1103,804],{"class":245},[231,1105,1106],{"class":233,"line":304},[231,1107,307],{"emptyLinePlaceholder":7},[231,1109,1110,1112,1114,1116,1119,1122,1125,1127,1129,1131],{"class":233,"line":310},[231,1111,273],{"class":261},[231,1113,276],{"class":245},[231,1115,200],{"class":279},[231,1117,1118],{"class":261}," \u003C",[231,1120,1121],{"class":241}," snprintf",[231,1123,1124],{"class":245},"(buffer, BUFFERSIZE, ",[231,1126,819],{"class":715},[231,1128,822],{"class":279},[231,1130,825],{"class":715},[231,1132,1133],{"class":245},", msg))\n",[231,1135,1136,1139,1141,1143,1145,1147],{"class":233,"line":326},[231,1137,1138],{"class":241},"    printf",[231,1140,246],{"class":245},[231,1142,825],{"class":715},[231,1144,840],{"class":279},[231,1146,825],{"class":715},[231,1148,845],{"class":245},[231,1150,1151],{"class":233,"line":343},[231,1152,1153],{"class":261},"  else\n",[231,1155,1156,1159,1161,1164],{"class":233,"line":364},[231,1157,1158],{"class":241},"    puts",[231,1160,246],{"class":245},[231,1162,1163],{"class":715},"\"Unknown error\"",[231,1165,743],{"class":245},[231,1167,1168],{"class":233,"line":381},[231,1169,389],{"class":245},[176,1171,1173],{"id":1172},"compliant-solution-uninitialized-local","Compliant Solution (Uninitialized Local)",[39,1175,1176],{},"A less error-prone compliant solution is to simply print the error message directly instead of using an intermediate buffer:",[218,1178,1179],{"quality":485},[222,1180,1182],{"className":224,"code":1181,"language":226,"meta":227,"style":227},"#include \u003Cstdio.h>\n \nvoid report_error(const char *msg) {\n  printf(\"Error: %s\\n\", msg);\n}\n",[103,1183,1184,1190,1195,1213,1228],{"__ignoreMap":227},[231,1185,1186,1188],{"class":233,"line":234},[231,1187,712],{"class":261},[231,1189,716],{"class":715},[231,1191,1192],{"class":233,"line":270},[231,1193,1194],{"class":245}," \n",[231,1196,1197,1199,1201,1203,1205,1207,1209,1211],{"class":233,"line":289},[231,1198,238],{"class":237},[231,1200,766],{"class":241},[231,1202,246],{"class":245},[231,1204,771],{"class":261},[231,1206,774],{"class":237},[231,1208,262],{"class":261},[231,1210,676],{"class":252},[231,1212,267],{"class":245},[231,1214,1215,1217,1219,1221,1223,1225],{"class":233,"line":298},[231,1216,833],{"class":241},[231,1218,246],{"class":245},[231,1220,819],{"class":715},[231,1222,840],{"class":279},[231,1224,825],{"class":715},[231,1226,1227],{"class":245},", msg);\n",[231,1229,1230],{"class":233,"line":304},[231,1231,389],{"class":245},[176,1233,1235,1236,1239],{"id":1234},"noncompliant-code-example-mbstate_t","Noncompliant Code Example ( ",[103,1237,1238],{},"mbstate_t"," )",[39,1241,1242,1243,1246,1247,1249,1250,1254,1255,1257],{},"In this noncompliant code example, the function ",[103,1244,1245],{},"mbrlen()"," is passed the address of an automatic ",[103,1248,1238],{}," object that has not been properly initialized. This is ",[43,1251,1253],{"href":1252},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_200","undefined behavior 200"," because ",[103,1256,1245],{}," dereferences and reads its third argument.",[218,1259,1260],{"quality":220},[222,1261,1263],{"className":224,"code":1262,"language":226,"meta":227,"style":227},"#include \u003Cstring.h> \n#include \u003Cwchar.h>\n \nvoid func(const char *mbs) {\n  size_t len;\n  mbstate_t state;\n\n  len = mbrlen(mbs, strlen(mbs), &state);\n}\n",[103,1264,1265,1275,1282,1286,1306,1314,1323,1327,1351],{"__ignoreMap":227},[231,1266,1267,1269,1272],{"class":233,"line":234},[231,1268,712],{"class":261},[231,1270,1271],{"class":715}," \u003Cstring.h>",[231,1273,1274],{"class":245}," \n",[231,1276,1277,1279],{"class":233,"line":270},[231,1278,712],{"class":261},[231,1280,1281],{"class":715}," \u003Cwchar.h>\n",[231,1283,1284],{"class":233,"line":289},[231,1285,1194],{"class":245},[231,1287,1288,1290,1293,1295,1297,1299,1301,1304],{"class":233,"line":298},[231,1289,238],{"class":237},[231,1291,1292],{"class":241}," func",[231,1294,246],{"class":245},[231,1296,771],{"class":261},[231,1298,774],{"class":237},[231,1300,262],{"class":261},[231,1302,1303],{"class":252},"mbs",[231,1305,267],{"class":245},[231,1307,1308,1311],{"class":233,"line":304},[231,1309,1310],{"class":237},"  size_t",[231,1312,1313],{"class":245}," len;\n",[231,1315,1316,1320],{"class":233,"line":310},[231,1317,1319],{"class":1318},"s-m8C","  mbstate_t",[231,1321,1322],{"class":245}," state;\n",[231,1324,1325],{"class":233,"line":326},[231,1326,307],{"emptyLinePlaceholder":7},[231,1328,1329,1332,1334,1337,1340,1343,1346,1348],{"class":233,"line":343},[231,1330,1331],{"class":245},"  len ",[231,1333,335],{"class":261},[231,1335,1336],{"class":241}," mbrlen",[231,1338,1339],{"class":245},"(mbs, ",[231,1341,1342],{"class":241},"strlen",[231,1344,1345],{"class":245},"(mbs), ",[231,1347,431],{"class":261},[231,1349,1350],{"class":245},"state);\n",[231,1352,1353],{"class":233,"line":364},[231,1354,389],{"class":245},[176,1356,1358,1359,1239],{"id":1357},"compliant-solution-mbstate_t","Compliant Solution ( ",[103,1360,1238],{},[39,1362,1363,1364,1366,1367,1369],{},"Before being passed to a multibyte conversion function, an ",[103,1365,1238],{}," object must be either initialized to the initial conversion state or set to a value that corresponds to the most recent shift state by a prior call to a multibyte conversion function. This compliant solution sets the ",[103,1368,1238],{}," object to the initial conversion state by setting it to all zeros:",[218,1371,1372],{"quality":485},[222,1373,1375],{"className":224,"code":1374,"language":226,"meta":227,"style":227},"#include \u003Cstring.h> \n#include \u003Cwchar.h>\n \nvoid func(const char *mbs) {\n  size_t len;\n  mbstate_t state;\n\n  memset(&state, 0, sizeof(state));\n  len = mbrlen(mbs, strlen(mbs), &state);\n}\n",[103,1376,1377,1385,1391,1395,1413,1419,1425,1429,1451,1469],{"__ignoreMap":227},[231,1378,1379,1381,1383],{"class":233,"line":234},[231,1380,712],{"class":261},[231,1382,1271],{"class":715},[231,1384,1274],{"class":245},[231,1386,1387,1389],{"class":233,"line":270},[231,1388,712],{"class":261},[231,1390,1281],{"class":715},[231,1392,1393],{"class":233,"line":289},[231,1394,1194],{"class":245},[231,1396,1397,1399,1401,1403,1405,1407,1409,1411],{"class":233,"line":298},[231,1398,238],{"class":237},[231,1400,1292],{"class":241},[231,1402,246],{"class":245},[231,1404,771],{"class":261},[231,1406,774],{"class":237},[231,1408,262],{"class":261},[231,1410,1303],{"class":252},[231,1412,267],{"class":245},[231,1414,1415,1417],{"class":233,"line":304},[231,1416,1310],{"class":237},[231,1418,1313],{"class":245},[231,1420,1421,1423],{"class":233,"line":310},[231,1422,1319],{"class":1318},[231,1424,1322],{"class":245},[231,1426,1427],{"class":233,"line":326},[231,1428,307],{"emptyLinePlaceholder":7},[231,1430,1431,1434,1436,1438,1441,1443,1445,1448],{"class":233,"line":343},[231,1432,1433],{"class":241},"  memset",[231,1435,246],{"class":245},[231,1437,431],{"class":261},[231,1439,1440],{"class":245},"state, ",[231,1442,200],{"class":279},[231,1444,256],{"class":245},[231,1446,1447],{"class":261},"sizeof",[231,1449,1450],{"class":245},"(state));\n",[231,1452,1453,1455,1457,1459,1461,1463,1465,1467],{"class":233,"line":364},[231,1454,1331],{"class":245},[231,1456,335],{"class":261},[231,1458,1336],{"class":241},[231,1460,1339],{"class":245},[231,1462,1342],{"class":241},[231,1464,1345],{"class":245},[231,1466,431],{"class":261},[231,1468,1350],{"class":245},[231,1470,1471],{"class":233,"line":381},[231,1472,389],{"class":245},[176,1474,1476],{"id":1475},"noncompliant-code-example-posix-entropy","Noncompliant Code Example (POSIX, Entropy)",[39,1478,1479,1480,1486,1487,1491,1492,1495,1496,1498,1499,1501,1502,1504],{},"In this noncompliant code example described in \" ",[43,1481,1485],{"href":1482,"rel":1483},"http:\u002F\u002Fkqueue.org\u002Fblog\u002F2012\u002F06\u002F25\u002Fmore-randomness-or-less\u002F",[1484],"nofollow","More Randomness or Less"," \" [ ",[43,1488,1490],{"href":1489},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Wang12","Wang 2012"," ], the process ID, time of day, and uninitialized memory ",[103,1493,1494],{},"junk"," is used to seed a random number generator. This behavior is characteristic of some distributions derived from Debian Linux that use uninitialized memory as a source of entropy because the value stored in ",[103,1497,1494],{}," is indeterminate. However, because accessing an ",[43,1500,692],{"href":56}," is ",[43,1503,65],{"href":64}," , compilers may optimize out the uninitialized variable access completely, leaving only the time and process ID and resulting in a loss of desired entropy.",[218,1506,1507],{"quality":220},[222,1508,1510],{"className":224,"code":1509,"language":226,"meta":227,"style":227},"#include \u003Ctime.h>\n#include \u003Cunistd.h>\n#include \u003Cstdlib.h>\n#include \u003Csys\u002Ftime.h>\n  \nvoid func(void) {\n  struct timeval tv;\n  unsigned long junk;\n\n  gettimeofday(&tv, NULL);\n  srandom((getpid() \u003C\u003C 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk);\n}\n",[103,1511,1512,1519,1526,1533,1540,1545,1557,1565,1576,1580,1596,1634],{"__ignoreMap":227},[231,1513,1514,1516],{"class":233,"line":234},[231,1515,712],{"class":261},[231,1517,1518],{"class":715}," \u003Ctime.h>\n",[231,1520,1521,1523],{"class":233,"line":270},[231,1522,712],{"class":261},[231,1524,1525],{"class":715}," \u003Cunistd.h>\n",[231,1527,1528,1530],{"class":233,"line":289},[231,1529,712],{"class":261},[231,1531,1532],{"class":715}," \u003Cstdlib.h>\n",[231,1534,1535,1537],{"class":233,"line":298},[231,1536,712],{"class":261},[231,1538,1539],{"class":715}," \u003Csys\u002Ftime.h>\n",[231,1541,1542],{"class":233,"line":304},[231,1543,1544],{"class":245},"  \n",[231,1546,1547,1549,1551,1553,1555],{"class":233,"line":310},[231,1548,238],{"class":237},[231,1550,1292],{"class":241},[231,1552,246],{"class":245},[231,1554,238],{"class":237},[231,1556,267],{"class":245},[231,1558,1559,1562],{"class":233,"line":326},[231,1560,1561],{"class":237},"  struct",[231,1563,1564],{"class":245}," timeval tv;\n",[231,1566,1567,1570,1573],{"class":233,"line":343},[231,1568,1569],{"class":237},"  unsigned",[231,1571,1572],{"class":237}," long",[231,1574,1575],{"class":245}," junk;\n",[231,1577,1578],{"class":233,"line":364},[231,1579,307],{"emptyLinePlaceholder":7},[231,1581,1582,1585,1587,1589,1592,1594],{"class":233,"line":381},[231,1583,1584],{"class":241},"  gettimeofday",[231,1586,246],{"class":245},[231,1588,431],{"class":261},[231,1590,1591],{"class":245},"tv, ",[231,1593,280],{"class":279},[231,1595,743],{"class":245},[231,1597,1598,1601,1604,1607,1609,1612,1615,1618,1621,1624,1626,1629,1631],{"class":233,"line":386},[231,1599,1600],{"class":241},"  srandom",[231,1602,1603],{"class":245},"((",[231,1605,1606],{"class":241},"getpid",[231,1608,878],{"class":245},[231,1610,1611],{"class":261},"\u003C\u003C",[231,1613,1614],{"class":279}," 16",[231,1616,1617],{"class":245},") ",[231,1619,1620],{"class":261},"^",[231,1622,1623],{"class":245}," tv.tv_sec ",[231,1625,1620],{"class":261},[231,1627,1628],{"class":245}," tv.tv_usec ",[231,1630,1620],{"class":261},[231,1632,1633],{"class":245}," junk);\n",[231,1635,1636],{"class":233,"line":392},[231,1637,389],{"class":245},[39,1639,1640],{},"In security protocols that rely on unpredictability, such as RSA encryption, a loss in entropy results in a less secure system.",[176,1642,1644],{"id":1643},"compliant-solution-posix-entropy","Compliant Solution (POSIX, Entropy)",[39,1646,1647],{},"This compliant solution seeds the random number generator by using the CPU clock and the real-time clock instead of reading uninitialized memory:",[218,1649,1650],{"quality":485},[222,1651,1653],{"className":224,"code":1652,"language":226,"meta":227,"style":227},"#include \u003Ctime.h>\n#include \u003Cunistd.h>\n#include \u003Cstdlib.h>\n#include \u003Csys\u002Ftime.h>\n\nvoid func(void) {     \n  double cpu_time;\n  struct timeval tv;\n\n  cpu_time = ((double) clock()) \u002F CLOCKS_PER_SEC;\n  gettimeofday(&tv, NULL);\n  srandom((getpid() \u003C\u003C 16) ^ tv.tv_sec ^ tv.tv_usec ^ cpu_time);\n}\n",[103,1654,1655,1661,1667,1673,1679,1683,1696,1704,1710,1714,1740,1754,1783],{"__ignoreMap":227},[231,1656,1657,1659],{"class":233,"line":234},[231,1658,712],{"class":261},[231,1660,1518],{"class":715},[231,1662,1663,1665],{"class":233,"line":270},[231,1664,712],{"class":261},[231,1666,1525],{"class":715},[231,1668,1669,1671],{"class":233,"line":289},[231,1670,712],{"class":261},[231,1672,1532],{"class":715},[231,1674,1675,1677],{"class":233,"line":298},[231,1676,712],{"class":261},[231,1678,1539],{"class":715},[231,1680,1681],{"class":233,"line":304},[231,1682,307],{"emptyLinePlaceholder":7},[231,1684,1685,1687,1689,1691,1693],{"class":233,"line":310},[231,1686,238],{"class":237},[231,1688,1292],{"class":241},[231,1690,246],{"class":245},[231,1692,238],{"class":237},[231,1694,1695],{"class":245},") {     \n",[231,1697,1698,1701],{"class":233,"line":326},[231,1699,1700],{"class":237},"  double",[231,1702,1703],{"class":245}," cpu_time;\n",[231,1705,1706,1708],{"class":233,"line":343},[231,1707,1561],{"class":237},[231,1709,1564],{"class":245},[231,1711,1712],{"class":233,"line":364},[231,1713,307],{"emptyLinePlaceholder":7},[231,1715,1716,1719,1721,1724,1727,1729,1732,1735,1737],{"class":233,"line":381},[231,1717,1718],{"class":245},"  cpu_time ",[231,1720,335],{"class":261},[231,1722,1723],{"class":245}," ((",[231,1725,1726],{"class":237},"double",[231,1728,1617],{"class":245},[231,1730,1731],{"class":241},"clock",[231,1733,1734],{"class":245},"()) ",[231,1736,6],{"class":261},[231,1738,1739],{"class":245}," CLOCKS_PER_SEC;\n",[231,1741,1742,1744,1746,1748,1750,1752],{"class":233,"line":386},[231,1743,1584],{"class":241},[231,1745,246],{"class":245},[231,1747,431],{"class":261},[231,1749,1591],{"class":245},[231,1751,280],{"class":279},[231,1753,743],{"class":245},[231,1755,1756,1758,1760,1762,1764,1766,1768,1770,1772,1774,1776,1778,1780],{"class":233,"line":392},[231,1757,1600],{"class":241},[231,1759,1603],{"class":245},[231,1761,1606],{"class":241},[231,1763,878],{"class":245},[231,1765,1611],{"class":261},[231,1767,1614],{"class":279},[231,1769,1617],{"class":245},[231,1771,1620],{"class":261},[231,1773,1623],{"class":245},[231,1775,1620],{"class":261},[231,1777,1628],{"class":245},[231,1779,1620],{"class":261},[231,1781,1782],{"class":245}," cpu_time);\n",[231,1784,1785],{"class":233,"line":397},[231,1786,389],{"class":245},[176,1788,1235,1790,1239],{"id":1789},"noncompliant-code-example-realloc",[103,1791,134],{},[39,1793,1794,1795,1797,1798,1801,1802,1804,1805,1807,1808,58],{},"The ",[103,1796,134],{}," function changes the size of a dynamically allocated memory object. The initial ",[103,1799,1800],{},"size"," bytes of the returned memory object are unchanged, but any newly added space is uninitialized, and its value is ",[43,1803,57],{"href":56}," . As in the case of ",[103,1806,125],{}," , accessing memory beyond the size of the original object is ",[43,1809,1811],{"href":1810},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_186","undefined behavior 186",[39,1813,1814,1815,164,1817,1819],{},"It is the programmer's responsibility to ensure that any memory allocated with ",[103,1816,125],{},[103,1818,134],{}," is properly initialized before it is used.",[39,1821,1822,1823,1825],{},"In this noncompliant code example, an array is allocated with ",[103,1824,125],{}," and properly initialized. At a later point, the array is grown to a larger size but not initialized beyond what the original array contained. Subsequently accessing the uninitialized bytes in the new array is undefined behavior.",[218,1827,1828],{"quality":220},[222,1829,1831],{"className":224,"code":1830,"language":226,"meta":227,"style":227},"#include \u003Cstdlib.h>\n#include \u003Cstdio.h>\nenum { OLD_SIZE = 10, NEW_SIZE = 20 };\n \nint *resize_array(int *array, size_t count) {\n  if (0 == count) {\n    return 0;\n  }\n \n  int *ret = (int *)realloc(array, count * sizeof(int));\n  if (!ret) {\n    free(array);\n    return 0;\n  }\n \n  return ret;\n}\n \nvoid func(void) {\n \n  int *array = (int *)malloc(OLD_SIZE * sizeof(int));\n  if (0 == array) {\n    \u002F* Handle error *\u002F\n  }\n \n  for (size_t i = 0; i \u003C OLD_SIZE; ++i) {\n    array[i] = i;\n  }\n \n  array = resize_array(array, NEW_SIZE);\n  if (0 == array) {\n    \u002F* Handle error *\u002F\n  }\n \n  for (size_t i = 0; i \u003C NEW_SIZE; ++i) {\n    printf(\"%d \", array[i]);\n  }\n}\n",[103,1832,1833,1839,1845,1867,1871,1899,1912,1920,1924,1928,1967,1979,1987,1995,1999,2003,2010,2014,2018,2030,2035,2071,2085,2091,2096,2101,2132,2146,2151,2156,2170,2183,2188,2193,2198,2224,2246,2251],{"__ignoreMap":227},[231,1834,1835,1837],{"class":233,"line":234},[231,1836,712],{"class":261},[231,1838,1532],{"class":715},[231,1840,1841,1843],{"class":233,"line":270},[231,1842,712],{"class":261},[231,1844,716],{"class":715},[231,1846,1847,1849,1852,1854,1857,1860,1862,1865],{"class":233,"line":289},[231,1848,748],{"class":237},[231,1850,1851],{"class":245}," { OLD_SIZE ",[231,1853,335],{"class":261},[231,1855,1856],{"class":279}," 10",[231,1858,1859],{"class":245},", NEW_SIZE ",[231,1861,335],{"class":261},[231,1863,1864],{"class":279}," 20",[231,1866,1077],{"class":245},[231,1868,1869],{"class":233,"line":298},[231,1870,1194],{"class":245},[231,1872,1873,1875,1877,1880,1882,1884,1886,1889,1891,1894,1897],{"class":233,"line":304},[231,1874,249],{"class":237},[231,1876,262],{"class":261},[231,1878,1879],{"class":241},"resize_array",[231,1881,246],{"class":245},[231,1883,249],{"class":237},[231,1885,262],{"class":261},[231,1887,1888],{"class":252},"array",[231,1890,256],{"class":245},[231,1892,1893],{"class":237},"size_t",[231,1895,1896],{"class":252}," count",[231,1898,267],{"class":245},[231,1900,1901,1903,1905,1907,1909],{"class":233,"line":310},[231,1902,273],{"class":261},[231,1904,276],{"class":245},[231,1906,200],{"class":279},[231,1908,283],{"class":261},[231,1910,1911],{"class":245}," count) {\n",[231,1913,1914,1916,1918],{"class":233,"line":326},[231,1915,292],{"class":261},[231,1917,321],{"class":279},[231,1919,295],{"class":245},[231,1921,1922],{"class":233,"line":343},[231,1923,301],{"class":245},[231,1925,1926],{"class":233,"line":364},[231,1927,1194],{"class":245},[231,1929,1930,1932,1934,1937,1939,1941,1943,1945,1948,1951,1954,1957,1960,1962,1964],{"class":233,"line":381},[231,1931,416],{"class":237},[231,1933,262],{"class":261},[231,1935,1936],{"class":245},"ret ",[231,1938,335],{"class":261},[231,1940,276],{"class":245},[231,1942,249],{"class":237},[231,1944,262],{"class":261},[231,1946,1947],{"class":245},")",[231,1949,1950],{"class":241},"realloc",[231,1952,1953],{"class":245},"(array, count ",[231,1955,1956],{"class":261},"*",[231,1958,1959],{"class":261}," sizeof",[231,1961,246],{"class":245},[231,1963,249],{"class":237},[231,1965,1966],{"class":245},"));\n",[231,1968,1969,1971,1973,1976],{"class":233,"line":386},[231,1970,273],{"class":261},[231,1972,276],{"class":245},[231,1974,1975],{"class":261},"!",[231,1977,1978],{"class":245},"ret) {\n",[231,1980,1981,1984],{"class":233,"line":392},[231,1982,1983],{"class":241},"    free",[231,1985,1986],{"class":245},"(array);\n",[231,1988,1989,1991,1993],{"class":233,"line":397},[231,1990,292],{"class":261},[231,1992,321],{"class":279},[231,1994,295],{"class":245},[231,1996,1997],{"class":233,"line":413},[231,1998,301],{"class":245},[231,2000,2001],{"class":233,"line":422},[231,2002,1194],{"class":245},[231,2004,2005,2007],{"class":233,"line":437},[231,2006,440],{"class":261},[231,2008,2009],{"class":245}," ret;\n",[231,2011,2012],{"class":233,"line":452},[231,2013,389],{"class":245},[231,2015,2016],{"class":233,"line":660},[231,2017,1194],{"class":245},[231,2019,2020,2022,2024,2026,2028],{"class":233,"line":914},[231,2021,238],{"class":237},[231,2023,1292],{"class":241},[231,2025,246],{"class":245},[231,2027,238],{"class":237},[231,2029,267],{"class":245},[231,2031,2033],{"class":233,"line":2032},20,[231,2034,1194],{"class":245},[231,2036,2038,2040,2042,2045,2047,2049,2051,2053,2055,2058,2061,2063,2065,2067,2069],{"class":233,"line":2037},21,[231,2039,416],{"class":237},[231,2041,262],{"class":261},[231,2043,2044],{"class":245},"array ",[231,2046,335],{"class":261},[231,2048,276],{"class":245},[231,2050,249],{"class":237},[231,2052,262],{"class":261},[231,2054,1947],{"class":245},[231,2056,2057],{"class":241},"malloc",[231,2059,2060],{"class":245},"(OLD_SIZE ",[231,2062,1956],{"class":261},[231,2064,1959],{"class":261},[231,2066,246],{"class":245},[231,2068,249],{"class":237},[231,2070,1966],{"class":245},[231,2072,2074,2076,2078,2080,2082],{"class":233,"line":2073},22,[231,2075,273],{"class":261},[231,2077,276],{"class":245},[231,2079,200],{"class":279},[231,2081,283],{"class":261},[231,2083,2084],{"class":245}," array) {\n",[231,2086,2088],{"class":233,"line":2087},23,[231,2089,2090],{"class":543},"    \u002F* Handle error *\u002F\n",[231,2092,2094],{"class":233,"line":2093},24,[231,2095,301],{"class":245},[231,2097,2099],{"class":233,"line":2098},25,[231,2100,1194],{"class":245},[231,2102,2104,2107,2109,2111,2114,2116,2118,2121,2123,2126,2129],{"class":233,"line":2103},26,[231,2105,2106],{"class":261},"  for",[231,2108,276],{"class":245},[231,2110,1893],{"class":237},[231,2112,2113],{"class":245}," i ",[231,2115,335],{"class":261},[231,2117,321],{"class":279},[231,2119,2120],{"class":245},"; i ",[231,2122,357],{"class":261},[231,2124,2125],{"class":245}," OLD_SIZE; ",[231,2127,2128],{"class":261},"++",[231,2130,2131],{"class":245},"i) {\n",[231,2133,2135,2138,2141,2143],{"class":233,"line":2134},27,[231,2136,2137],{"class":800},"    array",[231,2139,2140],{"class":245},"[i] ",[231,2142,335],{"class":261},[231,2144,2145],{"class":245}," i;\n",[231,2147,2149],{"class":233,"line":2148},28,[231,2150,301],{"class":245},[231,2152,2154],{"class":233,"line":2153},29,[231,2155,1194],{"class":245},[231,2157,2159,2162,2164,2167],{"class":233,"line":2158},30,[231,2160,2161],{"class":245},"  array ",[231,2163,335],{"class":261},[231,2165,2166],{"class":241}," resize_array",[231,2168,2169],{"class":245},"(array, NEW_SIZE);\n",[231,2171,2173,2175,2177,2179,2181],{"class":233,"line":2172},31,[231,2174,273],{"class":261},[231,2176,276],{"class":245},[231,2178,200],{"class":279},[231,2180,283],{"class":261},[231,2182,2084],{"class":245},[231,2184,2186],{"class":233,"line":2185},32,[231,2187,2090],{"class":543},[231,2189,2191],{"class":233,"line":2190},33,[231,2192,301],{"class":245},[231,2194,2196],{"class":233,"line":2195},34,[231,2197,1194],{"class":245},[231,2199,2201,2203,2205,2207,2209,2211,2213,2215,2217,2220,2222],{"class":233,"line":2200},35,[231,2202,2106],{"class":261},[231,2204,276],{"class":245},[231,2206,1893],{"class":237},[231,2208,2113],{"class":245},[231,2210,335],{"class":261},[231,2212,321],{"class":279},[231,2214,2120],{"class":245},[231,2216,357],{"class":261},[231,2218,2219],{"class":245}," NEW_SIZE; ",[231,2221,2128],{"class":261},[231,2223,2131],{"class":245},[231,2225,2227,2229,2231,2233,2236,2239,2241,2243],{"class":233,"line":2226},36,[231,2228,1138],{"class":241},[231,2230,246],{"class":245},[231,2232,825],{"class":715},[231,2234,2235],{"class":279},"%d",[231,2237,2238],{"class":715}," \"",[231,2240,256],{"class":245},[231,2242,1888],{"class":800},[231,2244,2245],{"class":245},"[i]);\n",[231,2247,2249],{"class":233,"line":2248},37,[231,2250,301],{"class":245},[231,2252,2254],{"class":233,"line":2253},38,[231,2255,389],{"class":245},[176,2257,1358,2259,1239],{"id":2258},"compliant-solution-realloc",[103,2260,134],{},[39,2262,2263,2264,2267],{},"In this compliant solution, the ",[103,2265,2266],{},"resize_array()"," helper function takes a second parameter for the old size of the array so that it can initialize any newly allocated elements:",[218,2269,2270],{"quality":485},[222,2271,2273],{"className":224,"code":2272,"language":226,"meta":227,"style":227},"#include \u003Cstdlib.h>\n#include \u003Cstdio.h> \n#include \u003Cstring.h>\n\nenum { OLD_SIZE = 10, NEW_SIZE = 20 };\n \nint *resize_array(int *array, size_t old_count, size_t new_count) {\n  if (0 == new_count) {\n    return 0;\n  }\n \n  int *ret = (int *)realloc(array, new_count * sizeof(int));\n  if (!ret) {\n    free(array);\n    return 0;\n  }\n \n  if (new_count > old_count) {\n    memset(ret + old_count, 0, (new_count - old_count) * sizeof(int));\n  }\n \n  return ret;\n}\n \nvoid func(void) {\n \n  int *array = (int *)malloc(OLD_SIZE * sizeof(int));\n  if (0 == array) {\n    \u002F* Handle error *\u002F\n  }\n \n  for (size_t i = 0; i \u003C OLD_SIZE; ++i) {\n    array[i] = i;\n  }\n \n  array = resize_array(array, OLD_SIZE, NEW_SIZE);\n  if (0 == array) {\n    \u002F* Handle error *\u002F\n  }\n \n  for (size_t i = 0; i \u003C NEW_SIZE; ++i) {\n    printf(\"%d \", array[i]);\n  }\n}\n",[103,2274,2275,2281,2290,2297,2301,2319,2323,2355,2368,2376,2380,2384,2417,2427,2433,2441,2445,2449,2461,2496,2500,2504,2510,2514,2518,2530,2534,2566,2578,2582,2586,2590,2614,2624,2628,2632,2643,2655,2659,2664,2669,2694,2713,2718],{"__ignoreMap":227},[231,2276,2277,2279],{"class":233,"line":234},[231,2278,712],{"class":261},[231,2280,1532],{"class":715},[231,2282,2283,2285,2288],{"class":233,"line":270},[231,2284,712],{"class":261},[231,2286,2287],{"class":715}," \u003Cstdio.h>",[231,2289,1274],{"class":245},[231,2291,2292,2294],{"class":233,"line":289},[231,2293,712],{"class":261},[231,2295,2296],{"class":715}," \u003Cstring.h>\n",[231,2298,2299],{"class":233,"line":298},[231,2300,307],{"emptyLinePlaceholder":7},[231,2302,2303,2305,2307,2309,2311,2313,2315,2317],{"class":233,"line":304},[231,2304,748],{"class":237},[231,2306,1851],{"class":245},[231,2308,335],{"class":261},[231,2310,1856],{"class":279},[231,2312,1859],{"class":245},[231,2314,335],{"class":261},[231,2316,1864],{"class":279},[231,2318,1077],{"class":245},[231,2320,2321],{"class":233,"line":310},[231,2322,1274],{"class":245},[231,2324,2325,2327,2329,2331,2333,2335,2337,2339,2341,2343,2346,2348,2350,2353],{"class":233,"line":326},[231,2326,249],{"class":237},[231,2328,262],{"class":261},[231,2330,1879],{"class":241},[231,2332,246],{"class":245},[231,2334,249],{"class":237},[231,2336,262],{"class":261},[231,2338,1888],{"class":252},[231,2340,256],{"class":245},[231,2342,1893],{"class":237},[231,2344,2345],{"class":252}," old_count",[231,2347,256],{"class":245},[231,2349,1893],{"class":237},[231,2351,2352],{"class":252}," new_count",[231,2354,267],{"class":245},[231,2356,2357,2359,2361,2363,2365],{"class":233,"line":343},[231,2358,273],{"class":261},[231,2360,276],{"class":245},[231,2362,200],{"class":279},[231,2364,283],{"class":261},[231,2366,2367],{"class":245}," new_count) {\n",[231,2369,2370,2372,2374],{"class":233,"line":364},[231,2371,292],{"class":261},[231,2373,321],{"class":279},[231,2375,295],{"class":245},[231,2377,2378],{"class":233,"line":381},[231,2379,301],{"class":245},[231,2381,2382],{"class":233,"line":386},[231,2383,1274],{"class":245},[231,2385,2386,2388,2390,2392,2394,2396,2398,2400,2402,2404,2407,2409,2411,2413,2415],{"class":233,"line":392},[231,2387,416],{"class":237},[231,2389,262],{"class":261},[231,2391,1936],{"class":245},[231,2393,335],{"class":261},[231,2395,276],{"class":245},[231,2397,249],{"class":237},[231,2399,262],{"class":261},[231,2401,1947],{"class":245},[231,2403,1950],{"class":241},[231,2405,2406],{"class":245},"(array, new_count ",[231,2408,1956],{"class":261},[231,2410,1959],{"class":261},[231,2412,246],{"class":245},[231,2414,249],{"class":237},[231,2416,1966],{"class":245},[231,2418,2419,2421,2423,2425],{"class":233,"line":397},[231,2420,273],{"class":261},[231,2422,276],{"class":245},[231,2424,1975],{"class":261},[231,2426,1978],{"class":245},[231,2428,2429,2431],{"class":233,"line":413},[231,2430,1983],{"class":241},[231,2432,1986],{"class":245},[231,2434,2435,2437,2439],{"class":233,"line":422},[231,2436,292],{"class":261},[231,2438,321],{"class":279},[231,2440,295],{"class":245},[231,2442,2443],{"class":233,"line":437},[231,2444,301],{"class":245},[231,2446,2447],{"class":233,"line":452},[231,2448,1194],{"class":245},[231,2450,2451,2453,2456,2458],{"class":233,"line":660},[231,2452,273],{"class":261},[231,2454,2455],{"class":245}," (new_count ",[231,2457,318],{"class":261},[231,2459,2460],{"class":245}," old_count) {\n",[231,2462,2463,2466,2469,2472,2475,2477,2480,2483,2486,2488,2490,2492,2494],{"class":233,"line":914},[231,2464,2465],{"class":241},"    memset",[231,2467,2468],{"class":245},"(ret ",[231,2470,2471],{"class":261},"+",[231,2473,2474],{"class":245}," old_count, ",[231,2476,200],{"class":279},[231,2478,2479],{"class":245},", (new_count ",[231,2481,2482],{"class":261},"-",[231,2484,2485],{"class":245}," old_count) ",[231,2487,1956],{"class":261},[231,2489,1959],{"class":261},[231,2491,246],{"class":245},[231,2493,249],{"class":237},[231,2495,1966],{"class":245},[231,2497,2498],{"class":233,"line":2032},[231,2499,301],{"class":245},[231,2501,2502],{"class":233,"line":2037},[231,2503,1274],{"class":245},[231,2505,2506,2508],{"class":233,"line":2073},[231,2507,440],{"class":261},[231,2509,2009],{"class":245},[231,2511,2512],{"class":233,"line":2087},[231,2513,389],{"class":245},[231,2515,2516],{"class":233,"line":2093},[231,2517,1274],{"class":245},[231,2519,2520,2522,2524,2526,2528],{"class":233,"line":2098},[231,2521,238],{"class":237},[231,2523,1292],{"class":241},[231,2525,246],{"class":245},[231,2527,238],{"class":237},[231,2529,267],{"class":245},[231,2531,2532],{"class":233,"line":2103},[231,2533,1274],{"class":245},[231,2535,2536,2538,2540,2542,2544,2546,2548,2550,2552,2554,2556,2558,2560,2562,2564],{"class":233,"line":2134},[231,2537,416],{"class":237},[231,2539,262],{"class":261},[231,2541,2044],{"class":245},[231,2543,335],{"class":261},[231,2545,276],{"class":245},[231,2547,249],{"class":237},[231,2549,262],{"class":261},[231,2551,1947],{"class":245},[231,2553,2057],{"class":241},[231,2555,2060],{"class":245},[231,2557,1956],{"class":261},[231,2559,1959],{"class":261},[231,2561,246],{"class":245},[231,2563,249],{"class":237},[231,2565,1966],{"class":245},[231,2567,2568,2570,2572,2574,2576],{"class":233,"line":2148},[231,2569,273],{"class":261},[231,2571,276],{"class":245},[231,2573,200],{"class":279},[231,2575,283],{"class":261},[231,2577,2084],{"class":245},[231,2579,2580],{"class":233,"line":2153},[231,2581,2090],{"class":543},[231,2583,2584],{"class":233,"line":2158},[231,2585,301],{"class":245},[231,2587,2588],{"class":233,"line":2172},[231,2589,1274],{"class":245},[231,2591,2592,2594,2596,2598,2600,2602,2604,2606,2608,2610,2612],{"class":233,"line":2185},[231,2593,2106],{"class":261},[231,2595,276],{"class":245},[231,2597,1893],{"class":237},[231,2599,2113],{"class":245},[231,2601,335],{"class":261},[231,2603,321],{"class":279},[231,2605,2120],{"class":245},[231,2607,357],{"class":261},[231,2609,2125],{"class":245},[231,2611,2128],{"class":261},[231,2613,2131],{"class":245},[231,2615,2616,2618,2620,2622],{"class":233,"line":2190},[231,2617,2137],{"class":800},[231,2619,2140],{"class":245},[231,2621,335],{"class":261},[231,2623,2145],{"class":245},[231,2625,2626],{"class":233,"line":2195},[231,2627,301],{"class":245},[231,2629,2630],{"class":233,"line":2200},[231,2631,1274],{"class":245},[231,2633,2634,2636,2638,2640],{"class":233,"line":2226},[231,2635,2161],{"class":245},[231,2637,335],{"class":261},[231,2639,2166],{"class":241},[231,2641,2642],{"class":245},"(array, OLD_SIZE, NEW_SIZE);\n",[231,2644,2645,2647,2649,2651,2653],{"class":233,"line":2248},[231,2646,273],{"class":261},[231,2648,276],{"class":245},[231,2650,200],{"class":279},[231,2652,283],{"class":261},[231,2654,2084],{"class":245},[231,2656,2657],{"class":233,"line":2253},[231,2658,2090],{"class":543},[231,2660,2662],{"class":233,"line":2661},39,[231,2663,301],{"class":245},[231,2665,2667],{"class":233,"line":2666},40,[231,2668,1274],{"class":245},[231,2670,2672,2674,2676,2678,2680,2682,2684,2686,2688,2690,2692],{"class":233,"line":2671},41,[231,2673,2106],{"class":261},[231,2675,276],{"class":245},[231,2677,1893],{"class":237},[231,2679,2113],{"class":245},[231,2681,335],{"class":261},[231,2683,321],{"class":279},[231,2685,2120],{"class":245},[231,2687,357],{"class":261},[231,2689,2219],{"class":245},[231,2691,2128],{"class":261},[231,2693,2131],{"class":245},[231,2695,2697,2699,2701,2703,2705,2707,2709,2711],{"class":233,"line":2696},42,[231,2698,1138],{"class":241},[231,2700,246],{"class":245},[231,2702,825],{"class":715},[231,2704,2235],{"class":279},[231,2706,2238],{"class":715},[231,2708,256],{"class":245},[231,2710,1888],{"class":800},[231,2712,2245],{"class":245},[231,2714,2716],{"class":233,"line":2715},43,[231,2717,301],{"class":245},[231,2719,2721],{"class":233,"line":2720},44,[231,2722,389],{"class":245},[176,2724,2726],{"id":2725},"exceptions","Exceptions",[39,2728,2729,2733,2734,2738,2739,2742,2743,2746,2747,2749,2750,2752,2753,2755,2756,2760],{},[2730,2731,2732],"strong",{},"EXP33-C-EX1:"," Reading uninitialized memory by an ",[43,2735,2737],{"href":2736},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-lvalue","lvalue"," of type ",[103,2740,2741],{},"  unsigned char "," that could not have been declared with the ",[103,2744,2745],{},"register"," storage class does not trigger ",[43,2748,153],{"href":152}," . The ",[103,2751,2741],{}," type is defined to not have a trap representation, which allows for moving bytes without knowing if they are initialized. (See the C Standard, 6.2.6.1, paragraph 3.) The requirement that ",[103,2754,2745],{}," could not have been used (not merely that it was not used) is because on some architectures, such as the Intel Itanium, registers have a bit to indicate whether or not they have been initialized. The C Standard, 6.3.2.1, paragraph 2, allows such ",[43,2757,2759],{"href":2758},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-implementation","implementations"," to cause a trap for an object that never had its address taken and is stored in a register if such an object is referred to in any way.",[176,2762,2764],{"id":2763},"risk-assessment","Risk Assessment",[39,2766,2767,2768,2772,2773,2776,2777,2781],{},"Reading uninitialized variables is ",[43,2769,2771],{"href":2770},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fcc-undefined-behavior#CC.UndefinedBehavior-ub_20","undefined behavior 20"," and can result in ",[43,2774,2775],{"href":157},"unexpected program behavior"," . In some cases, these ",[43,2778,2780],{"href":2779},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-securityflaw","security flaws"," may allow the execution of arbitrary code.",[39,2783,2784,2785,2790,2791,2795],{},"Reading uninitialized variables for creating entropy is problematic because these memory accesses can be removed by compiler optimization. ",[43,2786,2789],{"href":2787,"rel":2788},"http:\u002F\u002Fwww.kb.cert.org\u002Fvuls\u002Fid\u002F925211",[1484],"VU#925211"," is an example of a ",[43,2792,2794],{"href":2793},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-vulnerability","vulnerability"," caused by this coding error.",[73,2797,2798,2799,2798,2826],{},"\n  ",[76,2800,2801,2802,2798],{},"\n    ",[79,2803,2804,2805,2804,2808,2804,2811,2804,2814,2804,2817,2804,2820,2804,2823,2801],{},"\n      ",[82,2806,2807],{},"Rule",[82,2809,2810],{},"Severity",[82,2812,2813],{},"Likelihood",[82,2815,2816],{},"Detectable",[82,2818,2819],{},"Repairable",[82,2821,2822],{},"Priority",[82,2824,2825],{},"Level",[87,2827,2801,2828,2798],{},[79,2829,2804,2830,2804,2833,2804,2836,2804,2839,2804,2842,2804,2845,2804,2852,2801],{},[92,2831,2832],{},"EXP33-C",[92,2834,2835],{},"High",[92,2837,2838],{},"Probable",[92,2840,2841],{},"No",[92,2843,2844],{},"Yes",[92,2846,2848],{"style":2847},"color: #e74c3c;",[2849,2850,2851],"b",{},"P12",[92,2853,2854],{"style":2847},[2849,2855,2856],{},"L1",[2858,2859,2861],"h3",{"id":2860},"automated-detection","Automated Detection",[73,2863,2868,2884],{"className":2864,"style":2867},[2865,2866],"wrapped","relative-table","width: 100.0%;",[2869,2870,2871,2875,2878,2881],"colgroup",{},[2872,2873],"col",{"style":2874},"width: 9%",[2872,2876],{"style":2877},"width: 28%",[2872,2879],{"style":2880},"width: 22%",[2872,2882],{"style":2883},"width: 38%",[87,2885,2886,2902,2935,2963,3008,3033,3055,3080,3120,3153,3178,3205,3258,3286,3314,3336,3365,3412,3468,3491,3542,3562],{},[79,2887,2890,2893,2896,2899],{"className":2888},[2889],"header",[82,2891,2892],{},"Tool",[82,2894,2895],{},"Version",[82,2897,2898],{},"Checker",[82,2900,2901],{},"Description",[79,2903,2906,2912,2920,2932],{"className":2904},[2905],"odd",[92,2907,2908],{},[43,2909,2911],{"href":2910},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fastree","Astrée",[92,2913,2914],{},[2915,2916,2919],"div",{"className":2917},[2918],"content-wrapper","25.10",[92,2921,2922,2927],{},[39,2923,2924],{},[2730,2925,2926],{},"uninitialized-local-read",[39,2928,2929],{},[2730,2930,2931],{},"uninitialized-variable-use",[92,2933,2934],{},"Fully checked",[79,2936,2939,2945,2953,2958],{"className":2937},[2938],"even",[92,2940,2941],{},[43,2942,2944],{"href":2943},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Faxivion-bauhaus-suite","Axivion Bauhaus Suite",[92,2946,2947],{},[2915,2948,2950],{"className":2949},[2918],[39,2951,2952],{},"7.2.0",[92,2954,2955],{},[2730,2956,2957],{},"CertC-EXP33",[92,2959,2960],{},[2961,2962],"br",{},[79,2964,2966,2972,2980,2997],{"className":2965},[2905],[92,2967,2968],{},[43,2969,2971],{"href":2970},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodee","Codee",[92,2973,2974],{},[2915,2975,2977],{"className":2976},[2918],[39,2978,2979],{},"2025.4.9",[92,2981,2982,2987,2992],{},[39,2983,2984],{},[2730,2985,2986],{},"PWR079",[39,2988,2989],{},[2730,2990,2991],{},"PWR080",[39,2993,2994],{},[2730,2995,2996],{},"PWD006",[92,2998,2999,3002,3005],{},[39,3000,3001],{},"Avoid undefined behavior due to uninitialized variables",[39,3003,3004],{},"Conditionally initialized variables can lead to undefined behavior",[39,3006,3007],{},"Missing deep copy of non-contiguous data to the GPU",[79,3009,3011,3017,3025,3030],{"className":3010},[2938],[92,3012,3013],{},[43,3014,3016],{"href":3015},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcodesonar","CodeSonar",[92,3018,3019],{},[2915,3020,3022],{"className":3021},[2918],[39,3023,3024],{},"9.1p0",[92,3026,3027],{},[2730,3028,3029],{},"LANG.MEM.UVAR",[92,3031,3032],{},"Uninitialized variable",[79,3034,3036,3042,3046,3050],{"className":3035},[2905],[92,3037,3038],{},[43,3039,3041],{"href":3040},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frose","Compass\u002FROSE",[92,3043,3044],{},[2961,3045],{},[92,3047,3048],{},[2961,3049],{},[92,3051,3052],{},[39,3053,3054],{},"Automatically detects simple violations of this rule, although it may return some false positives. It may not catch more complex violations, such as initialization within functions taking uninitialized variables as arguments. It does catch the second noncompliant code example, and can be extended to catch the first as well",[79,3056,3058,3064,3070,3077],{"className":3057},[2938],[92,3059,3060],{},[43,3061,3063],{"href":3062},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcoverity","Coverity",[92,3065,3066],{},[2915,3067,3069],{"className":3068},[2918],"2017.07",[92,3071,3072],{},[39,3073,3074],{},[2730,3075,3076],{},"UNINIT",[92,3078,3079],{},"Implemented",[79,3081,3083,3089,3095,3114],{"className":3082},[2905],[92,3084,3085],{},[43,3086,3088],{"href":3087},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck","Cppcheck",[92,3090,3091],{},[2915,3092,3094],{"className":3093},[2918],"2.15",[92,3096,3097],{},[39,3098,3099],{},[2730,3100,3101,3102,3104,3105,3107,3108,3110,3111,3113],{},"uninitvar",[2961,3103],{},"\nuninitdata",[2961,3106],{},"\nuninitstring",[2961,3109],{},"\nuninitMemberVar",[2961,3112],{},"\nuninitStructMember",[92,3115,3116],{},[39,3117,3118],{},[2961,3119],{},[79,3121,3123,3129,3137,3149],{"className":3122},[2938],[92,3124,3125],{},[43,3126,3128],{"href":3127},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fcppcheck-premium","Cppcheck Premium",[92,3130,3131],{},[2915,3132,3134],{"className":3133},[2918],[39,3135,3136],{},"24.11.0",[92,3138,3139],{},[2730,3140,3101,3141,3104,3143,3107,3145,3110,3147,3113],{},[2961,3142],{},[2961,3144],{},[2961,3146],{},[2961,3148],{},[92,3150,3151],{},[2961,3152],{},[79,3154,3156,3162,3165,3169],{"className":3155},[2905],[92,3157,3158],{},[43,3159,3161],{"href":3160},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fgcc","GCC",[92,3163,3164],{},"4.3.5",[92,3166,3167],{},[2961,3168],{},[92,3170,3171],{},[39,3172,3173,3174,3177],{},"Can detect some violations of this rule when the ",[103,3175,3176],{},"       -Wuninitialized      "," flag is used",[79,3179,3181,3187,3195,3202],{"className":3180},[2938],[92,3182,3183],{},[43,3184,3186],{"href":3185},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fhelix-qac","Helix QAC",[92,3188,3189],{},[2915,3190,3192],{"className":3191},[2918],[39,3193,3194],{},"2025.2",[92,3196,3197],{},[39,3198,3199],{},[2730,3200,3201],{},"DF2726, DF2727, DF2728, DF2961, DF2962, DF2963, DF2966, DF2967, DF2968, DF2971, DF2972, DF2973, DF2976, DF2977, DF2978",[92,3203,3204],{},"Fully implemented",[79,3206,3208,3214,3219,3256],{"className":3207},[2905],[92,3209,3210],{},[43,3211,3213],{"href":3212},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fklocwork","Klocwork",[92,3215,3216],{},[2915,3217,3194],{"className":3218},[2918],[92,3220,3221],{},[39,3222,3223,3226,3228,3231,3233,3236,3238,3241,3243,3246,3248,3251,3253],{},[2730,3224,3225],{},"UNINIT.HEAP.MIGHT",[2961,3227],{},[2730,3229,3230],{},"UNINIT.HEAP.MUST",[2961,3232],{},[2730,3234,3235],{},"UNINIT.STACK.ARRAY.MIGHT",[2961,3237],{},[2730,3239,3240],{},"UNINIT.STACK.ARRAY.MUST",[2961,3242],{},[2730,3244,3245],{},"UNINIT.STACK.ARRAY.PARTIAL.MUST",[2961,3247],{},[2730,3249,3250],{},"UNINIT.STACK.MIGHT",[2961,3252],{},[2730,3254,3255],{},"UNINIT.STACK.MUST",[92,3257,3204],{},[79,3259,3261,3267,3273,3282],{"className":3260},[2938],[92,3262,3263],{},[43,3264,3266],{"href":3265},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fldra","LDRA tool suite",[92,3268,3269],{},[2915,3270,3272],{"className":3271},[2918],"9.7.1",[92,3274,3275],{},[39,3276,3277],{},[2730,3278,3279,3280],{},"53 D, 69 D, 631 S, 652 S",[2961,3281],{},[92,3283,3284],{},[39,3285,3204],{},[79,3287,3289,3295,3302,3309],{"className":3288},[2905],[92,3290,3291],{},[43,3292,3294],{"href":3293},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fparasoft","Parasoft C\u002FC++test",[92,3296,3297],{},[2915,3298,3300],{"className":3299},[2918],[39,3301,3194],{},[92,3303,3304],{},[2730,3305,3306,3307],{},"CERT_C-EXP33-a",[2961,3308],{},[92,3310,3311],{},[39,3312,3313],{},"Avoid use before initialization",[79,3315,3317,3322,3329,3333],{"className":3316},[2938],[92,3318,3319],{},[43,3320,3321],{"href":3293},"Parasoft Insure++",[92,3323,3324],{},[2915,3325,3327],{"className":3326},[2918],[39,3328,3194],{},[92,3330,3331],{},[2961,3332],{},[92,3334,3335],{},"Runtime analysis",[79,3337,3339,3345,3353,3360],{"className":3338},[2905],[92,3340,3341],{},[43,3342,3344],{"href":3343},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpc-lint-plus","PC-lint Plus",[92,3346,3347],{},[2915,3348,3350],{"className":3349},[2918],[39,3351,3352],{},"1.4",[92,3354,3355],{},[39,3356,3357],{},[2730,3358,3359],{},"530, 603, 644, 901",[92,3361,3362],{},[39,3363,3364],{},"Fully supported",[79,3366,3368,3374,3382,3394],{"className":3367},[2938],[92,3369,3370],{},[43,3371,3373],{"href":3372},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpolyspace-bug-finder","Polyspace Bug Finder",[92,3375,3376],{},[2915,3377,3379],{"className":3378},[2918],[39,3380,3381],{},"R2025b",[92,3383,3384,3390],{},[39,3385,3386],{},[43,3387,3389],{"href":3388},"https:\u002F\u002Fwww.mathworks.com\u002Fhelp\u002Fbugfinder\u002Fref\u002Fcertcruleexp33c.html","CERT C: Rule EXP33-C",[39,3391,3392],{},[2961,3393],{},[92,3395,3396,3399,3409],{},[39,3397,3398],{},"Checks for:",[3400,3401,3402,3406],"ul",{},[3403,3404,3405],"li",{},"Non-initialized variable",[3403,3407,3408],{},"Non-initialized pointer",[39,3410,3411],{},"Rule partially covered",[79,3413,3415,3421,3429,3464],{"className":3414},[2905],[92,3416,3417],{},[43,3418,3420],{"href":3419},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fpvs-studio","PVS-Studio",[92,3422,3423],{},[2915,3424,3426],{"className":3425},[2918],[39,3427,3428],{},"7.42",[92,3430,3431,3437,3438,3437,3444,3437,3450,3437,3456],{},[43,3432,3434],{"href":3433},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv573\u002F",[2730,3435,3436],{},"V573"," , ",[43,3439,3441],{"href":3440},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv614\u002F",[2730,3442,3443],{},"V614",[43,3445,3447],{"href":3446},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv670\u002F",[2730,3448,3449],{},"V670",[2730,3451,3452],{},[43,3453,3455],{"href":3454},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv679\u002F","V679",[2730,3457,3458,3462],{},[43,3459,3461],{"href":3460},"https:\u002F\u002Fpvs-studio.com\u002Fen\u002Fdocs\u002Fwarnings\u002Fv1050\u002F","V1050",[2961,3463],{},[92,3465,3466],{},[2961,3467],{},[79,3469,3471,3477,3482,3488],{"className":3470},[2938],[92,3472,3473],{},[43,3474,3476],{"href":3475},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Frulechecker","RuleChecker",[92,3478,3479],{},[2915,3480,2919],{"className":3481},[2918],[92,3483,3484],{},[39,3485,3486],{},[2730,3487,2926],{},[92,3489,3490],{},"Partially checked",[79,3492,3494,3500,3506,3540],{"className":3493},[2905],[92,3495,3496],{},[43,3497,3499],{"href":3498},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsecurity-reviewer-static-reviewer","Security Reviewer - Static Reviewer",[92,3501,3502],{},[2915,3503,3505],{"className":3504},[2918],"6.02",[92,3507,3508],{},[2730,3509,3510,3511,3513,3514,3516,3517,3519,3520,3522,3523,3525,3526,3528,3529,3531,3532,3534,3535,3537,3538],{},"C54",[2961,3512],{},"\nC55",[2961,3515],{},"\nC56",[2961,3518],{},"\nC57",[2961,3521],{},"\nC58",[2961,3524],{},"\nC59",[2961,3527],{},"\nC60",[2961,3530],{},"\nC61",[2961,3533],{},"\nC62",[2961,3536],{},"\nC63",[2961,3539],{},[92,3541,3204],{},[79,3543,3545,3551,3554,3558],{"className":3544},[2938],[92,3546,3547],{},[43,3548,3550],{"href":3549},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Fsplint","Splint",[92,3552,3553],{},"3.1.1",[92,3555,3556],{},[2961,3557],{},[92,3559,3560],{},[2961,3561],{},[79,3563,3565,3571,3579,3586],{"className":3564},[2905],[92,3566,3567],{},[43,3568,3570],{"href":3569},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fee-analyzers\u002Ftrustinsoft-analyzer","TrustInSoft Analyzer",[92,3572,3573],{},[2915,3574,3576],{"className":3575},[2918],[39,3577,3578],{},"1.38",[92,3580,3581],{},[2730,3582,3583,3584],{},"initialisation",[2961,3585],{},[92,3587,3588,3589,3593],{},"Exhaustively verified (see ",[43,3590,3592],{"href":3591},"https:\u002F\u002Ftaas.trust-in-soft.com\u002Ftsnippet\u002Ft\u002Fc72964e2","one compliant and one non-compliant example"," ).",[2858,3595,3597],{"id":3596},"related-vulnerabilities","Related Vulnerabilities",[39,3599,3600,3605,3606,3610,3611,3616],{},[43,3601,3604],{"href":3602,"rel":3603},"http:\u002F\u002Fweb.nvd.nist.gov\u002Fview\u002Fvuln\u002Fdetail?vulnId=CVE-2009-1888",[1484],"CVE-2009-1888"," results from a violation of this rule. Some versions of SAMBA (up to 3.3.5) call a function that takes in two potentially uninitialized variables involving access rights. An attacker can ",[43,3607,3609],{"href":3608},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions#BB.Definitions-exploit","exploit"," these coding errors to bypass the access control list and gain access to protected files [ ",[43,3612,3615],{"href":3613,"rel":3614},"http:\u002F\u002Fxorl.wordpress.com\u002F2009\u002F06\u002F26\u002Fcve-2009-1888-samba-acls-uninitialized-memory-read\u002F",[1484],"xorl 2009"," ].",[39,3618,3619,3620,3623,3624,58],{},"Search for ",[43,3621,3622],{"href":2793},"vulnerabilities"," resulting from the violation of this rule on the ",[43,3625,3628],{"href":3626,"rel":3627},"https:\u002F\u002Fwww.kb.cert.org\u002Fvulnotes\u002Fbymetric?searchview&query=FIELD+KEYWORDS+contains+EXP33-C",[1484],"CERT website",[176,3630,3632],{"id":3631},"related-guidelines","Related Guidelines",[39,3634,3635,3639],{},[43,3636,3638],{"href":3637},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-RelatedGuidelines","Key here"," (explains table format and definitions)",[73,3641,3642,3652],{},[76,3643,3644],{},[79,3645,3646,3648,3650],{},[82,3647],{},[82,3649],{},[82,3651],{},[87,3653,3654,3665,3679,3691,3706,3719,3732,3751,3767,3784],{},[79,3655,3656,3659,3662],{},[92,3657,3658],{},"Taxonomy",[92,3660,3661],{},"Taxonomy item",[92,3663,3664],{},"Relationship",[79,3666,3667,3672,3676],{},[92,3668,3669],{},[43,3670,3671],{"href":17},"CERT C Secure Coding Standard",[92,3673,3674],{},[43,3675,173],{"href":172},[92,3677,3678],{},"Prior to 2018-01-12: CERT: Unspecified Relationship",[79,3680,3681,3685,3689],{},[92,3682,3683],{},[43,3684,3671],{"href":17},[92,3686,3687],{},[43,3688,464],{"href":463},[92,3690,3678],{},[79,3692,3693,3698,3704],{},[92,3694,3695],{},[43,3696,3697],{"href":20},"CERT C",[92,3699,3700],{},[43,3701,3703],{"href":3702},"\u002Fsei-cert-cpp-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp53-cpp","EXP53-CPP. Do not read uninitialized memory",[92,3705,3678],{},[79,3707,3708,3714,3717],{},[92,3709,3710],{},[43,3711,3713],{"href":3712},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTR24772-2013","ISO\u002FIEC TR 24772:2013",[92,3715,3716],{},"Initialization of Variables [LAV]",[92,3718,3678],{},[79,3720,3721,3727,3730],{},[92,3722,3723],{},[43,3724,3726],{"href":3725},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-ISO-IECTS17961","ISO\u002FIEC TS 17961",[92,3728,3729],{},"Referencing uninitialized memory [uninitref]",[92,3731,3678],{},[79,3733,3734,3741,3748],{},[92,3735,3736],{},[43,3737,3740],{"href":3738,"rel":3739},"http:\u002F\u002Fcwe.mitre.org\u002F",[1484],"CWE 2.11",[92,3742,3743],{},[43,3744,3747],{"href":3745,"rel":3746},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html456.html",[1484],"CWE-456",[92,3749,3750],{},"2017-07-05: CERT: Exact",[79,3752,3753,3758,3765],{},[92,3754,3755],{},[43,3756,3740],{"href":3738,"rel":3757},[1484],[92,3759,3760],{},[43,3761,3764],{"href":3762,"rel":3763},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html457.html",[1484],"CWE-457",[92,3766,3750],{},[79,3768,3769,3774,3781],{},[92,3770,3771],{},[43,3772,3740],{"href":3738,"rel":3773},[1484],[92,3775,3776],{},[43,3777,3780],{"href":3778,"rel":3779},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html758.html",[1484],"CWE-758",[92,3782,3783],{},"2017-07-05: CERT: Rule subset of CWE",[79,3785,3786,3791,3798],{},[92,3787,3788],{},[43,3789,3740],{"href":3738,"rel":3790},[1484],[92,3792,3793],{},[43,3794,3797],{"href":3795,"rel":3796},"https:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Findex.html908.html",[1484],"CWE-908",[92,3799,3783],{},[176,3801,3803],{"id":3802},"cert-cwe-mapping-notes","CERT-CWE Mapping Notes",[39,3805,3806,3809],{},[43,3807,3638],{"href":3808},"\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhow-this-coding-standard-is-organized#HowthisCodingStandardisOrganized-CERT-CWEMappingNotes"," for mapping notes",[2858,3811,3813],{"id":3812},"cwe-119-and-exp33-c","CWE-119 and EXP33-C",[3400,3815,3816,3819],{},[3403,3817,3818],{},"Intersection( CWE-119, EXP33-C) = Ø",[3403,3820,3821],{},"EXP33-C is about reading uninitialized memory, but this memory is considered part of a valid buffer (on the stack, or returned by a heap function). No buffer overflow is involved.",[2858,3823,3825],{"id":3824},"cwe-676-and-exp33-c","CWE-676 and EXP33-C",[3400,3827,3828,3831],{},[3403,3829,3830],{},"Intersection( CWE-676, EXP33-C) = Ø",[3403,3832,3833],{},"EXP33-C implies that memory allocation functions (e.g., malloc()) are dangerous because they do not initialize the memory they reserve. However, the danger is not in their invocation, but rather reading their returned memory without initializing it.",[2858,3835,3837],{"id":3836},"cwe-758-and-exp33-c","CWE-758 and EXP33-C",[39,3839,3840],{},"Independent( INT34-C, INT36-C, MSC37-C, FLP32-C, EXP33-C, EXP30-C, ERR34-C, ARR32-C)",[39,3842,3843],{},"CWE-758 = Union( EXP33-C, list) where list =",[3400,3845,3846],{},[3403,3847,3848],{},"Undefined behavior that results from anything other than reading uninitialized memory",[2858,3850,3852],{"id":3851},"cwe-665-and-exp33-c","CWE-665 and EXP33-C",[39,3854,3855],{},"Intersection( CWE-665, EXP33-C) = Ø",[39,3857,3858],{},"CWE-665 is about correctly initializing items (usually objects), not reading them later. EXP33-C is about reading memory later (that has not been initialized).",[2858,3860,3862],{"id":3861},"cwe-908-and-exp33-c","CWE-908 and EXP33-C",[39,3864,3865],{},"CWE-908 = Union( EXP33-C, list) where list =",[3400,3867,3868],{},[3403,3869,3870],{},"Use of uninitialized items besides raw memory (objects, disk space, etc)",[39,3872,3873],{},"New CWE-CERT mappings:",[2858,3875,3877],{"id":3876},"cwe-123-and-exp33-c","CWE-123 and EXP33-C",[39,3879,3880],{},"Intersection( CWE-123, EXP33-C) = Ø",[39,3882,3883],{},"EXP33-C is only about reading uninitialized memory, not writing, whereas CWE-123 is about writing.",[2858,3885,3887],{"id":3886},"cwe-824-and-exp33-c","CWE-824 and EXP33-C",[39,3889,3890],{},"EXP33-C = Union( CWE-824, list) where list =",[3400,3892,3893],{},[3403,3894,3895],{},"Read of uninitialized memory that does not represent a pointer",[176,3897,3899],{"id":3898},"bibliography","Bibliography",[73,3901,3903,3910],{"className":3902},[2865],[2869,3904,3905,3908],{},[2872,3906],{"style":3907},"width: 50%",[2872,3909],{"style":3907},[87,3911,3912,3926,3942,3953,3965,3977],{},[79,3913,3915,3922],{"className":3914},[2905],[92,3916,3917,3918,47],{},"[ ",[43,3919,3921],{"href":3920},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-Flake06","Flake 2006",[92,3923,3924],{},[2961,3925],{},[79,3927,3929,3933],{"className":3928},[2938],[92,3930,3917,3931,47],{},[43,3932,46],{"href":45},[92,3934,3935,3936,3938,3939,3941],{},"Subclause 6.7.11, \"Initialization\"",[2961,3937],{},"\nSubclause 6.2.6.1, \"General\"",[2961,3940],{},"\nSubclause 6.3.2.1, \"Lvalues, Arrays, and Function Designators\"",[79,3943,3945,3949],{"className":3944},[2905],[92,3946,3917,3947,47],{},[43,3948,685],{"href":684},[92,3950,3951],{},[2961,3952],{},[79,3954,3956,3961],{"className":3955},[2938],[92,3957,3917,3958,47],{},[43,3959,2789],{"href":3960},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-VU925211",[92,3962,3963],{},[2961,3964],{},[79,3966,3968,3972],{"className":3967},[2905],[92,3969,3917,3970,47],{},[43,3971,1490],{"href":1489},[92,3973,3974],{},[43,3975,3976],{"href":1482},"\"More Randomness or Less\"",[79,3978,3980,3985],{"className":3979},[2938],[92,3981,3917,3982,47],{},[43,3983,3615],{"href":3984},"\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography#AA.Bibliography-xorl2009",[92,3986,3987],{},[43,3988,3989],{"href":3613},"\"CVE-2009-1888: SAMBA ACLs Uninitialized Memory Read\"",[3991,3992],"hr",{},[39,3994,3995,4002,4003,4002,4009],{},[43,3996,3998],{"href":3997},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp32-c",[3999,4000],"img",{"src":4001},"\u002Fattachments\u002F87152044\u002F88034188.png"," ",[43,4004,4006],{"href":4005},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002F",[3999,4007],{"src":4008},"\u002Fattachments\u002F87152044\u002F88034190.png",[43,4010,4012],{"href":4011},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp34-c",[3999,4013],{"src":4014},"\u002Fattachments\u002F87152044\u002F88034189.png",[4016,4017,4018],"style",{},"html pre.shiki code .sq6CD, html code.shiki .sq6CD{--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .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 .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}html pre.shiki code .sOrwc, html code.shiki .sOrwc{--shiki-default:#E36209;--shiki-dark:#FFAB70;--shiki-sepia:#F8F8F2}html pre.shiki code .s-m8C, html code.shiki .s-m8C{--shiki-default:#005CC5;--shiki-default-font-style:inherit;--shiki-dark:#79B8FF;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}",{"title":227,"searchDepth":270,"depth":270,"links":4020},[4021,4022,4023,4024,4025,4026,4027,4029,4031,4032,4033,4035,4037,4038,4042,4043,4052],{"id":178,"depth":270,"text":179},{"id":467,"depth":270,"text":468},{"id":665,"depth":270,"text":666},{"id":919,"depth":270,"text":666},{"id":1043,"depth":270,"text":1044},{"id":1172,"depth":270,"text":1173},{"id":1234,"depth":270,"text":4028},"Noncompliant Code Example ( mbstate_t )",{"id":1357,"depth":270,"text":4030},"Compliant Solution ( mbstate_t )",{"id":1475,"depth":270,"text":1476},{"id":1643,"depth":270,"text":1644},{"id":1789,"depth":270,"text":4034},"Noncompliant Code Example ( realloc() )",{"id":2258,"depth":270,"text":4036},"Compliant Solution ( realloc() )",{"id":2725,"depth":270,"text":2726},{"id":2763,"depth":270,"text":2764,"children":4039},[4040,4041],{"id":2860,"depth":289,"text":2861},{"id":3596,"depth":289,"text":3597},{"id":3631,"depth":270,"text":3632},{"id":3802,"depth":270,"text":3803,"children":4044},[4045,4046,4047,4048,4049,4050,4051],{"id":3812,"depth":289,"text":3813},{"id":3824,"depth":289,"text":3825},{"id":3836,"depth":289,"text":3837},{"id":3851,"depth":289,"text":3852},{"id":3861,"depth":289,"text":3862},{"id":3876,"depth":289,"text":3877},{"id":3886,"depth":289,"text":3887},{"id":3898,"depth":270,"text":3899},"Local, automatic variables assume unexpected values if they are read before they are initialized. The C Standard, 6.7.11, paragraph 11, specifies [ ISO\u002FIEC 9899:2024 ]","md",{"tags":4056},[4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072],"klocwork","ptc","fortify","rose-partial","compass\u002Frose","code-defect","cwe-665","memory-management","exp","splint","gcc","cwe-119","coverity","not-for-cpp","rule","android-applicable","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp33-c",{"title":30,"description":4053},"4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F04.exp33-c","Ot3VQMklj6vY7_DgnH0_XMcWE5m11avnUMnbYbCqECE",[4078,4081],{"title":4079,"path":3997,"stem":4080,"children":-1},"EXP32-C. Do not access a volatile object through a nonvolatile reference","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F03.exp32-c",{"title":4082,"path":4011,"stem":4083,"children":-1},"EXP34-C. Do not dereference null pointers","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F05.exp34-c",[4085],{"title":4086,"path":4087,"stem":4088,"children":4089},"SEI CERT C Coding Standard","\u002Fsei-cert-c-coding-standard","4.sei-cert-c-coding-standard\u002F01.index",[4090,4091,4163,4742,5002,5016,5020,5024,5028,5839],{"title":4086,"path":4087,"stem":4088},{"title":4092,"path":4093,"stem":4094,"children":4095},"Front Matter","\u002Fsei-cert-c-coding-standard\u002Ffront-matter","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F1.index",[4096,4097],{"title":4092,"path":4093,"stem":4094},{"title":4098,"path":4099,"stem":4100,"children":4101},"Introduction","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.index",[4102,4103,4107,4111,4115,4119,4123,4127,4131,4135,4139,4143,4147,4151,4155,4159],{"title":4098,"path":4099,"stem":4100},{"title":4104,"path":4105,"stem":4106},"Scope","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fscope","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F01.scope",{"title":4108,"path":4109,"stem":4110},"Audience","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Faudience","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F02.audience",{"title":4112,"path":4113,"stem":4114},"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":4116,"path":4117,"stem":4118},"History","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fhistory","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F04.history",{"title":4120,"path":4121,"stem":4122},"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":4124,"path":4125,"stem":4126},"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":4128,"path":4129,"stem":4130},"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":4132,"path":4133,"stem":4134},"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":4136,"path":4137,"stem":4138},"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":4140,"path":4141,"stem":4142},"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":4144,"path":4145,"stem":4146},"Usage","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Fusage","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F11.usage",{"title":4148,"path":4149,"stem":4150},"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":4152,"path":4153,"stem":4154},"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":4156,"path":4157,"stem":4158},"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":4160,"path":4161,"stem":4162},"Acknowledgments","\u002Fsei-cert-c-coding-standard\u002Ffront-matter\u002Fintroduction\u002Facknowledgments","4.sei-cert-c-coding-standard\u002F02.front-matter\u002F2.introduction\u002F15.acknowledgments",{"title":4164,"path":4165,"stem":4166,"children":4167},"Rules","\u002Fsei-cert-c-coding-standard\u002Frules","4.sei-cert-c-coding-standard\u002F03.rules\u002F01.index",[4168,4169,4173,4203,4231,4293,4331,4357,4379,4436,4462,4520,4554,4584,4594,4632,4702,4720],{"title":4164,"path":4165,"stem":4166},{"title":4170,"path":4171,"stem":4172},"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":4174,"path":4175,"stem":4176,"children":4177},"Arrays (ARR)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F03.rules\u002F03.arrays-arr\u002F1.index",[4178,4179,4183,4187,4191,4195,4199],{"title":4174,"path":4175,"stem":4176},{"title":4180,"path":4181,"stem":4182},"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":4184,"path":4185,"stem":4186},"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":4188,"path":4189,"stem":4190},"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":4192,"path":4193,"stem":4194},"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":4196,"path":4197,"stem":4198},"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":4200,"path":4201,"stem":4202},"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":4204,"path":4205,"stem":4206,"children":4207},"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",[4208,4209,4213,4215,4219,4223,4227],{"title":4204,"path":4205,"stem":4206},{"title":4210,"path":4211,"stem":4212},"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":1040,"path":1039,"stem":4214},"4.sei-cert-c-coding-standard\u002F03.rules\u002F04.characters-and-strings-str\u002F3.str31-c",{"title":4216,"path":4217,"stem":4218},"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":4220,"path":4221,"stem":4222},"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":4224,"path":4225,"stem":4226},"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":4228,"path":4229,"stem":4230},"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":4232,"path":4233,"stem":4234,"children":4235},"Concurrency (CON)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F03.rules\u002F05.concurrency-con\u002F01.index",[4236,4237,4241,4245,4249,4253,4257,4261,4265,4269,4273,4277,4281,4285,4289],{"title":4232,"path":4233,"stem":4234},{"title":4238,"path":4239,"stem":4240},"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":4242,"path":4243,"stem":4244},"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":4246,"path":4247,"stem":4248},"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":4250,"path":4251,"stem":4252},"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":4254,"path":4255,"stem":4256},"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":4258,"path":4259,"stem":4260},"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":4262,"path":4263,"stem":4264},"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":4266,"path":4267,"stem":4268},"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":4270,"path":4271,"stem":4272},"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":4274,"path":4275,"stem":4276},"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":4278,"path":4279,"stem":4280},"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":4282,"path":4283,"stem":4284},"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":4286,"path":4287,"stem":4288},"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":4290,"path":4291,"stem":4292},"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":4294,"path":4295,"stem":4296,"children":4297},"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",[4298,4299,4303,4307,4311,4315,4319,4323,4327],{"title":4294,"path":4295,"stem":4296},{"title":4300,"path":4301,"stem":4302},"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":4304,"path":4305,"stem":4306},"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":4308,"path":4309,"stem":4310},"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":4312,"path":4313,"stem":4314},"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":4316,"path":4317,"stem":4318},"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":4320,"path":4321,"stem":4322},"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":4324,"path":4325,"stem":4326},"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":4328,"path":4329,"stem":4330},"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":4332,"path":4333,"stem":4334,"children":4335},"Environment (ENV)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F03.rules\u002F07.environment-env\u002F1.index",[4336,4337,4341,4345,4349,4353],{"title":4332,"path":4333,"stem":4334},{"title":4338,"path":4339,"stem":4340},"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":4342,"path":4343,"stem":4344},"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":4346,"path":4347,"stem":4348},"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":4350,"path":4351,"stem":4352},"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":4354,"path":4355,"stem":4356},"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":4358,"path":4359,"stem":4360,"children":4361},"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",[4362,4363,4367,4371,4375],{"title":4358,"path":4359,"stem":4360},{"title":4364,"path":4365,"stem":4366},"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":4368,"path":4369,"stem":4370},"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":4372,"path":4373,"stem":4374},"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":4376,"path":4377,"stem":4378},"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":4380,"path":4381,"stem":4382,"children":4383},"Expressions (EXP)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F01.index",[4384,4385,4389,4390,4391,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432],{"title":4380,"path":4381,"stem":4382},{"title":4386,"path":4387,"stem":4388},"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":4079,"path":3997,"stem":4080},{"title":30,"path":4073,"stem":4075},{"title":4082,"path":4011,"stem":4083},{"title":4393,"path":4394,"stem":4395},"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":4397,"path":4398,"stem":4399},"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":4401,"path":4402,"stem":4403},"EXP37-C. Call functions with the correct number and type of arguments","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp37-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F08.exp37-c",{"title":4405,"path":4406,"stem":4407},"EXP39-C. Do not access a variable through a pointer of an incompatible type","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp39-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F09.exp39-c",{"title":4409,"path":4410,"stem":4411},"EXP40-C. Do not modify constant objects","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fexpressions-exp\u002Fexp40-c","4.sei-cert-c-coding-standard\u002F03.rules\u002F09.expressions-exp\u002F10.exp40-c",{"title":4413,"path":4414,"stem":4415},"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":4417,"path":4418,"stem":4419},"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":4421,"path":4422,"stem":4423},"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":4425,"path":4426,"stem":4427},"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":4429,"path":4430,"stem":4431},"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":4433,"path":4434,"stem":4435},"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":4437,"path":4438,"stem":4439,"children":4440},"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",[4441,4442,4446,4450,4454,4458],{"title":4437,"path":4438,"stem":4439},{"title":4443,"path":4444,"stem":4445},"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":4447,"path":4448,"stem":4449},"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":4451,"path":4452,"stem":4453},"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":4455,"path":4456,"stem":4457},"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":4459,"path":4460,"stem":4461},"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":4463,"path":4464,"stem":4465,"children":4466},"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",[4467,4468,4472,4476,4480,4484,4488,4492,4496,4500,4504,4508,4512,4516],{"title":4463,"path":4464,"stem":4465},{"title":4469,"path":4470,"stem":4471},"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":4473,"path":4474,"stem":4475},"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":4477,"path":4478,"stem":4479},"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":4481,"path":4482,"stem":4483},"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":4485,"path":4486,"stem":4487},"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":4489,"path":4490,"stem":4491},"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":4493,"path":4494,"stem":4495},"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":4497,"path":4498,"stem":4499},"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":4501,"path":4502,"stem":4503},"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":4505,"path":4506,"stem":4507},"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":4509,"path":4510,"stem":4511},"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":4513,"path":4514,"stem":4515},"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":4517,"path":4518,"stem":4519},"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":4521,"path":4522,"stem":4523,"children":4524},"Integers (INT)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F03.rules\u002F12.integers-int\u002F1.index",[4525,4526,4530,4534,4538,4542,4546,4550],{"title":4521,"path":4522,"stem":4523},{"title":4527,"path":4528,"stem":4529},"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":4531,"path":4532,"stem":4533},"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":4535,"path":4536,"stem":4537},"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":4539,"path":4540,"stem":4541},"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":4543,"path":4544,"stem":4545},"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":4547,"path":4548,"stem":4549},"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":4551,"path":4552,"stem":4553},"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":4555,"path":4556,"stem":4557,"children":4558},"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",[4559,4560,4564,4568,4572,4576,4580],{"title":4555,"path":4556,"stem":4557},{"title":4561,"path":4562,"stem":4563},"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":4565,"path":4566,"stem":4567},"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":4569,"path":4570,"stem":4571},"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":4573,"path":4574,"stem":4575},"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":4577,"path":4578,"stem":4579},"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":4581,"path":4582,"stem":4583},"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":4585,"path":4586,"stem":4587,"children":4588},"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",[4589,4590],{"title":4585,"path":4586,"stem":4587},{"title":4591,"path":4592,"stem":4593},"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":4595,"path":4596,"stem":4597,"children":4598},"Miscellaneous (MSC)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F03.rules\u002F15.miscellaneous-msc\u002F1.index",[4599,4600,4604,4608,4612,4616,4620,4624,4628],{"title":4595,"path":4596,"stem":4597},{"title":4601,"path":4602,"stem":4603},"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":4605,"path":4606,"stem":4607},"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":4609,"path":4610,"stem":4611},"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":4613,"path":4614,"stem":4615},"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":4617,"path":4618,"stem":4619},"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":4621,"path":4622,"stem":4623},"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":4625,"path":4626,"stem":4627},"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":4629,"path":4630,"stem":4631},"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":4633,"path":4634,"stem":4635,"children":4636},"POSIX (POS)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F03.rules\u002F16.posix-pos\u002F01.index",[4637,4638,4642,4646,4650,4654,4658,4662,4666,4670,4674,4678,4682,4686,4690,4694,4698],{"title":4633,"path":4634,"stem":4635},{"title":4639,"path":4640,"stem":4641},"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":4643,"path":4644,"stem":4645},"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":4647,"path":4648,"stem":4649},"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":4651,"path":4652,"stem":4653},"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":4655,"path":4656,"stem":4657},"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":4659,"path":4660,"stem":4661},"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":4663,"path":4664,"stem":4665},"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":4667,"path":4668,"stem":4669},"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":4671,"path":4672,"stem":4673},"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":4675,"path":4676,"stem":4677},"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":4679,"path":4680,"stem":4681},"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":4683,"path":4684,"stem":4685},"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":4687,"path":4688,"stem":4689},"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":4691,"path":4692,"stem":4693},"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":4695,"path":4696,"stem":4697},"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":4699,"path":4700,"stem":4701},"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":4703,"path":4704,"stem":4705,"children":4706},"Preprocessor (PRE)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F03.rules\u002F17.preprocessor-pre\u002F1.index",[4707,4708,4712,4716],{"title":4703,"path":4704,"stem":4705},{"title":4709,"path":4710,"stem":4711},"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":4713,"path":4714,"stem":4715},"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":4717,"path":4718,"stem":4719},"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":4721,"path":4722,"stem":4723,"children":4724},"Signals (SIG)","\u002Fsei-cert-c-coding-standard\u002Frules\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F03.rules\u002F18.signals-sig\u002F1.index",[4725,4726,4730,4734,4738],{"title":4721,"path":4722,"stem":4723},{"title":4727,"path":4728,"stem":4729},"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":4731,"path":4732,"stem":4733},"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":4735,"path":4736,"stem":4737},"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":4739,"path":4740,"stem":4741},"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":4743,"path":4744,"stem":4745,"children":4746},"Back Matter","\u002Fsei-cert-c-coding-standard\u002Fback-matter","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F1.index",[4747,4748,4752,4756,4760,4764,4941,4998],{"title":4743,"path":4744,"stem":4745},{"title":4749,"path":4750,"stem":4751},"AA. Bibliography","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Faa-bibliography","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F2.aa-bibliography",{"title":4753,"path":4754,"stem":4755},"BB. Definitions","\u002Fsei-cert-c-coding-standard\u002Fback-matter\u002Fbb-definitions","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F3.bb-definitions",{"title":4757,"path":4758,"stem":4759},"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":4761,"path":4762,"stem":4763},"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":4765,"path":4766,"stem":4767,"children":4768},"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",[4769,4770,4772,4776,4778,4782,4786,4790,4794,4798,4802,4804,4808,4810,4814,4816,4820,4822,4824,4828,4832,4836,4840,4844,4848,4850,4854,4856,4860,4862,4866,4869,4873,4876,4880,4882,4886,4888,4892,4894,4898,4901,4905,4909,4911,4915,4917,4921,4925,4929,4931,4935,4937],{"title":4765,"path":4766,"stem":4767},{"title":2911,"path":2910,"stem":4771},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F02.astree",{"title":4773,"path":4774,"stem":4775},"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":2944,"path":2943,"stem":4777},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F04.axivion-bauhaus-suite",{"title":4779,"path":4780,"stem":4781},"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":4783,"path":4784,"stem":4785},"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":4787,"path":4788,"stem":4789},"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":4791,"path":4792,"stem":4793},"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":4795,"path":4796,"stem":4797},"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":4799,"path":4800,"stem":4801},"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":2971,"path":2970,"stem":4803},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F11.codee",{"title":4805,"path":4806,"stem":4807},"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":3016,"path":3015,"stem":4809},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F13.codesonar",{"title":4811,"path":4812,"stem":4813},"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":3063,"path":3062,"stem":4815},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F15.coverity",{"title":4817,"path":4818,"stem":4819},"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":3088,"path":3087,"stem":4821},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F17.cppcheck",{"title":3128,"path":3127,"stem":4823},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F18.cppcheck-premium",{"title":4825,"path":4826,"stem":4827},"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":4829,"path":4830,"stem":4831},"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":4833,"path":4834,"stem":4835},"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":4837,"path":4838,"stem":4839},"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":4841,"path":4842,"stem":4843},"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":4845,"path":4846,"stem":4847},"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":3161,"path":3160,"stem":4849},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F25.gcc",{"title":4851,"path":4852,"stem":4853},"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":3186,"path":3185,"stem":4855},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F27.helix-qac",{"title":4857,"path":4858,"stem":4859},"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":3213,"path":3212,"stem":4861},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F29.klocwork",{"title":4863,"path":4864,"stem":4865},"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":4867,"path":3265,"stem":4868},"LDRA","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F31.ldra",{"title":4870,"path":4871,"stem":4872},"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":4874,"path":3293,"stem":4875},"Parasoft","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F33.parasoft",{"title":4877,"path":4878,"stem":4879},"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":3344,"path":3343,"stem":4881},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F35.pc-lint-plus",{"title":4883,"path":4884,"stem":4885},"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":3373,"path":3372,"stem":4887},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F37.polyspace-bug-finder",{"title":4889,"path":4890,"stem":4891},"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":3420,"path":3419,"stem":4893},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F39.pvs-studio",{"title":4895,"path":4896,"stem":4897},"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":4899,"path":3040,"stem":4900},"Rose","4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F41.rose",{"title":4902,"path":4903,"stem":4904},"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":4906,"path":4907,"stem":4908},"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":3476,"path":3475,"stem":4910},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F44.rulechecker",{"title":4912,"path":4913,"stem":4914},"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":3499,"path":3498,"stem":4916},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F46.security-reviewer-static-reviewer",{"title":4918,"path":4919,"stem":4920},"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":4922,"path":4923,"stem":4924},"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":4926,"path":4927,"stem":4928},"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":3550,"path":3549,"stem":4930},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F50.splint",{"title":4932,"path":4933,"stem":4934},"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":3570,"path":3569,"stem":4936},"4.sei-cert-c-coding-standard\u002F04.back-matter\u002F6.ee-analyzers\u002F52.trustinsoft-analyzer",{"title":4938,"path":4939,"stem":4940},"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":4942,"path":4943,"stem":4944,"children":4945},"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",[4946,4947,4951,4955,4959,4963,4967,4971,4975,4979,4982,4986,4990,4994],{"title":4942,"path":4943,"stem":4944},{"title":4948,"path":4949,"stem":4950},"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":4952,"path":4953,"stem":4954},"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":4956,"path":4957,"stem":4958},"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":4960,"path":4961,"stem":4962},"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":4964,"path":4965,"stem":4966},"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":4968,"path":4969,"stem":4970},"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":4972,"path":4973,"stem":4974},"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":4976,"path":4977,"stem":4978},"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":4976,"path":4980,"stem":4981},"\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":4983,"path":4984,"stem":4985},"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":4987,"path":4988,"stem":4989},"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":4991,"path":4992,"stem":4993},"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":4995,"path":4996,"stem":4997},"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":4999,"path":5000,"stem":5001},"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":5003,"path":5004,"stem":5005,"children":5006},"Admin","\u002Fsei-cert-c-coding-standard\u002Fadmin","4.sei-cert-c-coding-standard\u002F05.admin\u002F1.index",[5007,5008,5012],{"title":5003,"path":5004,"stem":5005},{"title":5009,"path":5010,"stem":5011},"TODO List","\u002Fsei-cert-c-coding-standard\u002Fadmin\u002Ftodo-list","4.sei-cert-c-coding-standard\u002F05.admin\u002F2.todo-list",{"title":5013,"path":5014,"stem":5015},"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":5017,"path":5018,"stem":5019},"Coding Style Guidelines","\u002Fsei-cert-c-coding-standard\u002Fcoding-style-guidelines","4.sei-cert-c-coding-standard\u002F05.coding-style-guidelines",{"title":5021,"path":5022,"stem":5023},"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":5025,"path":5026,"stem":5027},"Wiki Contents","\u002Fsei-cert-c-coding-standard\u002Fwiki-contents","4.sei-cert-c-coding-standard\u002F06.wiki-contents",{"title":5029,"path":5030,"stem":5031,"children":5032},"Recommendations","\u002Fsei-cert-c-coding-standard\u002Frecommendations","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F01.index",[5033,5034,5075,5092,5137,5178,5275,5292,5325,5394,5431,5516,5581,5630,5655,5744,5765,5822],{"title":5029,"path":5030,"stem":5031},{"title":4170,"path":5035,"stem":5036,"children":5037},"\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",[5038,5039,5043,5047,5051,5055,5059,5063,5067,5071],{"title":4170,"path":5035,"stem":5036},{"title":5040,"path":5041,"stem":5042},"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":5044,"path":5045,"stem":5046},"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":5048,"path":5049,"stem":5050},"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":5052,"path":5053,"stem":5054},"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":5056,"path":5057,"stem":5058},"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":5060,"path":5061,"stem":5062},"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":5064,"path":5065,"stem":5066},"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":5068,"path":5069,"stem":5070},"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":5072,"path":5073,"stem":5074},"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":4174,"path":5076,"stem":5077,"children":5078},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Farrays-arr","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F03.arrays-arr\u002F1.index",[5079,5080,5084,5088],{"title":4174,"path":5076,"stem":5077},{"title":5081,"path":5082,"stem":5083},"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":5085,"path":5086,"stem":5087},"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":5089,"path":5090,"stem":5091},"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":4204,"path":5093,"stem":5094,"children":5095},"\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",[5096,5097,5101,5105,5109,5113,5117,5121,5125,5129,5133],{"title":4204,"path":5093,"stem":5094},{"title":5098,"path":5099,"stem":5100},"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":5102,"path":5103,"stem":5104},"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":5106,"path":5107,"stem":5108},"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":5110,"path":5111,"stem":5112},"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":5114,"path":5115,"stem":5116},"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":5118,"path":5119,"stem":5120},"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":5122,"path":5123,"stem":5124},"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":5126,"path":5127,"stem":5128},"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":5130,"path":5131,"stem":5132},"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":5134,"path":5135,"stem":5136},"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":4232,"path":5138,"stem":5139,"children":5140},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fconcurrency-con","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F05.concurrency-con\u002F01.index",[5141,5142,5146,5150,5154,5158,5162,5166,5170,5174],{"title":4232,"path":5138,"stem":5139},{"title":5143,"path":5144,"stem":5145},"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":5147,"path":5148,"stem":5149},"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":5151,"path":5152,"stem":5153},"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":5155,"path":5156,"stem":5157},"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":5159,"path":5160,"stem":5161},"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":5163,"path":5164,"stem":5165},"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":5167,"path":5168,"stem":5169},"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":5171,"path":5172,"stem":5173},"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":5175,"path":5176,"stem":5177},"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":4294,"path":5179,"stem":5180,"children":5181},"\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",[5182,5183,5187,5191,5195,5199,5203,5207,5211,5215,5219,5223,5227,5231,5235,5239,5243,5247,5251,5255,5259,5263,5267,5271],{"title":4294,"path":5179,"stem":5180},{"title":5184,"path":5185,"stem":5186},"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":5188,"path":5189,"stem":5190},"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":5192,"path":5193,"stem":5194},"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":5196,"path":5197,"stem":5198},"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":5200,"path":5201,"stem":5202},"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":5204,"path":5205,"stem":5206},"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":5208,"path":5209,"stem":5210},"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":5212,"path":5213,"stem":5214},"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":5216,"path":5217,"stem":5218},"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":5220,"path":5221,"stem":5222},"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":5224,"path":5225,"stem":5226},"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":5228,"path":5229,"stem":5230},"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":5232,"path":5233,"stem":5234},"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":5236,"path":5237,"stem":5238},"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":5240,"path":5241,"stem":5242},"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":5244,"path":5245,"stem":5246},"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":5248,"path":5249,"stem":5250},"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":5252,"path":5253,"stem":5254},"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":5256,"path":5257,"stem":5258},"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":5260,"path":5261,"stem":5262},"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":5264,"path":5265,"stem":5266},"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":5268,"path":5269,"stem":5270},"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":5272,"path":5273,"stem":5274},"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":4332,"path":5276,"stem":5277,"children":5278},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fenvironment-env","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F07.environment-env\u002F1.index",[5279,5280,5284,5288],{"title":4332,"path":5276,"stem":5277},{"title":5281,"path":5282,"stem":5283},"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":5285,"path":5286,"stem":5287},"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":5289,"path":5290,"stem":5291},"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":4358,"path":5293,"stem":5294,"children":5295},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ferror-handling-err","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F08.error-handling-err\u002F1.index",[5296,5297,5301,5305,5309,5313,5317,5321],{"title":4358,"path":5293,"stem":5294},{"title":5298,"path":5299,"stem":5300},"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":5302,"path":5303,"stem":5304},"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":5306,"path":5307,"stem":5308},"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":5310,"path":5311,"stem":5312},"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":5314,"path":5315,"stem":5316},"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":5318,"path":5319,"stem":5320},"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":5322,"path":5323,"stem":5324},"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":4380,"path":5326,"stem":5327,"children":5328},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fexpressions-exp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F09.expressions-exp\u002F01.index",[5329,5330,5334,5338,5342,5346,5350,5354,5358,5362,5366,5370,5374,5378,5382,5386,5390],{"title":4380,"path":5326,"stem":5327},{"title":5331,"path":5332,"stem":5333},"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":5335,"path":5336,"stem":5337},"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":5339,"path":5340,"stem":5341},"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":5343,"path":5344,"stem":5345},"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":5347,"path":5348,"stem":5349},"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":5351,"path":5352,"stem":5353},"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":5355,"path":5356,"stem":5357},"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":5359,"path":5360,"stem":5361},"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":5363,"path":5364,"stem":5365},"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":5367,"path":5368,"stem":5369},"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":5371,"path":5372,"stem":5373},"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":5375,"path":5376,"stem":5377},"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":5379,"path":5380,"stem":5381},"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":5383,"path":5384,"stem":5385},"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":5387,"path":5388,"stem":5389},"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":5391,"path":5392,"stem":5393},"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":4437,"path":5395,"stem":5396,"children":5397},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Ffloating-point-flp","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F10.floating-point-flp\u002F1.index",[5398,5399,5403,5407,5411,5415,5419,5423,5427],{"title":4437,"path":5395,"stem":5396},{"title":5400,"path":5401,"stem":5402},"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":5404,"path":5405,"stem":5406},"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":5408,"path":5409,"stem":5410},"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":5412,"path":5413,"stem":5414},"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":5416,"path":5417,"stem":5418},"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":5420,"path":5421,"stem":5422},"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":5424,"path":5425,"stem":5426},"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":5428,"path":5429,"stem":5430},"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":4463,"path":5432,"stem":5433,"children":5434},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Finput-output-fio","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F11.input-output-fio\u002F01.index",[5435,5436,5440,5444,5448,5452,5456,5460,5464,5468,5472,5476,5480,5484,5488,5492,5496,5500,5504,5508,5512],{"title":4463,"path":5432,"stem":5433},{"title":5437,"path":5438,"stem":5439},"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":5441,"path":5442,"stem":5443},"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":5445,"path":5446,"stem":5447},"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":5449,"path":5450,"stem":5451},"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":5453,"path":5454,"stem":5455},"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":5457,"path":5458,"stem":5459},"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":5461,"path":5462,"stem":5463},"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":5465,"path":5466,"stem":5467},"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":5469,"path":5470,"stem":5471},"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":5473,"path":5474,"stem":5475},"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":5477,"path":5478,"stem":5479},"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":5481,"path":5482,"stem":5483},"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":5485,"path":5486,"stem":5487},"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":5489,"path":5490,"stem":5491},"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":5493,"path":5494,"stem":5495},"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":5497,"path":5498,"stem":5499},"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":5501,"path":5502,"stem":5503},"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":5505,"path":5506,"stem":5507},"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":5509,"path":5510,"stem":5511},"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":5513,"path":5514,"stem":5515},"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":4521,"path":5517,"stem":5518,"children":5519},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fintegers-int","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F12.integers-int\u002F01.index",[5520,5521,5525,5529,5533,5537,5541,5545,5549,5553,5557,5561,5565,5569,5573,5577],{"title":4521,"path":5517,"stem":5518},{"title":5522,"path":5523,"stem":5524},"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":5526,"path":5527,"stem":5528},"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":5530,"path":5531,"stem":5532},"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":5534,"path":5535,"stem":5536},"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":5538,"path":5539,"stem":5540},"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":5542,"path":5543,"stem":5544},"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":5546,"path":5547,"stem":5548},"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":5550,"path":5551,"stem":5552},"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":5554,"path":5555,"stem":5556},"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":5558,"path":5559,"stem":5560},"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":5562,"path":5563,"stem":5564},"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":5566,"path":5567,"stem":5568},"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":5570,"path":5571,"stem":5572},"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":5574,"path":5575,"stem":5576},"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":5578,"path":5579,"stem":5580},"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":4555,"path":5582,"stem":5583,"children":5584},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmemory-management-mem","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F13.memory-management-mem\u002F01.index",[5585,5586,5590,5594,5598,5602,5606,5610,5614,5618,5622,5626],{"title":4555,"path":5582,"stem":5583},{"title":5587,"path":5588,"stem":5589},"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":5591,"path":5592,"stem":5593},"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":5595,"path":5596,"stem":5597},"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":5599,"path":5600,"stem":5601},"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":5603,"path":5604,"stem":5605},"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":5607,"path":5608,"stem":5609},"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":5611,"path":5612,"stem":5613},"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":5615,"path":5616,"stem":5617},"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":5619,"path":5620,"stem":5621},"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":5623,"path":5624,"stem":5625},"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":5627,"path":5628,"stem":5629},"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":4585,"path":5631,"stem":5632,"children":5633},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmicrosoft-windows-win","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F14.microsoft-windows-win\u002F1.index",[5634,5635,5639,5643,5647,5651],{"title":4585,"path":5631,"stem":5632},{"title":5636,"path":5637,"stem":5638},"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":5640,"path":5641,"stem":5642},"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":5644,"path":5645,"stem":5646},"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":5648,"path":5649,"stem":5650},"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":5652,"path":5653,"stem":5654},"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":4595,"path":5656,"stem":5657,"children":5658},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fmiscellaneous-msc","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F01.index",[5659,5660,5662,5664,5668,5672,5676,5680,5684,5688,5692,5696,5700,5704,5708,5712,5716,5720,5724,5728,5732,5736,5740],{"title":4595,"path":5656,"stem":5657},{"title":173,"path":172,"stem":5661},"4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F02.msc00-c",{"title":464,"path":463,"stem":5663},"4.sei-cert-c-coding-standard\u002F08.recommendations\u002F15.miscellaneous-msc\u002F03.msc01-c",{"title":5665,"path":5666,"stem":5667},"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":5669,"path":5670,"stem":5671},"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":5673,"path":5674,"stem":5675},"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":5677,"path":5678,"stem":5679},"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":5681,"path":5682,"stem":5683},"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":5685,"path":5686,"stem":5687},"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":5689,"path":5690,"stem":5691},"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":5693,"path":5694,"stem":5695},"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":5697,"path":5698,"stem":5699},"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":5701,"path":5702,"stem":5703},"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":5705,"path":5706,"stem":5707},"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":5709,"path":5710,"stem":5711},"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":5713,"path":5714,"stem":5715},"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":5717,"path":5718,"stem":5719},"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":5721,"path":5722,"stem":5723},"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":5725,"path":5726,"stem":5727},"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":5729,"path":5730,"stem":5731},"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":5733,"path":5734,"stem":5735},"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":5737,"path":5738,"stem":5739},"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":5741,"path":5742,"stem":5743},"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":4633,"path":5745,"stem":5746,"children":5747},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fposix-pos","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F16.posix-pos\u002F1.index",[5748,5749,5753,5757,5761],{"title":4633,"path":5745,"stem":5746},{"title":5750,"path":5751,"stem":5752},"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":5754,"path":5755,"stem":5756},"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":5758,"path":5759,"stem":5760},"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":5762,"path":5763,"stem":5764},"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":4703,"path":5766,"stem":5767,"children":5768},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fpreprocessor-pre","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F17.preprocessor-pre\u002F01.index",[5769,5770,5774,5778,5782,5786,5790,5794,5798,5802,5806,5810,5814,5818],{"title":4703,"path":5766,"stem":5767},{"title":5771,"path":5772,"stem":5773},"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":5775,"path":5776,"stem":5777},"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":5779,"path":5780,"stem":5781},"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":5783,"path":5784,"stem":5785},"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":5787,"path":5788,"stem":5789},"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":5791,"path":5792,"stem":5793},"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":5795,"path":5796,"stem":5797},"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":5799,"path":5800,"stem":5801},"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":5803,"path":5804,"stem":5805},"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":5807,"path":5808,"stem":5809},"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":5811,"path":5812,"stem":5813},"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":5815,"path":5816,"stem":5817},"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":5819,"path":5820,"stem":5821},"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":4721,"path":5823,"stem":5824,"children":5825},"\u002Fsei-cert-c-coding-standard\u002Frecommendations\u002Fsignals-sig","4.sei-cert-c-coding-standard\u002F08.recommendations\u002F18.signals-sig\u002F1.index",[5826,5827,5831,5835],{"title":4721,"path":5823,"stem":5824},{"title":5828,"path":5829,"stem":5830},"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":5832,"path":5833,"stem":5834},"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":5836,"path":5837,"stem":5838},"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":5840,"path":5841,"stem":5842},"CERT manifest files","\u002Fsei-cert-c-coding-standard\u002Fcert-manifest-files","4.sei-cert-c-coding-standard\u002F09.cert-manifest-files",1775657828538]