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