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