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