[{"data":1,"prerenderedAt":3863},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio51-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio51-j":2281,"sidebar-sei-cert-oracle-coding-standard-for-java":2288},[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":2262,"extension":2263,"meta":2264,"navigation":7,"path":2277,"seo":2278,"stem":2279,"__hash__":2280},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F3.fio51-j.md","FIO51-J. Identify files using multiple file attributes",{"type":32,"value":33,"toc":2249},"minimark",[34,38,51,87,90,99,104,111,478,491,499,505,770,790,803,809,813,816,1206,1209,1217,1232,1567,1573,1580,1587,1597,1732,1736,1739,1915,1918,1922,1933,2144,2147,2150,2154,2220,2223,2245],[35,36,30],"h1",{"id":37},"fio51-j-identify-files-using-multiple-file-attributes",[39,40,41,42,46,47,50],"p",{},"Many file-related security vulnerabilities result from a program accessing an unintended file object. This often happens because file names are only loosely bound to underlying file objects. File names provide no information regarding the nature of the file object itself. Furthermore, the binding of a file name to a file object is reevaluated each time the file name is used in an operation. This reevaluation can introduce a time-of-check, time-of-use (TOCTOU) race condition into an application. Objects of type ",[43,44,45],"code",{},"java.io.File"," and of type ",[43,48,49],{},"java.nio.file.Path"," are bound to underlying file objects by the operating system only when the file is accessed.",[39,52,53,54,56,57,59,60,63,64,67,68,71,72,75,76,63,79,82,83,86],{},"The ",[43,55,45],{}," constructors and the ",[43,58,45],{}," methods ",[43,61,62],{},"renameTo()"," and ",[43,65,66],{},"delete()"," rely solely on file names for file identification. The same holds for the ",[43,69,70],{},"java.nio.file.Path.get()"," methods for creating ",[43,73,74],{},"Path"," objects and the ",[43,77,78],{},"move",[43,80,81],{},"delete"," methods of ",[43,84,85],{},"java.nio.file.Files"," . Use all of these methods with caution.",[39,88,89],{},"Fortunately, files can often be identified by other attributes in addition to the file name—for example, by comparing file creation time or modification times. Information about a file that has been created and closed can be stored and then used to validate the identity of the file when it is reopened. Comparing multiple attributes of the file increases the likelihood that the reopened file is the same file that was previously opened.",[39,91,92,93,98],{},"File identification is less crucial for applications that maintain their files in secure directories where they can be accessed only by the owner of the file and (possibly) by a system administrator (see ",[94,95,97],"a",{"href":96},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio00-j","FIO00-J. Do not operate on files in shared directories"," ).",[100,101,103],"h2",{"id":102},"noncompliant-code-example","Noncompliant Code Example",[39,105,106,107,110],{},"In this noncompliant code example, the file identified by the string ",[43,108,109],{},"filename"," is opened, processed, closed, and then reopened for reading:",[112,113,115],"code-block",{"quality":114},"bad",[116,117,122],"pre",{"className":118,"code":119,"language":120,"meta":121,"style":121},"language-java shiki shiki-themes github-light github-dark monokai","public void processFile(String filename){\n  \u002F\u002F Identify a file by its path\n  Path file1 = Paths.get(filename);\n \n  \u002F\u002F Open the file for writing\n  try (BufferedWriter bw = new BufferedWriter(new \n       OutputStreamWriter(Files.newOutputStream(file1)))) {\n    \u002F\u002F Write to file...\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n  \n  \u002F\u002F Close the file\n  \n  \u002F*\n   * A race condition here allows for an attacker to switch\n   * out the file for another\n   *\u002F\n\n  \u002F\u002F Reopen the file for reading\n  Path file2 = Paths.get(filename);\n    \n  try (BufferedReader br = new BufferedReader(new \n       InputStreamReader(Files.newInputStream(file2)))) {\n    String line;\n    while ((line = br.readLine()) != null) {\n      System.out.println(line);\n    }\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n}\n","java","",[43,123,124,152,159,180,186,192,222,237,243,264,270,276,282,288,293,299,305,311,317,323,329,345,351,377,391,400,429,441,447,462,467,472],{"__ignoreMap":121},[125,126,129,133,137,141,145,149],"span",{"class":127,"line":128},"line",1,[125,130,132],{"class":131},"sC2Qs","public",[125,134,136],{"class":135},"sq6CD"," void",[125,138,140],{"class":139},"srTi1"," processFile",[125,142,144],{"class":143},"sMOD_","(",[125,146,148],{"class":147},"sk8M1","String",[125,150,151],{"class":143}," filename){\n",[125,153,155],{"class":127,"line":154},2,[125,156,158],{"class":157},"s8-w5","  \u002F\u002F Identify a file by its path\n",[125,160,162,165,168,171,174,177],{"class":127,"line":161},3,[125,163,164],{"class":147},"  Path",[125,166,167],{"class":143}," file1 ",[125,169,170],{"class":131},"=",[125,172,173],{"class":143}," Paths.",[125,175,176],{"class":139},"get",[125,178,179],{"class":143},"(filename);\n",[125,181,183],{"class":127,"line":182},4,[125,184,185],{"class":143}," \n",[125,187,189],{"class":127,"line":188},5,[125,190,191],{"class":157},"  \u002F\u002F Open the file for writing\n",[125,193,195,198,201,204,207,209,212,215,217,220],{"class":127,"line":194},6,[125,196,197],{"class":131},"  try",[125,199,200],{"class":143}," (",[125,202,203],{"class":147},"BufferedWriter",[125,205,206],{"class":143}," bw ",[125,208,170],{"class":131},[125,210,211],{"class":131}," new",[125,213,214],{"class":139}," BufferedWriter",[125,216,144],{"class":143},[125,218,219],{"class":131},"new",[125,221,185],{"class":143},[125,223,225,228,231,234],{"class":127,"line":224},7,[125,226,227],{"class":139},"       OutputStreamWriter",[125,229,230],{"class":143},"(Files.",[125,232,233],{"class":139},"newOutputStream",[125,235,236],{"class":143},"(file1)))) {\n",[125,238,240],{"class":127,"line":239},8,[125,241,242],{"class":157},"    \u002F\u002F Write to file...\n",[125,244,246,249,252,254,257,261],{"class":127,"line":245},9,[125,247,248],{"class":143},"  } ",[125,250,251],{"class":131},"catch",[125,253,200],{"class":143},[125,255,256],{"class":147},"IOException",[125,258,260],{"class":259},"sTHNf"," e",[125,262,263],{"class":143},") {\n",[125,265,267],{"class":127,"line":266},10,[125,268,269],{"class":157},"    \u002F\u002F Handle error\n",[125,271,273],{"class":127,"line":272},11,[125,274,275],{"class":143},"  } \n",[125,277,279],{"class":127,"line":278},12,[125,280,281],{"class":143},"  \n",[125,283,285],{"class":127,"line":284},13,[125,286,287],{"class":157},"  \u002F\u002F Close the file\n",[125,289,291],{"class":127,"line":290},14,[125,292,281],{"class":143},[125,294,296],{"class":127,"line":295},15,[125,297,298],{"class":157},"  \u002F*\n",[125,300,302],{"class":127,"line":301},16,[125,303,304],{"class":157},"   * A race condition here allows for an attacker to switch\n",[125,306,308],{"class":127,"line":307},17,[125,309,310],{"class":157},"   * out the file for another\n",[125,312,314],{"class":127,"line":313},18,[125,315,316],{"class":157},"   *\u002F\n",[125,318,320],{"class":127,"line":319},19,[125,321,322],{"emptyLinePlaceholder":7},"\n",[125,324,326],{"class":127,"line":325},20,[125,327,328],{"class":157},"  \u002F\u002F Reopen the file for reading\n",[125,330,332,334,337,339,341,343],{"class":127,"line":331},21,[125,333,164],{"class":147},[125,335,336],{"class":143}," file2 ",[125,338,170],{"class":131},[125,340,173],{"class":143},[125,342,176],{"class":139},[125,344,179],{"class":143},[125,346,348],{"class":127,"line":347},22,[125,349,350],{"class":143},"    \n",[125,352,354,356,358,361,364,366,368,371,373,375],{"class":127,"line":353},23,[125,355,197],{"class":131},[125,357,200],{"class":143},[125,359,360],{"class":147},"BufferedReader",[125,362,363],{"class":143}," br ",[125,365,170],{"class":131},[125,367,211],{"class":131},[125,369,370],{"class":139}," BufferedReader",[125,372,144],{"class":143},[125,374,219],{"class":131},[125,376,185],{"class":143},[125,378,380,383,385,388],{"class":127,"line":379},24,[125,381,382],{"class":139},"       InputStreamReader",[125,384,230],{"class":143},[125,386,387],{"class":139},"newInputStream",[125,389,390],{"class":143},"(file2)))) {\n",[125,392,394,397],{"class":127,"line":393},25,[125,395,396],{"class":147},"    String",[125,398,399],{"class":143}," line;\n",[125,401,403,406,409,411,414,417,420,423,427],{"class":127,"line":402},26,[125,404,405],{"class":131},"    while",[125,407,408],{"class":143}," ((line ",[125,410,170],{"class":131},[125,412,413],{"class":143}," br.",[125,415,416],{"class":139},"readLine",[125,418,419],{"class":143},"()) ",[125,421,422],{"class":131},"!=",[125,424,426],{"class":425},"s7F3e"," null",[125,428,263],{"class":143},[125,430,432,435,438],{"class":127,"line":431},27,[125,433,434],{"class":143},"      System.out.",[125,436,437],{"class":139},"println",[125,439,440],{"class":143},"(line);\n",[125,442,444],{"class":127,"line":443},28,[125,445,446],{"class":143},"    }\n",[125,448,450,452,454,456,458,460],{"class":127,"line":449},29,[125,451,248],{"class":143},[125,453,251],{"class":131},[125,455,200],{"class":143},[125,457,256],{"class":147},[125,459,260],{"class":259},[125,461,263],{"class":143},[125,463,465],{"class":127,"line":464},30,[125,466,269],{"class":157},[125,468,470],{"class":127,"line":469},31,[125,471,275],{"class":143},[125,473,475],{"class":127,"line":474},32,[125,476,477],{"class":143},"}\n",[39,479,480,481,483,484,487,488,490],{},"Because the binding between the file name and the underlying file object is reevaluated when the ",[43,482,360],{}," is created, this code cannot guarantee that the file opened for reading is the same file that was previously opened for writing. An attacker might have replace the original file (with a symbolic link, for example) between the first call to ",[43,485,486],{},"close()"," and the subsequent creation of the ",[43,489,360],{}," .",[100,492,494,495,498],{"id":493},"noncompliant-code-example-filesissamefile","Noncompliant Code Example ( ",[43,496,497],{},"Files.isSameFile()"," )",[39,500,501,502,504],{},"In this noncompliant code example, the programmer attempts to ensure that the file opened for reading is the same as the file previously opened for writing by calling the method ",[43,503,497],{}," :",[112,506,507],{"quality":114},[116,508,510],{"className":118,"code":509,"language":120,"meta":121,"style":121},"public void processFile(String filename){\n  \u002F\u002F Identify a file by its path\n  Path file1 = Paths.get(filename);\n  \n  \u002F\u002F Open the file for writing\n  try(BufferedWriter bw = new BufferedWriter(new \n      OutputStreamWriter(Files.newOutputStream(file1)))) {\n    \u002F\u002F Write to file\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n  \n  \u002F\u002F ...\n  \u002F\u002F Reopen the file for reading\n  Path file2 = Paths.get(filename);\n  if (!Files.isSameFile(file1, file2)) {\n    \u002F\u002F File was tampered with, handle error\n  }\n  \n  try(BufferedReader br = new BufferedReader(new \n      InputStreamReader(Files.newInputStream(file2)))) { \n    String line;\n    while ((line = br.readLine()) != null) {\n      System.out.println(line);\n    }\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n}\n",[43,511,512,526,530,544,548,552,574,585,590,604,608,612,616,621,625,639,658,663,668,672,694,706,712,732,740,744,758,762,766],{"__ignoreMap":121},[125,513,514,516,518,520,522,524],{"class":127,"line":128},[125,515,132],{"class":131},[125,517,136],{"class":135},[125,519,140],{"class":139},[125,521,144],{"class":143},[125,523,148],{"class":147},[125,525,151],{"class":143},[125,527,528],{"class":127,"line":154},[125,529,158],{"class":157},[125,531,532,534,536,538,540,542],{"class":127,"line":161},[125,533,164],{"class":147},[125,535,167],{"class":143},[125,537,170],{"class":131},[125,539,173],{"class":143},[125,541,176],{"class":139},[125,543,179],{"class":143},[125,545,546],{"class":127,"line":182},[125,547,281],{"class":143},[125,549,550],{"class":127,"line":188},[125,551,191],{"class":157},[125,553,554,556,558,560,562,564,566,568,570,572],{"class":127,"line":194},[125,555,197],{"class":131},[125,557,144],{"class":143},[125,559,203],{"class":147},[125,561,206],{"class":143},[125,563,170],{"class":131},[125,565,211],{"class":131},[125,567,214],{"class":139},[125,569,144],{"class":143},[125,571,219],{"class":131},[125,573,185],{"class":143},[125,575,576,579,581,583],{"class":127,"line":224},[125,577,578],{"class":139},"      OutputStreamWriter",[125,580,230],{"class":143},[125,582,233],{"class":139},[125,584,236],{"class":143},[125,586,587],{"class":127,"line":239},[125,588,589],{"class":157},"    \u002F\u002F Write to file\n",[125,591,592,594,596,598,600,602],{"class":127,"line":245},[125,593,248],{"class":143},[125,595,251],{"class":131},[125,597,200],{"class":143},[125,599,256],{"class":147},[125,601,260],{"class":259},[125,603,263],{"class":143},[125,605,606],{"class":127,"line":266},[125,607,269],{"class":157},[125,609,610],{"class":127,"line":272},[125,611,275],{"class":143},[125,613,614],{"class":127,"line":278},[125,615,281],{"class":143},[125,617,618],{"class":127,"line":284},[125,619,620],{"class":157},"  \u002F\u002F ...\n",[125,622,623],{"class":127,"line":290},[125,624,328],{"class":157},[125,626,627,629,631,633,635,637],{"class":127,"line":295},[125,628,164],{"class":147},[125,630,336],{"class":143},[125,632,170],{"class":131},[125,634,173],{"class":143},[125,636,176],{"class":139},[125,638,179],{"class":143},[125,640,641,644,646,649,652,655],{"class":127,"line":301},[125,642,643],{"class":131},"  if",[125,645,200],{"class":143},[125,647,648],{"class":131},"!",[125,650,651],{"class":143},"Files.",[125,653,654],{"class":139},"isSameFile",[125,656,657],{"class":143},"(file1, file2)) {\n",[125,659,660],{"class":127,"line":307},[125,661,662],{"class":157},"    \u002F\u002F File was tampered with, handle error\n",[125,664,665],{"class":127,"line":313},[125,666,667],{"class":143},"  }\n",[125,669,670],{"class":127,"line":319},[125,671,281],{"class":143},[125,673,674,676,678,680,682,684,686,688,690,692],{"class":127,"line":325},[125,675,197],{"class":131},[125,677,144],{"class":143},[125,679,360],{"class":147},[125,681,363],{"class":143},[125,683,170],{"class":131},[125,685,211],{"class":131},[125,687,370],{"class":139},[125,689,144],{"class":143},[125,691,219],{"class":131},[125,693,185],{"class":143},[125,695,696,699,701,703],{"class":127,"line":331},[125,697,698],{"class":139},"      InputStreamReader",[125,700,230],{"class":143},[125,702,387],{"class":139},[125,704,705],{"class":143},"(file2)))) { \n",[125,707,708,710],{"class":127,"line":347},[125,709,396],{"class":147},[125,711,399],{"class":143},[125,713,714,716,718,720,722,724,726,728,730],{"class":127,"line":353},[125,715,405],{"class":131},[125,717,408],{"class":143},[125,719,170],{"class":131},[125,721,413],{"class":143},[125,723,416],{"class":139},[125,725,419],{"class":143},[125,727,422],{"class":131},[125,729,426],{"class":425},[125,731,263],{"class":143},[125,733,734,736,738],{"class":127,"line":379},[125,735,434],{"class":143},[125,737,437],{"class":139},[125,739,440],{"class":143},[125,741,742],{"class":127,"line":393},[125,743,446],{"class":143},[125,745,746,748,750,752,754,756],{"class":127,"line":402},[125,747,248],{"class":143},[125,749,251],{"class":131},[125,751,200],{"class":143},[125,753,256],{"class":147},[125,755,260],{"class":259},[125,757,263],{"class":143},[125,759,760],{"class":127,"line":431},[125,761,269],{"class":157},[125,763,764],{"class":127,"line":443},[125,765,275],{"class":143},[125,767,768],{"class":127,"line":449},[125,769,477],{"class":143},[39,771,772,773,776,777,784,785,789],{},"Unfortunately, the Java API lacks any guarantee that the method ",[43,774,775],{},"isSameFile()"," actually checks whether the files are the same file. The Java 7 API for ",[94,778,782],{"href":779,"rel":780},"http:\u002F\u002Fdownload.oracle.com\u002Fjavase\u002F7\u002Fdocs\u002Fapi\u002Fjava\u002Fnio\u002Ffile\u002FFiles.html#isSameFile%28java.nio.file.Path,%20java.nio.file.Path%29",[781],"nofollow",[43,783,775],{}," [ ",[94,786,788],{"href":787},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references#Rec.AA.References-API11","API 2011"," ] says:",[791,792,793],"blockquote",{},[39,794,795,796,798,799,802],{},"If both ",[43,797,74],{}," objects are equal then this method returns ",[43,800,801],{},"true"," without checking if the file exists.",[39,804,805,806,808],{},"That is, ",[43,807,775],{}," may simply check that the paths to the two files are the same and cannot detect if the file at that path had been replaced by a different file between the two open operations.",[100,810,812],{"id":811},"compliant-solution-multiple-attributes","Compliant Solution (Multiple Attributes)",[39,814,815],{},"This compliant solution checks the creation and last-modified times of the files to increase the likelihood that the file opened for reading is the same file that was written:",[112,817,819],{"quality":818},"good",[116,820,822],{"className":118,"code":821,"language":120,"meta":121,"style":121},"public void processFile(String filename) throws IOException{\n  \u002F\u002F Identify a file by its path\n  Path file1 = Paths.get(filename);\n  BasicFileAttributes attr1 = \n    Files.readAttributes(file1, BasicFileAttributes.class);\n  FileTime creation1 = attr1.creationTime();\n  FileTime modified1 = attr1.lastModifiedTime();\n\n  \u002F\u002F Open the file for writing\n  try (BufferedWriter bw = new BufferedWriter(new \n       OutputStreamWriter(Files.newOutputStream(file1)))) {\n    \u002F\u002F Write to file...\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n  \n  \u002F\u002F Reopen the file for reading\n  Path file2 = Paths.get(filename);\n  BasicFileAttributes attr2 = \n    Files.readAttributes(file2, BasicFileAttributes.class);\n  FileTime creation2 = attr2.creationTime();\n  FileTime modified2 = attr2.lastModifiedTime();\n  if ( (!creation1.equals(creation2)) || \n       (!modified1.equals(modified2)) ) {\n    \u002F\u002F File was tampered with, handle error\n  }\n  \n  try(BufferedReader br = new BufferedReader(new \n      InputStreamReader(Files.newInputStream(file2)))){\n    String line;\n    while ((line = br.readLine()) != null) {\n      System.out.println(line);\n    }\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n}\n",[43,823,824,839,843,857,869,880,899,915,919,923,945,955,959,973,977,981,985,989,1003,1014,1023,1039,1054,1077,1092,1096,1100,1104,1126,1137,1143,1163,1171,1176,1191,1196,1201],{"__ignoreMap":121},[125,825,826,828,830,832,834,836],{"class":127,"line":128},[125,827,132],{"class":131},[125,829,136],{"class":135},[125,831,140],{"class":139},[125,833,144],{"class":143},[125,835,148],{"class":147},[125,837,838],{"class":143}," filename) throws IOException{\n",[125,840,841],{"class":127,"line":154},[125,842,158],{"class":157},[125,844,845,847,849,851,853,855],{"class":127,"line":161},[125,846,164],{"class":147},[125,848,167],{"class":143},[125,850,170],{"class":131},[125,852,173],{"class":143},[125,854,176],{"class":139},[125,856,179],{"class":143},[125,858,859,862,865,867],{"class":127,"line":182},[125,860,861],{"class":147},"  BasicFileAttributes",[125,863,864],{"class":143}," attr1 ",[125,866,170],{"class":131},[125,868,185],{"class":143},[125,870,871,874,877],{"class":127,"line":188},[125,872,873],{"class":143},"    Files.",[125,875,876],{"class":139},"readAttributes",[125,878,879],{"class":143},"(file1, BasicFileAttributes.class);\n",[125,881,882,885,888,890,893,896],{"class":127,"line":194},[125,883,884],{"class":147},"  FileTime",[125,886,887],{"class":143}," creation1 ",[125,889,170],{"class":131},[125,891,892],{"class":143}," attr1.",[125,894,895],{"class":139},"creationTime",[125,897,898],{"class":143},"();\n",[125,900,901,903,906,908,910,913],{"class":127,"line":224},[125,902,884],{"class":147},[125,904,905],{"class":143}," modified1 ",[125,907,170],{"class":131},[125,909,892],{"class":143},[125,911,912],{"class":139},"lastModifiedTime",[125,914,898],{"class":143},[125,916,917],{"class":127,"line":239},[125,918,322],{"emptyLinePlaceholder":7},[125,920,921],{"class":127,"line":245},[125,922,191],{"class":157},[125,924,925,927,929,931,933,935,937,939,941,943],{"class":127,"line":266},[125,926,197],{"class":131},[125,928,200],{"class":143},[125,930,203],{"class":147},[125,932,206],{"class":143},[125,934,170],{"class":131},[125,936,211],{"class":131},[125,938,214],{"class":139},[125,940,144],{"class":143},[125,942,219],{"class":131},[125,944,185],{"class":143},[125,946,947,949,951,953],{"class":127,"line":272},[125,948,227],{"class":139},[125,950,230],{"class":143},[125,952,233],{"class":139},[125,954,236],{"class":143},[125,956,957],{"class":127,"line":278},[125,958,242],{"class":157},[125,960,961,963,965,967,969,971],{"class":127,"line":284},[125,962,248],{"class":143},[125,964,251],{"class":131},[125,966,200],{"class":143},[125,968,256],{"class":147},[125,970,260],{"class":259},[125,972,263],{"class":143},[125,974,975],{"class":127,"line":290},[125,976,269],{"class":157},[125,978,979],{"class":127,"line":295},[125,980,275],{"class":143},[125,982,983],{"class":127,"line":301},[125,984,281],{"class":143},[125,986,987],{"class":127,"line":307},[125,988,328],{"class":157},[125,990,991,993,995,997,999,1001],{"class":127,"line":313},[125,992,164],{"class":147},[125,994,336],{"class":143},[125,996,170],{"class":131},[125,998,173],{"class":143},[125,1000,176],{"class":139},[125,1002,179],{"class":143},[125,1004,1005,1007,1010,1012],{"class":127,"line":319},[125,1006,861],{"class":147},[125,1008,1009],{"class":143}," attr2 ",[125,1011,170],{"class":131},[125,1013,185],{"class":143},[125,1015,1016,1018,1020],{"class":127,"line":325},[125,1017,873],{"class":143},[125,1019,876],{"class":139},[125,1021,1022],{"class":143},"(file2, BasicFileAttributes.class);\n",[125,1024,1025,1027,1030,1032,1035,1037],{"class":127,"line":331},[125,1026,884],{"class":147},[125,1028,1029],{"class":143}," creation2 ",[125,1031,170],{"class":131},[125,1033,1034],{"class":143}," attr2.",[125,1036,895],{"class":139},[125,1038,898],{"class":143},[125,1040,1041,1043,1046,1048,1050,1052],{"class":127,"line":347},[125,1042,884],{"class":147},[125,1044,1045],{"class":143}," modified2 ",[125,1047,170],{"class":131},[125,1049,1034],{"class":143},[125,1051,912],{"class":139},[125,1053,898],{"class":143},[125,1055,1056,1058,1061,1063,1066,1069,1072,1075],{"class":127,"line":353},[125,1057,643],{"class":131},[125,1059,1060],{"class":143}," ( (",[125,1062,648],{"class":131},[125,1064,1065],{"class":143},"creation1.",[125,1067,1068],{"class":139},"equals",[125,1070,1071],{"class":143},"(creation2)) ",[125,1073,1074],{"class":131},"||",[125,1076,185],{"class":143},[125,1078,1079,1082,1084,1087,1089],{"class":127,"line":379},[125,1080,1081],{"class":143},"       (",[125,1083,648],{"class":131},[125,1085,1086],{"class":143},"modified1.",[125,1088,1068],{"class":139},[125,1090,1091],{"class":143},"(modified2)) ) {\n",[125,1093,1094],{"class":127,"line":393},[125,1095,662],{"class":157},[125,1097,1098],{"class":127,"line":402},[125,1099,667],{"class":143},[125,1101,1102],{"class":127,"line":431},[125,1103,281],{"class":143},[125,1105,1106,1108,1110,1112,1114,1116,1118,1120,1122,1124],{"class":127,"line":443},[125,1107,197],{"class":131},[125,1109,144],{"class":143},[125,1111,360],{"class":147},[125,1113,363],{"class":143},[125,1115,170],{"class":131},[125,1117,211],{"class":131},[125,1119,370],{"class":139},[125,1121,144],{"class":143},[125,1123,219],{"class":131},[125,1125,185],{"class":143},[125,1127,1128,1130,1132,1134],{"class":127,"line":449},[125,1129,698],{"class":139},[125,1131,230],{"class":143},[125,1133,387],{"class":139},[125,1135,1136],{"class":143},"(file2)))){\n",[125,1138,1139,1141],{"class":127,"line":464},[125,1140,396],{"class":147},[125,1142,399],{"class":143},[125,1144,1145,1147,1149,1151,1153,1155,1157,1159,1161],{"class":127,"line":469},[125,1146,405],{"class":131},[125,1148,408],{"class":143},[125,1150,170],{"class":131},[125,1152,413],{"class":143},[125,1154,416],{"class":139},[125,1156,419],{"class":143},[125,1158,422],{"class":131},[125,1160,426],{"class":425},[125,1162,263],{"class":143},[125,1164,1165,1167,1169],{"class":127,"line":474},[125,1166,434],{"class":143},[125,1168,437],{"class":139},[125,1170,440],{"class":143},[125,1172,1174],{"class":127,"line":1173},33,[125,1175,446],{"class":143},[125,1177,1179,1181,1183,1185,1187,1189],{"class":127,"line":1178},34,[125,1180,248],{"class":143},[125,1182,251],{"class":131},[125,1184,200],{"class":143},[125,1186,256],{"class":147},[125,1188,260],{"class":259},[125,1190,263],{"class":143},[125,1192,1194],{"class":127,"line":1193},35,[125,1195,269],{"class":157},[125,1197,1199],{"class":127,"line":1198},36,[125,1200,275],{"class":143},[125,1202,1204],{"class":127,"line":1203},37,[125,1205,477],{"class":143},[39,1207,1208],{},"Although this solution is reasonably secure, a determined attacker could create a symbolic link with the same creation and last-modified times as the original file. Also, a TOCTOU race condition occurs between the time the file's attributes are first read and the time the file is first opened. Likewise, another TOCTOU condition occurs the second time the attributes are read and the file is reopened.",[100,1210,1212,1213,1216],{"id":1211},"compliant-solution-posix-filekey-attribute","Compliant Solution (POSIX ",[43,1214,1215],{},"fileKey"," Attribute)",[39,1218,1219,1220,1222,1223,1225,1226,1228,1229,1231],{},"In environments that support the ",[43,1221,1215],{}," attribute, a more reliable approach is to check that the ",[43,1224,1215],{}," attributes of the two files are the same. The ",[43,1227,1215],{}," attribute is an object that \"uniquely identifies the file\" [ ",[94,1230,788],{"href":787}," ] , as shown in this compliant solution:",[112,1233,1234],{"quality":818},[116,1235,1237],{"className":118,"code":1236,"language":120,"meta":121,"style":121},"public void processFile(String filename) throws IOException{\n  \u002F\u002F Identify a file by its path\n  Path file1 = Paths.get(filename);\n  BasicFileAttributes attr1 = \n    Files.readAttributes(file1, BasicFileAttributes.class);\n  Object key1 = attr1.fileKey();\n  \u002F\u002F Open the file for writing\n  try(BufferedWriter bw = new BufferedWriter(new \n      OutputStreamWriter(Files.newOutputStream(file1)))) {\n    \u002F\u002F Write to file\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n  \n  \u002F\u002F Reopen the file for reading\n  Path file2 = Paths.get(filename);\n  BasicFileAttributes attr2 = \n    Files.readAttributes(file2, BasicFileAttributes.class);\n  Object key2 = attr2.fileKey();\n\n  if ( !key1.equals(key2) ) {\n    System.out.println(\"File tampered with\");\n    \u002F\u002F File was tampered with, handle error\n  }\n\n  try(BufferedReader br = new BufferedReader(new \n      InputStreamReader(Files.newInputStream(file2)))) {\n    String line;\n    while ((line = br.readLine()) != null) {\n      System.out.println(line);\n    }\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n} \n",[43,1238,1239,1253,1257,1271,1281,1289,1305,1309,1331,1341,1345,1359,1363,1367,1371,1375,1389,1399,1407,1422,1426,1443,1459,1463,1467,1471,1493,1503,1509,1529,1537,1541,1555,1559,1563],{"__ignoreMap":121},[125,1240,1241,1243,1245,1247,1249,1251],{"class":127,"line":128},[125,1242,132],{"class":131},[125,1244,136],{"class":135},[125,1246,140],{"class":139},[125,1248,144],{"class":143},[125,1250,148],{"class":147},[125,1252,838],{"class":143},[125,1254,1255],{"class":127,"line":154},[125,1256,158],{"class":157},[125,1258,1259,1261,1263,1265,1267,1269],{"class":127,"line":161},[125,1260,164],{"class":147},[125,1262,167],{"class":143},[125,1264,170],{"class":131},[125,1266,173],{"class":143},[125,1268,176],{"class":139},[125,1270,179],{"class":143},[125,1272,1273,1275,1277,1279],{"class":127,"line":182},[125,1274,861],{"class":147},[125,1276,864],{"class":143},[125,1278,170],{"class":131},[125,1280,185],{"class":143},[125,1282,1283,1285,1287],{"class":127,"line":188},[125,1284,873],{"class":143},[125,1286,876],{"class":139},[125,1288,879],{"class":143},[125,1290,1291,1294,1297,1299,1301,1303],{"class":127,"line":194},[125,1292,1293],{"class":147},"  Object",[125,1295,1296],{"class":143}," key1 ",[125,1298,170],{"class":131},[125,1300,892],{"class":143},[125,1302,1215],{"class":139},[125,1304,898],{"class":143},[125,1306,1307],{"class":127,"line":224},[125,1308,191],{"class":157},[125,1310,1311,1313,1315,1317,1319,1321,1323,1325,1327,1329],{"class":127,"line":239},[125,1312,197],{"class":131},[125,1314,144],{"class":143},[125,1316,203],{"class":147},[125,1318,206],{"class":143},[125,1320,170],{"class":131},[125,1322,211],{"class":131},[125,1324,214],{"class":139},[125,1326,144],{"class":143},[125,1328,219],{"class":131},[125,1330,185],{"class":143},[125,1332,1333,1335,1337,1339],{"class":127,"line":245},[125,1334,578],{"class":139},[125,1336,230],{"class":143},[125,1338,233],{"class":139},[125,1340,236],{"class":143},[125,1342,1343],{"class":127,"line":266},[125,1344,589],{"class":157},[125,1346,1347,1349,1351,1353,1355,1357],{"class":127,"line":272},[125,1348,248],{"class":143},[125,1350,251],{"class":131},[125,1352,200],{"class":143},[125,1354,256],{"class":147},[125,1356,260],{"class":259},[125,1358,263],{"class":143},[125,1360,1361],{"class":127,"line":278},[125,1362,269],{"class":157},[125,1364,1365],{"class":127,"line":284},[125,1366,275],{"class":143},[125,1368,1369],{"class":127,"line":290},[125,1370,281],{"class":143},[125,1372,1373],{"class":127,"line":295},[125,1374,328],{"class":157},[125,1376,1377,1379,1381,1383,1385,1387],{"class":127,"line":301},[125,1378,164],{"class":147},[125,1380,336],{"class":143},[125,1382,170],{"class":131},[125,1384,173],{"class":143},[125,1386,176],{"class":139},[125,1388,179],{"class":143},[125,1390,1391,1393,1395,1397],{"class":127,"line":307},[125,1392,861],{"class":147},[125,1394,1009],{"class":143},[125,1396,170],{"class":131},[125,1398,185],{"class":143},[125,1400,1401,1403,1405],{"class":127,"line":313},[125,1402,873],{"class":143},[125,1404,876],{"class":139},[125,1406,1022],{"class":143},[125,1408,1409,1411,1414,1416,1418,1420],{"class":127,"line":319},[125,1410,1293],{"class":147},[125,1412,1413],{"class":143}," key2 ",[125,1415,170],{"class":131},[125,1417,1034],{"class":143},[125,1419,1215],{"class":139},[125,1421,898],{"class":143},[125,1423,1424],{"class":127,"line":325},[125,1425,322],{"emptyLinePlaceholder":7},[125,1427,1428,1430,1433,1435,1438,1440],{"class":127,"line":331},[125,1429,643],{"class":131},[125,1431,1432],{"class":143}," ( ",[125,1434,648],{"class":131},[125,1436,1437],{"class":143},"key1.",[125,1439,1068],{"class":139},[125,1441,1442],{"class":143},"(key2) ) {\n",[125,1444,1445,1448,1450,1452,1456],{"class":127,"line":347},[125,1446,1447],{"class":143},"    System.out.",[125,1449,437],{"class":139},[125,1451,144],{"class":143},[125,1453,1455],{"class":1454},"sstjo","\"File tampered with\"",[125,1457,1458],{"class":143},");\n",[125,1460,1461],{"class":127,"line":353},[125,1462,662],{"class":157},[125,1464,1465],{"class":127,"line":379},[125,1466,667],{"class":143},[125,1468,1469],{"class":127,"line":393},[125,1470,322],{"emptyLinePlaceholder":7},[125,1472,1473,1475,1477,1479,1481,1483,1485,1487,1489,1491],{"class":127,"line":402},[125,1474,197],{"class":131},[125,1476,144],{"class":143},[125,1478,360],{"class":147},[125,1480,363],{"class":143},[125,1482,170],{"class":131},[125,1484,211],{"class":131},[125,1486,370],{"class":139},[125,1488,144],{"class":143},[125,1490,219],{"class":131},[125,1492,185],{"class":143},[125,1494,1495,1497,1499,1501],{"class":127,"line":431},[125,1496,698],{"class":139},[125,1498,230],{"class":143},[125,1500,387],{"class":139},[125,1502,390],{"class":143},[125,1504,1505,1507],{"class":127,"line":443},[125,1506,396],{"class":147},[125,1508,399],{"class":143},[125,1510,1511,1513,1515,1517,1519,1521,1523,1525,1527],{"class":127,"line":449},[125,1512,405],{"class":131},[125,1514,408],{"class":143},[125,1516,170],{"class":131},[125,1518,413],{"class":143},[125,1520,416],{"class":139},[125,1522,419],{"class":143},[125,1524,422],{"class":131},[125,1526,426],{"class":425},[125,1528,263],{"class":143},[125,1530,1531,1533,1535],{"class":127,"line":464},[125,1532,434],{"class":143},[125,1534,437],{"class":139},[125,1536,440],{"class":143},[125,1538,1539],{"class":127,"line":469},[125,1540,446],{"class":143},[125,1542,1543,1545,1547,1549,1551,1553],{"class":127,"line":474},[125,1544,248],{"class":143},[125,1546,251],{"class":131},[125,1548,200],{"class":143},[125,1550,256],{"class":147},[125,1552,260],{"class":259},[125,1554,263],{"class":143},[125,1556,1557],{"class":127,"line":1173},[125,1558,269],{"class":157},[125,1560,1561],{"class":127,"line":1178},[125,1562,275],{"class":143},[125,1564,1565],{"class":127,"line":1193},[125,1566,477],{"class":143},[39,1568,1569,1570,1572],{},"This approach will not work on all platforms. For example, on Windows 7 Enterprise Edition, all ",[43,1571,1215],{}," attributes are null.",[39,1574,1575,1576,1579],{},"The file key returned by the ",[43,1577,1578],{},"fileKey()"," method is guaranteed to be unique only if the file system and files remain static. A file system may reuse an identifier, for example, after a file is deleted. Like the previous compliant solution, there is a TOCTOU race window between the time the file's attributes are first read and the time the file is first opened. Another TOCTOU condition occurs the second time the attributes are read and the file is reopened.",[100,1581,1583,1584,498],{"id":1582},"compliant-solution-randomaccessfile","Compliant Solution ( ",[43,1585,1586],{},"RandomAccessFile",[39,1588,1589,1590,1592,1593,1596],{},"A better approach is to avoid reopening a file. The following compliant solution demonstrates use of a ",[43,1591,1586],{}," , which can be opened for both reading and writing. Because the file is only closed automatically by the ",[43,1594,1595],{},"try-with-resources"," statement, no race condition can occur.",[112,1598,1599],{"quality":818},[116,1600,1602],{"className":118,"code":1601,"language":120,"meta":121,"style":121},"public void processFile(String filename) throws IOException{\n  \u002F\u002F Identify a file by its path\n  try (RandomAccessFile file = new\n       RandomAccessFile(filename, \"rw\")) {\n\n    \u002F\u002F Write to file...\n\n    \u002F\u002F Go back to beginning and read contents\n    file.seek(0);\n    string line;\n    while (line=file.readLine()) != null {\n      System.out.println(line);\n    }\n  }\n}\n",[43,1603,1604,1618,1622,1638,1652,1656,1660,1664,1669,1684,1689,1712,1720,1724,1728],{"__ignoreMap":121},[125,1605,1606,1608,1610,1612,1614,1616],{"class":127,"line":128},[125,1607,132],{"class":131},[125,1609,136],{"class":135},[125,1611,140],{"class":139},[125,1613,144],{"class":143},[125,1615,148],{"class":147},[125,1617,838],{"class":143},[125,1619,1620],{"class":127,"line":154},[125,1621,158],{"class":157},[125,1623,1624,1626,1628,1630,1633,1635],{"class":127,"line":161},[125,1625,197],{"class":131},[125,1627,200],{"class":143},[125,1629,1586],{"class":147},[125,1631,1632],{"class":143}," file ",[125,1634,170],{"class":131},[125,1636,1637],{"class":131}," new\n",[125,1639,1640,1643,1646,1649],{"class":127,"line":182},[125,1641,1642],{"class":139},"       RandomAccessFile",[125,1644,1645],{"class":143},"(filename, ",[125,1647,1648],{"class":1454},"\"rw\"",[125,1650,1651],{"class":143},")) {\n",[125,1653,1654],{"class":127,"line":188},[125,1655,322],{"emptyLinePlaceholder":7},[125,1657,1658],{"class":127,"line":194},[125,1659,242],{"class":157},[125,1661,1662],{"class":127,"line":224},[125,1663,322],{"emptyLinePlaceholder":7},[125,1665,1666],{"class":127,"line":239},[125,1667,1668],{"class":157},"    \u002F\u002F Go back to beginning and read contents\n",[125,1670,1671,1674,1677,1679,1682],{"class":127,"line":245},[125,1672,1673],{"class":143},"    file.",[125,1675,1676],{"class":139},"seek",[125,1678,144],{"class":143},[125,1680,1681],{"class":425},"0",[125,1683,1458],{"class":143},[125,1685,1686],{"class":127,"line":266},[125,1687,1688],{"class":143},"    string line;\n",[125,1690,1691,1693,1696,1698,1701,1703,1705,1707,1709],{"class":127,"line":272},[125,1692,405],{"class":131},[125,1694,1695],{"class":143}," (line",[125,1697,170],{"class":131},[125,1699,1700],{"class":143},"file.",[125,1702,416],{"class":139},[125,1704,419],{"class":143},[125,1706,422],{"class":131},[125,1708,426],{"class":425},[125,1710,1711],{"class":143}," {\n",[125,1713,1714,1716,1718],{"class":127,"line":278},[125,1715,434],{"class":143},[125,1717,437],{"class":139},[125,1719,440],{"class":143},[125,1721,1722],{"class":127,"line":284},[125,1723,446],{"class":143},[125,1725,1726],{"class":127,"line":290},[125,1727,667],{"class":143},[125,1729,1730],{"class":127,"line":295},[125,1731,477],{"class":143},[100,1733,1735],{"id":1734},"noncompliant-code-example-file-size","Noncompliant Code Example (File Size)",[39,1737,1738],{},"This noncompliant code example tries to ensure that the file it opens contains exactly 1024 bytes:",[112,1740,1741],{"quality":114},[116,1742,1744],{"className":118,"code":1743,"language":120,"meta":121,"style":121},"static long goodSize = 1024;\n\npublic void doSomethingWithFile(String filename) {\n  long size = new File( filename).length();\n  if (size != goodSize) {\n    System.out.println(\"File has wrong size!\");\n    return;\n  }\n\n  try (BufferedReader br = new BufferedReader(new \n       InputStreamReader(new FileInputStream( filename)))) {\n    \u002F\u002F ... Work with file\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n}\n",[43,1745,1746,1765,1769,1785,1808,1820,1833,1840,1844,1848,1870,1884,1889,1903,1907,1911],{"__ignoreMap":121},[125,1747,1748,1751,1754,1757,1759,1762],{"class":127,"line":128},[125,1749,1750],{"class":131},"static",[125,1752,1753],{"class":135}," long",[125,1755,1756],{"class":143}," goodSize ",[125,1758,170],{"class":131},[125,1760,1761],{"class":425}," 1024",[125,1763,1764],{"class":143},";\n",[125,1766,1767],{"class":127,"line":154},[125,1768,322],{"emptyLinePlaceholder":7},[125,1770,1771,1773,1775,1778,1780,1782],{"class":127,"line":161},[125,1772,132],{"class":131},[125,1774,136],{"class":135},[125,1776,1777],{"class":139}," doSomethingWithFile",[125,1779,144],{"class":143},[125,1781,148],{"class":147},[125,1783,1784],{"class":143}," filename) {\n",[125,1786,1787,1790,1793,1795,1797,1800,1803,1806],{"class":127,"line":182},[125,1788,1789],{"class":135},"  long",[125,1791,1792],{"class":143}," size ",[125,1794,170],{"class":131},[125,1796,211],{"class":131},[125,1798,1799],{"class":139}," File",[125,1801,1802],{"class":143},"( filename).",[125,1804,1805],{"class":139},"length",[125,1807,898],{"class":143},[125,1809,1810,1812,1815,1817],{"class":127,"line":188},[125,1811,643],{"class":131},[125,1813,1814],{"class":143}," (size ",[125,1816,422],{"class":131},[125,1818,1819],{"class":143}," goodSize) {\n",[125,1821,1822,1824,1826,1828,1831],{"class":127,"line":194},[125,1823,1447],{"class":143},[125,1825,437],{"class":139},[125,1827,144],{"class":143},[125,1829,1830],{"class":1454},"\"File has wrong size!\"",[125,1832,1458],{"class":143},[125,1834,1835,1838],{"class":127,"line":224},[125,1836,1837],{"class":131},"    return",[125,1839,1764],{"class":143},[125,1841,1842],{"class":127,"line":239},[125,1843,667],{"class":143},[125,1845,1846],{"class":127,"line":245},[125,1847,322],{"emptyLinePlaceholder":7},[125,1849,1850,1852,1854,1856,1858,1860,1862,1864,1866,1868],{"class":127,"line":266},[125,1851,197],{"class":131},[125,1853,200],{"class":143},[125,1855,360],{"class":147},[125,1857,363],{"class":143},[125,1859,170],{"class":131},[125,1861,211],{"class":131},[125,1863,370],{"class":139},[125,1865,144],{"class":143},[125,1867,219],{"class":131},[125,1869,185],{"class":143},[125,1871,1872,1874,1876,1878,1881],{"class":127,"line":272},[125,1873,382],{"class":139},[125,1875,144],{"class":143},[125,1877,219],{"class":131},[125,1879,1880],{"class":139}," FileInputStream",[125,1882,1883],{"class":143},"( filename)))) {\n",[125,1885,1886],{"class":127,"line":278},[125,1887,1888],{"class":157},"    \u002F\u002F ... Work with file\n",[125,1890,1891,1893,1895,1897,1899,1901],{"class":127,"line":284},[125,1892,248],{"class":143},[125,1894,251],{"class":131},[125,1896,200],{"class":143},[125,1898,256],{"class":147},[125,1900,260],{"class":259},[125,1902,263],{"class":143},[125,1904,1905],{"class":127,"line":290},[125,1906,269],{"class":157},[125,1908,1909],{"class":127,"line":295},[125,1910,275],{"class":143},[125,1912,1913],{"class":127,"line":301},[125,1914,477],{"class":143},[39,1916,1917],{},"This code is subject to a TOCTOU race condition between when the file size is checked and when the file is opened. If an attacker replaces a 1024-byte file with another file during this race window, he or she can cause this program to open any file, defeating the check.",[100,1919,1921],{"id":1920},"compliant-solution-file-size","Compliant Solution (File Size)",[39,1923,1924,1925,1928,1929,1932],{},"This compliant solution uses the ",[43,1926,1927],{},"FileChannel.size()"," method to obtain the file size. Because this method is applied to the ",[43,1930,1931],{},"FileInputStream"," only after the file has been opened, this solution eliminates the race window.",[112,1934,1935],{"quality":818},[116,1936,1938],{"className":118,"code":1937,"language":120,"meta":121,"style":121},"static long goodSize = 1024;\n\npublic void doSomethingWithFile(String filename) {\n  try (FileInputStream in = new FileInputStream( filename);\n    BufferedReader br = new BufferedReader(\n                        new InputStreamReader(in))) {\n    long size = in.getChannel().size();\n    if (size != goodSize) {\n      System.out.println(\"File has wrong size!\");\n      return;\n    }\n\n    String line;\n    while ((line = br.readLine()) != null) {\n      System.out.println(line);\n    }\n  } catch (IOException e) {\n    \u002F\u002F Handle error\n  } \n}\n",[43,1939,1940,1954,1958,1972,1992,2008,2019,2042,2053,2065,2072,2076,2080,2086,2106,2114,2118,2132,2136,2140],{"__ignoreMap":121},[125,1941,1942,1944,1946,1948,1950,1952],{"class":127,"line":128},[125,1943,1750],{"class":131},[125,1945,1753],{"class":135},[125,1947,1756],{"class":143},[125,1949,170],{"class":131},[125,1951,1761],{"class":425},[125,1953,1764],{"class":143},[125,1955,1956],{"class":127,"line":154},[125,1957,322],{"emptyLinePlaceholder":7},[125,1959,1960,1962,1964,1966,1968,1970],{"class":127,"line":161},[125,1961,132],{"class":131},[125,1963,136],{"class":135},[125,1965,1777],{"class":139},[125,1967,144],{"class":143},[125,1969,148],{"class":147},[125,1971,1784],{"class":143},[125,1973,1974,1976,1978,1980,1983,1985,1987,1989],{"class":127,"line":182},[125,1975,197],{"class":131},[125,1977,200],{"class":143},[125,1979,1931],{"class":147},[125,1981,1982],{"class":143}," in ",[125,1984,170],{"class":131},[125,1986,211],{"class":131},[125,1988,1880],{"class":139},[125,1990,1991],{"class":143},"( filename);\n",[125,1993,1994,1997,1999,2001,2003,2005],{"class":127,"line":188},[125,1995,1996],{"class":147},"    BufferedReader",[125,1998,363],{"class":143},[125,2000,170],{"class":131},[125,2002,211],{"class":131},[125,2004,370],{"class":139},[125,2006,2007],{"class":143},"(\n",[125,2009,2010,2013,2016],{"class":127,"line":194},[125,2011,2012],{"class":131},"                        new",[125,2014,2015],{"class":139}," InputStreamReader",[125,2017,2018],{"class":143},"(in))) {\n",[125,2020,2021,2024,2026,2028,2031,2034,2037,2040],{"class":127,"line":224},[125,2022,2023],{"class":135},"    long",[125,2025,1792],{"class":143},[125,2027,170],{"class":131},[125,2029,2030],{"class":143}," in.",[125,2032,2033],{"class":139},"getChannel",[125,2035,2036],{"class":143},"().",[125,2038,2039],{"class":139},"size",[125,2041,898],{"class":143},[125,2043,2044,2047,2049,2051],{"class":127,"line":239},[125,2045,2046],{"class":131},"    if",[125,2048,1814],{"class":143},[125,2050,422],{"class":131},[125,2052,1819],{"class":143},[125,2054,2055,2057,2059,2061,2063],{"class":127,"line":245},[125,2056,434],{"class":143},[125,2058,437],{"class":139},[125,2060,144],{"class":143},[125,2062,1830],{"class":1454},[125,2064,1458],{"class":143},[125,2066,2067,2070],{"class":127,"line":266},[125,2068,2069],{"class":131},"      return",[125,2071,1764],{"class":143},[125,2073,2074],{"class":127,"line":272},[125,2075,446],{"class":143},[125,2077,2078],{"class":127,"line":278},[125,2079,322],{"emptyLinePlaceholder":7},[125,2081,2082,2084],{"class":127,"line":284},[125,2083,396],{"class":147},[125,2085,399],{"class":143},[125,2087,2088,2090,2092,2094,2096,2098,2100,2102,2104],{"class":127,"line":290},[125,2089,405],{"class":131},[125,2091,408],{"class":143},[125,2093,170],{"class":131},[125,2095,413],{"class":143},[125,2097,416],{"class":139},[125,2099,419],{"class":143},[125,2101,422],{"class":131},[125,2103,426],{"class":425},[125,2105,263],{"class":143},[125,2107,2108,2110,2112],{"class":127,"line":295},[125,2109,434],{"class":143},[125,2111,437],{"class":139},[125,2113,440],{"class":143},[125,2115,2116],{"class":127,"line":301},[125,2117,446],{"class":143},[125,2119,2120,2122,2124,2126,2128,2130],{"class":127,"line":307},[125,2121,248],{"class":143},[125,2123,251],{"class":131},[125,2125,200],{"class":143},[125,2127,256],{"class":147},[125,2129,260],{"class":259},[125,2131,263],{"class":143},[125,2133,2134],{"class":127,"line":313},[125,2135,269],{"class":157},[125,2137,2138],{"class":127,"line":319},[125,2139,275],{"class":143},[125,2141,2142],{"class":127,"line":325},[125,2143,477],{"class":143},[39,2145,2146],{},"Applicability",[39,2148,2149],{},"Attackers frequently exploit file-related vulnerabilities to cause programs to access an unintended file. Proper file identification is necessary to prevent exploitation.",[100,2151,2153],{"id":2152},"bibliography","Bibliography",[2155,2156,2157,2166],"table",{},[2158,2159,2160,2164],"colgroup",{},[2161,2162],"col",{"style":2163},"width: 50%",[2161,2165],{"style":2163},[2167,2168,2169],"tbody",{},[2170,2171,2174,2183],"tr",{"className":2172},[2173],"odd",[2175,2176,2177],"td",{},[39,2178,2179,2180,2182],{},"[ ",[94,2181,788],{"href":787}," ]",[2175,2184,2185],{},[39,2186,2187,2194,2197,2204,2206,2212,2214],{},[94,2188,2190,2191],{"href":2189},"http:\u002F\u002Fdownload.oracle.com\u002Fjavase\u002F7\u002Fdocs\u002Fapi\u002Fjava\u002Fio\u002FFile.html","Class ",[43,2192,2193],{},"        java.io.File       ",[2195,2196],"br",{},[94,2198,2200,2201],{"href":2199},"http:\u002F\u002Fdownload.oracle.com\u002Fjavase\u002F7\u002Fdocs\u002Fapi\u002Fjava\u002Fnio\u002Ffile\u002FPath.html","Interface ",[43,2202,2203],{},"        java.nio.file.Path       ",[2195,2205],{},[94,2207,2190,2209],{"href":2208},"http:\u002F\u002Fdownload.oracle.com\u002Fjavase\u002F7\u002Fdocs\u002Fapi\u002Fjava\u002Fnio\u002Ffile\u002FFiles.html",[43,2210,2211],{},"        java.nio.file.Files       ",[2195,2213],{},[94,2215,2200,2217],{"href":2216},"http:\u002F\u002Fdownload.oracle.com\u002Fjavase\u002F7\u002Fdocs\u002Fapi\u002Fjava\u002Fnio\u002Ffile\u002Fattribute\u002FBasicFileAttributes.html",[43,2218,2219],{},"        java.nio.file.attribute.BasicFileAttributes       ",[2221,2222],"hr",{},[39,2224,2225,2232,2233,2232,2239],{},[94,2226,2228],{"href":2227},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio50-j",[2229,2230],"img",{"src":2231},"\u002Fattachments\u002F88487545\u002F88873873.png"," ",[94,2234,2236],{"href":2235},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002F",[2229,2237],{"src":2238},"\u002Fattachments\u002F88487545\u002F88873874.png",[94,2240,2242],{"href":2241},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio52-j",[2229,2243],{"src":2244},"\u002Fattachments\u002F88487545\u002F88873875.png",[2246,2247,2248],"style",{},"html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .sq6CD, html code.shiki .sq6CD{--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html pre.shiki code .sk8M1, html code.shiki .sk8M1{--shiki-default:#24292E;--shiki-default-font-style:inherit;--shiki-dark:#E1E4E8;--shiki-dark-font-style:inherit;--shiki-sepia:#66D9EF;--shiki-sepia-font-style:italic}html pre.shiki code .s8-w5, html code.shiki .s8-w5{--shiki-default:#6A737D;--shiki-dark:#6A737D;--shiki-sepia:#88846F}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}html pre.shiki code .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}",{"title":121,"searchDepth":154,"depth":154,"links":2250},[2251,2252,2254,2255,2257,2259,2260,2261],{"id":102,"depth":154,"text":103},{"id":493,"depth":154,"text":2253},"Noncompliant Code Example ( Files.isSameFile() )",{"id":811,"depth":154,"text":812},{"id":1211,"depth":154,"text":2256},"Compliant Solution (POSIX fileKey Attribute)",{"id":1582,"depth":154,"text":2258},"Compliant Solution ( RandomAccessFile )",{"id":1734,"depth":154,"text":1735},{"id":1920,"depth":154,"text":1921},{"id":2152,"depth":154,"text":2153},"Many file-related security vulnerabilities result from a program accessing an unintended file object. This often happens because file names are only loosely bound to underlying file objects. File names provide no information regarding the nature of the file object itself. Furthermore, the binding of a file name to a file object is reevaluated each time the file name is used in an operation. This reevaluation can introduce a time-of-check, time-of-use (TOCTOU) race condition into an application. Objects of type java.io.File and of type java.nio.file.Path are bound to underlying file objects by the operating system only when the file is accessed.","md",{"tags":2265},[2266,2267,2268,2269,2270,2271,2272,2273,2274,2275,2276],"review-dms","weak","2defpro","review-dfs","fio","review-dm","recommendation","reviewed-fwl","defensive","review-rcs","review","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio51-j",{"title":30,"description":2262},"6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F3.fio51-j","pqZcMoM9M8FLXeXMkmSSjXivwKKIyyDXYhvMFrJW02s",[2282,2285],{"title":2283,"path":2227,"stem":2284,"children":-1},"FIO50-J. Do not make assumptions about file creation","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F2.fio50-j",{"title":2286,"path":2241,"stem":2287,"children":-1},"FIO52-J. Do not store unencrypted sensitive information on the client side","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F4.fio52-j",[2289],{"title":2290,"path":2291,"stem":2292,"children":2293},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[2294,2295,2435,3271,3661,3839],{"title":2290,"path":2291,"stem":2292},{"title":2296,"path":2297,"stem":2298,"children":2299},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[2300,2301,2305,2309,2313,2359,2397],{"title":2296,"path":2297,"stem":2298},{"title":2302,"path":2303,"stem":2304},"Rules versus Recommendations (Java)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frules-versus-recommendations-java","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F2.rules-versus-recommendations-java",{"title":2306,"path":2307,"stem":2308},"Acknowledgments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Facknowledgments","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F3.acknowledgments",{"title":2310,"path":2311,"stem":2312},"Deprecations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Fdeprecations","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.deprecations",{"title":2314,"path":2315,"stem":2316,"children":2317},"Rec. Preface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F01.index",[2318,2319,2323,2327,2331,2335,2339,2343,2347,2351,2355],{"title":2314,"path":2315,"stem":2316},{"title":2320,"path":2321,"stem":2322},"Scope","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fscope","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F02.scope",{"title":2324,"path":2325,"stem":2326},"Audience","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Faudience","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F03.audience",{"title":2328,"path":2329,"stem":2330},"Contents and Organization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fcontents-and-organization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F05.contents-and-organization",{"title":2332,"path":2333,"stem":2334},"Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fguidelines","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F06.guidelines",{"title":2336,"path":2337,"stem":2338},"Usage","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fusage","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F07.usage",{"title":2340,"path":2341,"stem":2342},"System Qualities","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fsystem-qualities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F08.system-qualities",{"title":2344,"path":2345,"stem":2346},"Priority and Levels","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fpriority-and-levels","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F09.priority-and-levels",{"title":2348,"path":2349,"stem":2350},"Automatically Generated Code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fautomatically-generated-code","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F10.automatically-generated-code",{"title":2352,"path":2353,"stem":2354},"Source Code Validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Fsource-code-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F11.source-code-validation",{"title":2356,"path":2357,"stem":2358},"Tool Selection and Validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frec-preface\u002Ftool-selection-and-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F4.rec-preface\u002F12.tool-selection-and-validation",{"title":2360,"path":2361,"stem":2362,"children":2363},"Rule. Introduction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F01.index",[2364,2365,2369,2373,2377,2381,2385,2389,2393],{"title":2360,"path":2361,"stem":2362},{"title":2366,"path":2367,"stem":2368},"Input Validation and Data Sanitization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Finput-validation-and-data-sanitization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F02.input-validation-and-data-sanitization",{"title":2370,"path":2371,"stem":2372},"Leaking Sensitive Data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fleaking-sensitive-data","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F03.leaking-sensitive-data",{"title":2374,"path":2375,"stem":2376},"Type Safety","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Ftype-safety","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F04.type-safety",{"title":2378,"path":2379,"stem":2380},"Leaking Capabilities","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fleaking-capabilities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F05.leaking-capabilities",{"title":2382,"path":2383,"stem":2384},"Denial of Service","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fdenial-of-service","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F06.denial-of-service",{"title":2386,"path":2387,"stem":2388},"Libraries","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Flibraries","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F07.libraries",{"title":2390,"path":2391,"stem":2392},"Concurrency, Visibility, and Memory","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fconcurrency-visibility-and-memory","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F08.concurrency-visibility-and-memory",{"title":2394,"path":2395,"stem":2396},"Privilege Escalation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-introduction\u002Fprivilege-escalation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F5.rule-introduction\u002F09.privilege-escalation",{"title":2398,"path":2399,"stem":2400,"children":2401},"Rule. Preface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F01.index",[2402,2403,2406,2409,2412,2416,2419,2422,2425,2428,2432],{"title":2398,"path":2399,"stem":2400},{"title":2320,"path":2404,"stem":2405},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fscope","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F02.scope",{"title":2324,"path":2407,"stem":2408},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Faudience","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F03.audience",{"title":2328,"path":2410,"stem":2411},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fcontents-and-organization","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F04.contents-and-organization",{"title":2413,"path":2414,"stem":2415},"Identifiers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fidentifiers","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F05.identifiers",{"title":2336,"path":2417,"stem":2418},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fusage","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F06.usage",{"title":2340,"path":2420,"stem":2421},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fsystem-qualities","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F07.system-qualities",{"title":2344,"path":2423,"stem":2424},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fpriority-and-levels","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F08.priority-and-levels",{"title":2348,"path":2426,"stem":2427},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fautomatically-generated-code","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F09.automatically-generated-code",{"title":2429,"path":2430,"stem":2431},"Conformance Testing","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Fconformance-testing","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F10.conformance-testing",{"title":2356,"path":2433,"stem":2434},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter\u002Frule-preface\u002Ftool-selection-and-validation","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F6.rule-preface\u002F11.tool-selection-and-validation",{"title":2436,"path":2437,"stem":2438,"children":2439},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[2440,2441,2445,2471,2489,2535,2573,2645,2699,2725,2779,2841,2895,2953,3015,3065,3105,3163,3193,3219,3241],{"title":2436,"path":2437,"stem":2438},{"title":2442,"path":2443,"stem":2444},"Android (DRD)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fandroid-drd","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F02.android-drd",{"title":2446,"path":2447,"stem":2448,"children":2449},"Characters and Strings (STR)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F1.index",[2450,2451,2455,2459,2463,2467],{"title":2446,"path":2447,"stem":2448},{"title":2452,"path":2453,"stem":2454},"STR00-J. Don't form strings containing partial characters from variable-width encodings","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F2.str00-j",{"title":2456,"path":2457,"stem":2458},"STR01-J. Do not assume that a Java char fully represents a Unicode code point","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F3.str01-j",{"title":2460,"path":2461,"stem":2462},"STR02-J. Specify an appropriate locale when comparing locale-dependent data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F4.str02-j",{"title":2464,"path":2465,"stem":2466},"STR03-J. Do not encode noncharacter data as a string","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F5.str03-j",{"title":2468,"path":2469,"stem":2470},"STR04-J. Use compatible character encodings when communicating string data between JVMs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fcharacters-and-strings-str\u002Fstr04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F03.characters-and-strings-str\u002F6.str04-j",{"title":2472,"path":2473,"stem":2474,"children":2475},"Declarations and Initialization (DCL)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F1.index",[2476,2477,2481,2485],{"title":2472,"path":2473,"stem":2474},{"title":2478,"path":2479,"stem":2480},"DCL00-J. Prevent class initialization cycles","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F2.dcl00-j",{"title":2482,"path":2483,"stem":2484},"DCL01-J. Do not reuse public identifiers from the Java Standard Library","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F3.dcl01-j",{"title":2486,"path":2487,"stem":2488},"DCL02-J. Do not modify the collection's elements during an enhanced for statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fdeclarations-and-initialization-dcl\u002Fdcl02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F04.declarations-and-initialization-dcl\u002F4.dcl02-j",{"title":2490,"path":2491,"stem":2492,"children":2493},"Exceptional Behavior (ERR)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F01.index",[2494,2495,2499,2503,2507,2511,2515,2519,2523,2527,2531],{"title":2490,"path":2491,"stem":2492},{"title":2496,"path":2497,"stem":2498},"ERR00-J. Do not suppress or ignore checked exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F02.err00-j",{"title":2500,"path":2501,"stem":2502},"ERR01-J. Do not allow exceptions to expose sensitive information","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F03.err01-j",{"title":2504,"path":2505,"stem":2506},"ERR02-J. Prevent exceptions while logging data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F04.err02-j",{"title":2508,"path":2509,"stem":2510},"ERR03-J. Restore prior object state on method failure","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F05.err03-j",{"title":2512,"path":2513,"stem":2514},"ERR04-J. Do not complete abruptly from a finally block","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F06.err04-j",{"title":2516,"path":2517,"stem":2518},"ERR05-J. Do not let checked exceptions escape from a finally block","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F07.err05-j",{"title":2520,"path":2521,"stem":2522},"ERR06-J. Do not throw undeclared checked exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F08.err06-j",{"title":2524,"path":2525,"stem":2526},"ERR07-J. Do not throw RuntimeException, Exception, or Throwable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F09.err07-j",{"title":2528,"path":2529,"stem":2530},"ERR08-J. Do not catch NullPointerException or any of its ancestors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F10.err08-j",{"title":2532,"path":2533,"stem":2534},"ERR09-J. Do not allow untrusted code to terminate the JVM","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexceptional-behavior-err\u002Ferr09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F05.exceptional-behavior-err\u002F11.err09-j",{"title":2536,"path":2537,"stem":2538,"children":2539},"Expressions (EXP)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F1.index",[2540,2541,2545,2549,2553,2557,2561,2565,2569],{"title":2536,"path":2537,"stem":2538},{"title":2542,"path":2543,"stem":2544},"EXP00-J. Do not ignore values returned by methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F2.exp00-j",{"title":2546,"path":2547,"stem":2548},"EXP01-J. Do not use a null in a case where an object is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F3.exp01-j",{"title":2550,"path":2551,"stem":2552},"EXP02-J. Do not use the Object.equals() method to compare two arrays","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F4.exp02-j",{"title":2554,"path":2555,"stem":2556},"EXP03-J. Do not use the equality operators when comparing values of boxed primitives","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F5.exp03-j",{"title":2558,"path":2559,"stem":2560},"EXP04-J. Do not pass arguments to certain Java Collections Framework methods that are a different type than the collection parameter type","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F6.exp04-j",{"title":2562,"path":2563,"stem":2564},"EXP05-J. Do not follow a write by a subsequent write or read of the same object within an expression","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F7.exp05-j",{"title":2566,"path":2567,"stem":2568},"EXP06-J. Expressions used in assertions must not produce side effects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F8.exp06-j",{"title":2570,"path":2571,"stem":2572},"EXP07-J. Prevent loss of useful data due to weak references","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fexpressions-exp\u002Fexp07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F06.expressions-exp\u002F9.exp07-j",{"title":2574,"path":2575,"stem":2576,"children":2577},"Input Output (FIO)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F01.index",[2578,2579,2581,2585,2589,2593,2597,2601,2605,2609,2613,2617,2621,2625,2629,2633,2637,2641],{"title":2574,"path":2575,"stem":2576},{"title":97,"path":96,"stem":2580},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F02.fio00-j",{"title":2582,"path":2583,"stem":2584},"FIO01-J. Create files with appropriate access permissions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F03.fio01-j",{"title":2586,"path":2587,"stem":2588},"FIO02-J. Detect and handle file-related errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F04.fio02-j",{"title":2590,"path":2591,"stem":2592},"FIO03-J. Remove temporary files before termination","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F05.fio03-j",{"title":2594,"path":2595,"stem":2596},"FIO04-J. Release resources when they are no longer needed","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F06.fio04-j",{"title":2598,"path":2599,"stem":2600},"FIO05-J. Do not expose buffers or their backing arrays methods to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F07.fio05-j",{"title":2602,"path":2603,"stem":2604},"FIO06-J. Do not create multiple buffered wrappers on a single byte or character stream","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F08.fio06-j",{"title":2606,"path":2607,"stem":2608},"FIO07-J. Do not let external processes block on IO buffers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F09.fio07-j",{"title":2610,"path":2611,"stem":2612},"FIO08-J. Distinguish between characters or bytes read from a stream and -1","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F10.fio08-j",{"title":2614,"path":2615,"stem":2616},"FIO09-J. Do not rely on the write() method to output integers outside the range 0 to 255","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F11.fio09-j",{"title":2618,"path":2619,"stem":2620},"FIO10-J. Ensure the array is filled when using read() to fill an array","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F12.fio10-j",{"title":2622,"path":2623,"stem":2624},"FIO11-J. Do not convert between strings and bytes without specifying a valid character encoding","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F13.fio11-j",{"title":2626,"path":2627,"stem":2628},"FIO12-J. Provide methods to read and write little-endian data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F14.fio12-j",{"title":2630,"path":2631,"stem":2632},"FIO13-J. Do not log sensitive information outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F15.fio13-j",{"title":2634,"path":2635,"stem":2636},"FIO14-J. Perform proper cleanup at program termination","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F16.fio14-j",{"title":2638,"path":2639,"stem":2640},"FIO15-J. Do not reset a servlet's output stream after committing it","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio15-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F17.fio15-j",{"title":2642,"path":2643,"stem":2644},"FIO16-J. Canonicalize path names before validating them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio16-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F18.fio16-j",{"title":2646,"path":2647,"stem":2648,"children":2649},"Input Validation and Data Sanitization (IDS)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F01.index",[2650,2651,2655,2659,2663,2667,2671,2675,2679,2683,2687,2691,2695],{"title":2646,"path":2647,"stem":2648},{"title":2652,"path":2653,"stem":2654},"IDS00-J. Prevent SQL injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F02.ids00-j",{"title":2656,"path":2657,"stem":2658},"IDS01-J. Normalize strings before validating them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F03.ids01-j",{"title":2660,"path":2661,"stem":2662},"IDS03-J. Do not log unsanitized user input","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F04.ids03-j",{"title":2664,"path":2665,"stem":2666},"IDS04-J. Safely extract files from ZipInputStream","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F05.ids04-j",{"title":2668,"path":2669,"stem":2670},"IDS06-J. Exclude unsanitized user input from format strings","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F06.ids06-j",{"title":2672,"path":2673,"stem":2674},"IDS07-J. Sanitize untrusted data passed to the Runtime.exec() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F07.ids07-j",{"title":2676,"path":2677,"stem":2678},"IDS08-J. Sanitize untrusted data included in a regular expression","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F08.ids08-j",{"title":2680,"path":2681,"stem":2682},"IDS11-J. Perform any string modifications before validation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F09.ids11-j",{"title":2684,"path":2685,"stem":2686},"IDS14-J. Do not trust the contents of hidden form fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F10.ids14-j",{"title":2688,"path":2689,"stem":2690},"IDS15-J. Do not allow sensitive information to leak outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids15-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F11.ids15-j",{"title":2692,"path":2693,"stem":2694},"IDS16-J. Prevent XML Injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids16-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F12.ids16-j",{"title":2696,"path":2697,"stem":2698},"IDS17-J. Prevent XML External Entity Attacks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-validation-and-data-sanitization-ids\u002Fids17-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F08.input-validation-and-data-sanitization-ids\u002F13.ids17-j",{"title":2700,"path":2701,"stem":2702,"children":2703},"Java Native Interface (JNI)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F1.index",[2704,2705,2709,2713,2717,2721],{"title":2700,"path":2701,"stem":2702},{"title":2706,"path":2707,"stem":2708},"JNI00-J. Define wrappers around native methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F2.jni00-j",{"title":2710,"path":2711,"stem":2712},"JNI01-J. Safely invoke standard APIs that perform tasks using the immediate caller's class loader instance (loadLibrary)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F3.jni01-j",{"title":2714,"path":2715,"stem":2716},"JNI02-J. Do not assume object references are constant or unique","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F4.jni02-j",{"title":2718,"path":2719,"stem":2720},"JNI03-J. Do not use direct pointers to Java objects in JNI code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F5.jni03-j",{"title":2722,"path":2723,"stem":2724},"JNI04-J. Do not assume that Java strings are null-terminated","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fjava-native-interface-jni\u002Fjni04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F09.java-native-interface-jni\u002F6.jni04-j",{"title":2726,"path":2727,"stem":2728,"children":2729},"Locking (LCK)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F01.index",[2730,2731,2735,2739,2743,2747,2751,2755,2759,2763,2767,2771,2775],{"title":2726,"path":2727,"stem":2728},{"title":2732,"path":2733,"stem":2734},"LCK00-J. Use private final lock objects to synchronize classes that may interact with untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F02.lck00-j",{"title":2736,"path":2737,"stem":2738},"LCK01-J. Do not synchronize on objects that may be reused","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F03.lck01-j",{"title":2740,"path":2741,"stem":2742},"LCK02-J. Do not synchronize on the class object returned by getClass()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F04.lck02-j",{"title":2744,"path":2745,"stem":2746},"LCK03-J. Do not synchronize on the intrinsic locks of high-level concurrency objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F05.lck03-j",{"title":2748,"path":2749,"stem":2750},"LCK04-J. Do not synchronize on a collection view if the backing collection is accessible","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F06.lck04-j",{"title":2752,"path":2753,"stem":2754},"LCK05-J. Synchronize access to static fields that can be modified by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F07.lck05-j",{"title":2756,"path":2757,"stem":2758},"LCK06-J. Do not use an instance lock to protect shared static data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F08.lck06-j",{"title":2760,"path":2761,"stem":2762},"LCK07-J. Avoid deadlock by requesting and releasing locks in the same order","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F09.lck07-j",{"title":2764,"path":2765,"stem":2766},"LCK08-J. Ensure actively held locks are released on exceptional conditions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F10.lck08-j",{"title":2768,"path":2769,"stem":2770},"LCK09-J. Do not perform operations that can block while holding a lock","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F11.lck09-j",{"title":2772,"path":2773,"stem":2774},"LCK10-J. Use a correct form of the double-checked locking idiom","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F12.lck10-j",{"title":2776,"path":2777,"stem":2778},"LCK11-J. Avoid client-side locking when using classes that do not commit to their locking strategy","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Flocking-lck\u002Flck11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F10.locking-lck\u002F13.lck11-j",{"title":2780,"path":2781,"stem":2782,"children":2783},"Methods (MET)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F01.index",[2784,2785,2789,2793,2797,2801,2805,2809,2813,2817,2821,2825,2829,2833,2837],{"title":2780,"path":2781,"stem":2782},{"title":2786,"path":2787,"stem":2788},"MET00-J. Validate method arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F02.met00-j",{"title":2790,"path":2791,"stem":2792},"MET01-J. Never use assertions to validate method arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F03.met01-j",{"title":2794,"path":2795,"stem":2796},"MET02-J. Do not use deprecated or obsolete classes or methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F04.met02-j",{"title":2798,"path":2799,"stem":2800},"MET03-J. Methods that perform a security check must be declared private or final","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F05.met03-j",{"title":2802,"path":2803,"stem":2804},"MET04-J. Do not increase the accessibility of overridden or hidden methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F06.met04-j",{"title":2806,"path":2807,"stem":2808},"MET05-J. Ensure that constructors do not call overridable methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F07.met05-j",{"title":2810,"path":2811,"stem":2812},"MET06-J. Do not invoke overridable methods in clone()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F08.met06-j",{"title":2814,"path":2815,"stem":2816},"MET07-J. Never declare a class method that hides a method declared in a superclass or superinterface","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F09.met07-j",{"title":2818,"path":2819,"stem":2820},"MET08-J. Preserve the equality contract when overriding the equals() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F10.met08-j",{"title":2822,"path":2823,"stem":2824},"MET09-J. Classes that define an equals() method must also define a hashCode() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F11.met09-j",{"title":2826,"path":2827,"stem":2828},"MET10-J. Follow the general contract when implementing the compareTo() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F12.met10-j",{"title":2830,"path":2831,"stem":2832},"MET11-J. Ensure that keys used in comparison operations are immutable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F13.met11-j",{"title":2834,"path":2835,"stem":2836},"MET12-J. Do not use finalizers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F14.met12-j",{"title":2838,"path":2839,"stem":2840},"MET13-J. Do not assume that reassigning method arguments modifies the calling environment","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmethods-met\u002Fmet13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F11.methods-met\u002F15.met13-j",{"title":2842,"path":2843,"stem":2844,"children":2845},"Miscellaneous (MSC)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F01.index",[2846,2847,2851,2855,2859,2863,2867,2871,2875,2879,2883,2887,2891],{"title":2842,"path":2843,"stem":2844},{"title":2848,"path":2849,"stem":2850},"MSC00-J. Use SSLSocket rather than Socket for secure data exchange","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F02.msc00-j",{"title":2852,"path":2853,"stem":2854},"MSC01-J. Do not use an empty infinite loop","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F03.msc01-j",{"title":2856,"path":2857,"stem":2858},"MSC02-J. Generate strong random numbers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F04.msc02-j",{"title":2860,"path":2861,"stem":2862},"MSC03-J. Never hard code sensitive information","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F05.msc03-j",{"title":2864,"path":2865,"stem":2866},"MSC04-J. Do not leak memory","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F06.msc04-j",{"title":2868,"path":2869,"stem":2870},"MSC05-J. Do not exhaust heap space","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F07.msc05-j",{"title":2872,"path":2873,"stem":2874},"MSC06-J. Do not modify the underlying collection when an iteration is in progress","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F08.msc06-j",{"title":2876,"path":2877,"stem":2878},"MSC07-J. Prevent multiple instantiations of singleton objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F09.msc07-j",{"title":2880,"path":2881,"stem":2882},"MSC08-J. Do not store nonserializable objects as attributes in an HTTP session","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F10.msc08-j",{"title":2884,"path":2885,"stem":2886},"MSC09-J. For OAuth, ensure (a) [relying party receiving user's ID in last step] is same as (b) [relying party the access token was granted to].","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F11.msc09-j",{"title":2888,"path":2889,"stem":2890},"MSC10-J. Do not use OAuth 2.0 implicit grant (unmodified) for authentication","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F12.msc10-j",{"title":2892,"path":2893,"stem":2894},"MSC11-J. Do not let session information leak within a servlet","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fmiscellaneous-msc\u002Fmsc11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F12.miscellaneous-msc\u002F13.msc11-j",{"title":2896,"path":2897,"stem":2898,"children":2899},"Numeric Types and Operations (NUM)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F01.index",[2900,2901,2905,2909,2913,2917,2921,2925,2929,2933,2937,2941,2945,2949],{"title":2896,"path":2897,"stem":2898},{"title":2902,"path":2903,"stem":2904},"NUM00-J. Detect or prevent integer overflow","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F02.num00-j",{"title":2906,"path":2907,"stem":2908},"NUM01-J. Do not perform bitwise and arithmetic operations on the same data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F03.num01-j",{"title":2910,"path":2911,"stem":2912},"NUM02-J. Ensure that division and remainder operations do not result in divide-by-zero errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F04.num02-j",{"title":2914,"path":2915,"stem":2916},"NUM03-J. Use integer types that can fully represent the possible range of unsigned data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F05.num03-j",{"title":2918,"path":2919,"stem":2920},"NUM04-J. Do not use floating-point numbers if precise computation is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F06.num04-j",{"title":2922,"path":2923,"stem":2924},"NUM07-J. Do not attempt comparisons with NaN","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F07.num07-j",{"title":2926,"path":2927,"stem":2928},"NUM08-J. Check floating-point inputs for exceptional values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F08.num08-j",{"title":2930,"path":2931,"stem":2932},"NUM09-J. Do not use floating-point variables as loop counters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F09.num09-j",{"title":2934,"path":2935,"stem":2936},"NUM10-J. Do not construct BigDecimal objects from floating-point literals","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F10.num10-j",{"title":2938,"path":2939,"stem":2940},"NUM11-J. Do not compare or inspect the string representation of floating-point values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F11.num11-j",{"title":2942,"path":2943,"stem":2944},"NUM12-J. Ensure conversions of numeric types to narrower types do not result in lost or misinterpreted data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F12.num12-j",{"title":2946,"path":2947,"stem":2948},"NUM13-J. Avoid loss of precision when converting primitive integers to floating-point","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F13.num13-j",{"title":2950,"path":2951,"stem":2952},"NUM14-J. Use shift operators correctly","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fnumeric-types-and-operations-num\u002Fnum14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F13.numeric-types-and-operations-num\u002F14.num14-j",{"title":2954,"path":2955,"stem":2956,"children":2957},"Object Orientation (OBJ)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F01.index",[2958,2959,2963,2967,2971,2975,2979,2983,2987,2991,2995,2999,3003,3007,3011],{"title":2954,"path":2955,"stem":2956},{"title":2960,"path":2961,"stem":2962},"OBJ01-J. Limit accessibility of fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F02.obj01-j",{"title":2964,"path":2965,"stem":2966},"OBJ02-J. Preserve dependencies in subclasses when changing superclasses","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F03.obj02-j",{"title":2968,"path":2969,"stem":2970},"OBJ03-J. Prevent heap pollution","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F04.obj03-j",{"title":2972,"path":2973,"stem":2974},"OBJ04-J. Provide mutable classes with copy functionality to safely allow passing instances to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F05.obj04-j",{"title":2976,"path":2977,"stem":2978},"OBJ05-J. Do not return references to private mutable class members","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F06.obj05-j",{"title":2980,"path":2981,"stem":2982},"OBJ06-J. Defensively copy mutable inputs and mutable internal components","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F07.obj06-j",{"title":2984,"path":2985,"stem":2986},"OBJ07-J. Sensitive classes must not let themselves be copied","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F08.obj07-j",{"title":2988,"path":2989,"stem":2990},"OBJ08-J. Do not expose private members of an outer class from within a nested class","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F09.obj08-j",{"title":2992,"path":2993,"stem":2994},"OBJ09-J. Compare classes and not class names","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F10.obj09-j",{"title":2996,"path":2997,"stem":2998},"OBJ10-J. Do not use public static nonfinal fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F11.obj10-j",{"title":3000,"path":3001,"stem":3002},"OBJ11-J. Be wary of letting constructors throw exceptions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F12.obj11-j",{"title":3004,"path":3005,"stem":3006},"OBJ12-J. Respect object-based annotations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F13.obj12-j",{"title":3008,"path":3009,"stem":3010},"OBJ13-J. Ensure that references to mutable objects are not exposed","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj13-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F14.obj13-j",{"title":3012,"path":3013,"stem":3014},"OBJ14-J. Do not use an object that has been freed.","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fobject-orientation-obj\u002Fobj14-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F14.object-orientation-obj\u002F15.obj14-j",{"title":3016,"path":3017,"stem":3018,"children":3019},"Platform Security (SEC)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F01.index",[3020,3021,3025,3029,3033,3037,3041,3045,3049,3053,3057,3061],{"title":3016,"path":3017,"stem":3018},{"title":3022,"path":3023,"stem":3024},"SEC00-J. Do not allow privileged blocks to leak sensitive information across a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F02.sec00-j",{"title":3026,"path":3027,"stem":3028},"SEC01-J. Do not allow tainted variables in privileged blocks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F03.sec01-j",{"title":3030,"path":3031,"stem":3032},"SEC02-J. Do not base security checks on untrusted sources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F04.sec02-j",{"title":3034,"path":3035,"stem":3036},"SEC03-J. Do not load trusted classes after allowing untrusted code to load arbitrary classes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F05.sec03-j",{"title":3038,"path":3039,"stem":3040},"SEC04-J. Protect sensitive operations with security manager checks","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F06.sec04-j",{"title":3042,"path":3043,"stem":3044},"SEC05-J. Do not use reflection to increase accessibility of classes, methods, or fields","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F07.sec05-j",{"title":3046,"path":3047,"stem":3048},"SEC06-J. Do not rely on the default automatic signature verification provided by URLClassLoader and java.util.jar","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F08.sec06-j",{"title":3050,"path":3051,"stem":3052},"SEC07-J. Call the superclass's getPermissions() method when writing a custom class loader","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F09.sec07-j",{"title":3054,"path":3055,"stem":3056},"SEC08-J Trusted code must discard or clean any arguments provided by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F10.sec08-j",{"title":3058,"path":3059,"stem":3060},"SEC09-J Never leak the results of certain standard API methods from trusted code to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F11.sec09-j",{"title":3062,"path":3063,"stem":3064},"SEC10-J Never permit untrusted code to invoke any API that may (possibly transitively) invoke the reflection APIs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fplatform-security-sec\u002Fsec10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F15.platform-security-sec\u002F12.sec10-j",{"title":3066,"path":3067,"stem":3068,"children":3069},"Runtime Environment (ENV)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F1.index",[3070,3071,3075,3079,3083,3093,3097,3101],{"title":3066,"path":3067,"stem":3068},{"title":3072,"path":3073,"stem":3074},"ENV00-J. Do not sign code that performs only unprivileged operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F2.env00-j",{"title":3076,"path":3077,"stem":3078},"ENV01-J. Place all security-sensitive code in a single JAR and sign and seal it","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F3.env01-j",{"title":3080,"path":3081,"stem":3082},"ENV02-J. Do not trust the values of environment variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F4.env02-j",{"title":3084,"path":3085,"stem":3086,"children":3087},"ENV03-J. Do not grant dangerous combinations of permissions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F5.env03-j\u002F1.index",[3088,3089],{"title":3084,"path":3085,"stem":3086},{"title":3090,"path":3091,"stem":3092},"DUMMY ENV03-J","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv03-j\u002Fdummy-env03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F5.env03-j\u002F2.dummy-env03-j",{"title":3094,"path":3095,"stem":3096},"ENV04-J. Do not disable bytecode verification","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F6.env04-j",{"title":3098,"path":3099,"stem":3100},"ENV05-J. Do not deploy an application that can be remotely monitored","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F7.env05-j",{"title":3102,"path":3103,"stem":3104},"ENV06-J. Production code must not contain debugging entry points","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fruntime-environment-env\u002Fenv06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F16.runtime-environment-env\u002F8.env06-j",{"title":3106,"path":3107,"stem":3108,"children":3109},"Serialization (SER)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F01.index",[3110,3111,3115,3119,3123,3127,3131,3135,3139,3143,3147,3151,3155,3159],{"title":3106,"path":3107,"stem":3108},{"title":3112,"path":3113,"stem":3114},"SER00-J. Enable serialization compatibility during class evolution","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F02.ser00-j",{"title":3116,"path":3117,"stem":3118},"SER01-J. Do not deviate from the proper signatures of serialization methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F03.ser01-j",{"title":3120,"path":3121,"stem":3122},"SER02-J. Sign then seal objects before sending them outside a trust boundary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F04.ser02-j",{"title":3124,"path":3125,"stem":3126},"SER03-J. Do not serialize unencrypted sensitive data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F05.ser03-j",{"title":3128,"path":3129,"stem":3130},"SER04-J. Do not allow serialization and deserialization to bypass the security manager","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F06.ser04-j",{"title":3132,"path":3133,"stem":3134},"SER05-J. Do not serialize instances of inner classes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F07.ser05-j",{"title":3136,"path":3137,"stem":3138},"SER06-J. Make defensive copies of private mutable components during deserialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser06-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F08.ser06-j",{"title":3140,"path":3141,"stem":3142},"SER07-J. Do not use the default serialized form for classes with implementation-defined invariants","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser07-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F09.ser07-j",{"title":3144,"path":3145,"stem":3146},"SER08-J. Minimize privileges before deserializing from a privileged context","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser08-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F10.ser08-j",{"title":3148,"path":3149,"stem":3150},"SER09-J. Do not invoke overridable methods from the readObject() method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser09-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F11.ser09-j",{"title":3152,"path":3153,"stem":3154},"SER10-J. Avoid memory and resource leaks during serialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser10-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F12.ser10-j",{"title":3156,"path":3157,"stem":3158},"SER11-J. Prevent overwriting of externalizable objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser11-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F13.ser11-j",{"title":3160,"path":3161,"stem":3162},"SER12-J. Prevent deserialization of untrusted data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fserialization-ser\u002Fser12-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F17.serialization-ser\u002F14.ser12-j",{"title":3164,"path":3165,"stem":3166,"children":3167},"Thread APIs (THI)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F1.index",[3168,3169,3173,3177,3181,3185,3189],{"title":3164,"path":3165,"stem":3166},{"title":3170,"path":3171,"stem":3172},"THI00-J. Do not invoke Thread.run()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F2.thi00-j",{"title":3174,"path":3175,"stem":3176},"THI01-J. Do not invoke ThreadGroup methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F3.thi01-j",{"title":3178,"path":3179,"stem":3180},"THI02-J. Notify all waiting threads rather than a single thread","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F4.thi02-j",{"title":3182,"path":3183,"stem":3184},"THI03-J. Always invoke wait() and await() methods inside a loop","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F5.thi03-j",{"title":3186,"path":3187,"stem":3188},"THI04-J. Ensure that threads performing blocking operations can be terminated","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F6.thi04-j",{"title":3190,"path":3191,"stem":3192},"THI05-J. Do not use Thread.stop() to terminate threads","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-apis-thi\u002Fthi05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F18.thread-apis-thi\u002F7.thi05-j",{"title":3194,"path":3195,"stem":3196,"children":3197},"Thread Pools (TPS)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F1.index",[3198,3199,3203,3207,3211,3215],{"title":3194,"path":3195,"stem":3196},{"title":3200,"path":3201,"stem":3202},"TPS00-J. Use thread pools to enable graceful degradation of service during traffic bursts","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F2.tps00-j",{"title":3204,"path":3205,"stem":3206},"TPS01-J. Do not execute interdependent tasks in a bounded thread pool","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F3.tps01-j",{"title":3208,"path":3209,"stem":3210},"TPS02-J. Ensure that tasks submitted to a thread pool are interruptible","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F4.tps02-j",{"title":3212,"path":3213,"stem":3214},"TPS03-J. Ensure that tasks executing in a thread pool do not fail silently","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F5.tps03-j",{"title":3216,"path":3217,"stem":3218},"TPS04-J. Ensure ThreadLocal variables are reinitialized when using thread pools","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-pools-tps\u002Ftps04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F19.thread-pools-tps\u002F6.tps04-j",{"title":3220,"path":3221,"stem":3222,"children":3223},"Thread-Safety Miscellaneous (TSM)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F1.index",[3224,3225,3229,3233,3237],{"title":3220,"path":3221,"stem":3222},{"title":3226,"path":3227,"stem":3228},"TSM00-J. Do not override thread-safe methods with methods that are not thread-safe","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F2.tsm00-j",{"title":3230,"path":3231,"stem":3232},"TSM01-J. Do not let the this reference escape during object construction","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F3.tsm01-j",{"title":3234,"path":3235,"stem":3236},"TSM02-J. Do not use background threads during class initialization","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F4.tsm02-j",{"title":3238,"path":3239,"stem":3240},"TSM03-J. Do not publish partially initialized objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fthread-safety-miscellaneous-tsm\u002Ftsm03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F20.thread-safety-miscellaneous-tsm\u002F5.tsm03-j",{"title":3242,"path":3243,"stem":3244,"children":3245},"Visibility and Atomicity (VNA)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F1.index",[3246,3247,3251,3255,3259,3263,3267],{"title":3242,"path":3243,"stem":3244},{"title":3248,"path":3249,"stem":3250},"VNA00-J. Ensure visibility when accessing shared primitive variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna00-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F2.vna00-j",{"title":3252,"path":3253,"stem":3254},"VNA01-J. Ensure visibility of shared references to immutable objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna01-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F3.vna01-j",{"title":3256,"path":3257,"stem":3258},"VNA02-J. Ensure that compound operations on shared variables are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna02-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F4.vna02-j",{"title":3260,"path":3261,"stem":3262},"VNA03-J. Do not assume that a group of calls to independently atomic methods is atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna03-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F5.vna03-j",{"title":3264,"path":3265,"stem":3266},"VNA04-J. Ensure that calls to chained methods are atomic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna04-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F6.vna04-j",{"title":3268,"path":3269,"stem":3270},"VNA05-J. Ensure atomicity when reading and writing 64-bit values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Fvisibility-and-atomicity-vna\u002Fvna05-j","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F21.visibility-and-atomicity-vna\u002F7.vna05-j",{"title":3272,"path":3273,"stem":3274,"children":3275},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[3276,3277,3290,3308,3361,3386,3415,3427,3460,3493,3554,3579,3620],{"title":3272,"path":3273,"stem":3274},{"title":2446,"path":3278,"stem":3279,"children":3280},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F1.index",[3281,3282,3286],{"title":2446,"path":3278,"stem":3279},{"title":3283,"path":3284,"stem":3285},"STR50-J. Use the appropriate method for counting characters in a string","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F2.str50-j",{"title":3287,"path":3288,"stem":3289},"STR51-J. Use the charset encoder and decoder classes when more control over the encoding process is required","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fcharacters-and-strings-str\u002Fstr51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F02.characters-and-strings-str\u002F3.str51-j",{"title":3291,"path":3292,"stem":3293,"children":3294},"Concurrency (CON)","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F1.index",[3295,3296,3300,3304],{"title":3291,"path":3292,"stem":3293},{"title":3297,"path":3298,"stem":3299},"CON50-J. Do not assume that declaring a reference volatile guarantees safe publication of the members of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F2.con50-j",{"title":3301,"path":3302,"stem":3303},"CON51-J. Do not assume that the sleep(), yield(), or getState() methods provide synchronization semantics","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F3.con51-j",{"title":3305,"path":3306,"stem":3307},"CON52-J. Document thread-safety and use annotations where applicable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fconcurrency-con\u002Fcon52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F03.concurrency-con\u002F4.con52-j",{"title":2472,"path":3309,"stem":3310,"children":3311},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F01.index",[3312,3313,3317,3321,3325,3329,3333,3337,3341,3345,3349,3353,3357],{"title":2472,"path":3309,"stem":3310},{"title":3314,"path":3315,"stem":3316},"DCL50-J. Use visually distinct identifiers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F02.dcl50-j",{"title":3318,"path":3319,"stem":3320},"DCL51-J. Do not shadow or obscure identifiers in subscopes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F03.dcl51-j",{"title":3322,"path":3323,"stem":3324},"DCL52-J. Do not declare more than one variable per declaration","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F04.dcl52-j",{"title":3326,"path":3327,"stem":3328},"DCL53-J. Minimize the scope of variables","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F05.dcl53-j",{"title":3330,"path":3331,"stem":3332},"DCL54-J. Use meaningful symbolic constants to represent literal values in program logic","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F06.dcl54-j",{"title":3334,"path":3335,"stem":3336},"DCL55-J. Properly encode relationships in constant definitions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F07.dcl55-j",{"title":3338,"path":3339,"stem":3340},"DCL56-J. Do not attach significance to the ordinal associated with an enum","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F08.dcl56-j",{"title":3342,"path":3343,"stem":3344},"DCL57-J. Avoid ambiguous overloading of variable arity methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F09.dcl57-j",{"title":3346,"path":3347,"stem":3348},"DCL58-J. Enable compile-time type checking of variable arity parameter types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F10.dcl58-j",{"title":3350,"path":3351,"stem":3352},"DCL59-J. Do not apply public final to constants whose value might change in later releases","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl59-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F11.dcl59-j",{"title":3354,"path":3355,"stem":3356},"DCL60-J. Avoid cyclic dependencies between packages","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl60-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F12.dcl60-j",{"title":3358,"path":3359,"stem":3360},"DCL61-J. Do not use raw types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fdeclarations-and-initialization-dcl\u002Fdcl61-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F04.declarations-and-initialization-dcl\u002F13.dcl61-j",{"title":2490,"path":3362,"stem":3363,"children":3364},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F1.index",[3365,3366,3370,3374,3378,3382],{"title":2490,"path":3362,"stem":3363},{"title":3367,"path":3368,"stem":3369},"ERR50-J. Use exceptions only for exceptional conditions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F2.err50-j",{"title":3371,"path":3372,"stem":3373},"ERR51-J. Prefer user-defined exceptions over more general exception types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F3.err51-j",{"title":3375,"path":3376,"stem":3377},"ERR52-J. Avoid in-band error indicators","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F4.err52-j",{"title":3379,"path":3380,"stem":3381},"ERR53-J. Try to gracefully recover from system errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F5.err53-j",{"title":3383,"path":3384,"stem":3385},"ERR54-J. Use a try-with-resources statement to safely handle closeable resources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexceptional-behavior-err\u002Ferr54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F05.exceptional-behavior-err\u002F6.err54-j",{"title":2536,"path":3387,"stem":3388,"children":3389},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F1.index",[3390,3391,3395,3399,3403,3407,3411],{"title":2536,"path":3387,"stem":3388},{"title":3392,"path":3393,"stem":3394},"EXP50-J. Do not confuse abstract object equality with reference equality","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F2.exp50-j",{"title":3396,"path":3397,"stem":3398},"EXP51-J. Do not perform assignments in conditional expressions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F3.exp51-j",{"title":3400,"path":3401,"stem":3402},"EXP52-J. Use braces for the body of an if, for, or while statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F4.exp52-j",{"title":3404,"path":3405,"stem":3406},"EXP53-J. Use parentheses for precedence of operation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F5.exp53-j",{"title":3408,"path":3409,"stem":3410},"EXP54-J. Understand the differences between bitwise and logical operators","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F6.exp54-j",{"title":3412,"path":3413,"stem":3414},"EXP55-J. Use the same type for the second and third operands in conditional expressions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fexpressions-exp\u002Fexp55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F06.expressions-exp\u002F7.exp55-j",{"title":2574,"path":3416,"stem":3417,"children":3418},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F1.index",[3419,3420,3421,3422,3423],{"title":2574,"path":3416,"stem":3417},{"title":2283,"path":2227,"stem":2284},{"title":30,"path":2277,"stem":2279},{"title":2286,"path":2241,"stem":2287},{"title":3424,"path":3425,"stem":3426},"FIO53-J. Use the serialization methods writeUnshared() and readUnshared() with care","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F5.fio53-j",{"title":2646,"path":3428,"stem":3429,"children":3430},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F1.index",[3431,3432,3436,3440,3444,3448,3452,3456],{"title":2646,"path":3428,"stem":3429},{"title":3433,"path":3434,"stem":3435},"IDS50-J. Use conservative file naming conventions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F2.ids50-j",{"title":3437,"path":3438,"stem":3439},"IDS51-J. Properly encode or escape output","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F3.ids51-j",{"title":3441,"path":3442,"stem":3443},"IDS52-J. Prevent code injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F4.ids52-j",{"title":3445,"path":3446,"stem":3447},"IDS53-J. Prevent XPath Injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F5.ids53-j",{"title":3449,"path":3450,"stem":3451},"IDS54-J. Prevent LDAP injection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F6.ids54-j",{"title":3453,"path":3454,"stem":3455},"IDS55-J. Understand how escape characters are interpreted when strings are loaded","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F7.ids55-j",{"title":3457,"path":3458,"stem":3459},"IDS56-J. Prevent arbitrary file upload","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-validation-and-data-sanitization-ids\u002Fids56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F08.input-validation-and-data-sanitization-ids\u002F8.ids56-j",{"title":2780,"path":3461,"stem":3462,"children":3463},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F1.index",[3464,3465,3469,3473,3477,3481,3485,3489],{"title":2780,"path":3461,"stem":3462},{"title":3466,"path":3467,"stem":3468},"MET50-J. Avoid ambiguous or confusing uses of overloading","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F2.met50-j",{"title":3470,"path":3471,"stem":3472},"MET51-J. Do not use overloaded methods to differentiate between runtime types","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F3.met51-j",{"title":3474,"path":3475,"stem":3476},"MET52-J. Do not use the clone() method to copy untrusted method parameters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F4.met52-j",{"title":3478,"path":3479,"stem":3480},"MET53-J. Ensure that the clone() method calls super.clone()","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F5.met53-j",{"title":3482,"path":3483,"stem":3484},"MET54-J. Always provide feedback about the resulting value of a method","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F6.met54-j",{"title":3486,"path":3487,"stem":3488},"MET55-J. Return an empty array or collection instead of a null value for methods that return an array or collection","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F7.met55-j",{"title":3490,"path":3491,"stem":3492},"MET56-J. Do not use Object.equals() to compare cryptographic keys","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmethods-met\u002Fmet56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F09.methods-met\u002F8.met56-j",{"title":2842,"path":3494,"stem":3495,"children":3496},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F01.index",[3497,3498,3502,3506,3510,3514,3518,3522,3526,3530,3534,3538,3542,3546,3550],{"title":2842,"path":3494,"stem":3495},{"title":3499,"path":3500,"stem":3501},"MSC50-J. Minimize the scope of the @SuppressWarnings annotation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F02.msc50-j",{"title":3503,"path":3504,"stem":3505},"MSC51-J. Do not place a semicolon immediately following an if, for, or while condition","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F03.msc51-j",{"title":3507,"path":3508,"stem":3509},"MSC52-J. Finish every set of statements associated with a case label with a break statement","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F04.msc52-j",{"title":3511,"path":3512,"stem":3513},"MSC53-J. Carefully design interfaces before releasing them","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F05.msc53-j",{"title":3515,"path":3516,"stem":3517},"MSC54-J. Avoid inadvertent wrapping of loop counters","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F06.msc54-j",{"title":3519,"path":3520,"stem":3521},"MSC55-J. Use comments consistently and in a readable fashion","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F07.msc55-j",{"title":3523,"path":3524,"stem":3525},"MSC56-J. Detect and remove superfluous code and values","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F08.msc56-j",{"title":3527,"path":3528,"stem":3529},"MSC57-J. Strive for logical completeness","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F09.msc57-j",{"title":3531,"path":3532,"stem":3533},"MSC58-J. Prefer using iterators over enumerations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F10.msc58-j",{"title":3535,"path":3536,"stem":3537},"MSC59-J. Limit the lifetime of sensitive data","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc59-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F11.msc59-j",{"title":3539,"path":3540,"stem":3541},"MSC60-J. Do not use assertions to verify the absence of runtime errors","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc60-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F12.msc60-j",{"title":3543,"path":3544,"stem":3545},"MSC61-J. Do not use insecure or weak cryptographic algorithms","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc61-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F13.msc61-j",{"title":3547,"path":3548,"stem":3549},"MSC62-J. Store passwords using a hash function","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc62-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F14.msc62-j",{"title":3551,"path":3552,"stem":3553},"MSC63-J. Ensure that SecureRandom is properly seeded","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fmiscellaneous-msc\u002Fmsc63-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F10.miscellaneous-msc\u002F15.msc63-j",{"title":2896,"path":3555,"stem":3556,"children":3557},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F1.index",[3558,3559,3563,3567,3571,3575],{"title":2896,"path":3555,"stem":3556},{"title":3560,"path":3561,"stem":3562},"NUM50-J. Convert integers to floating point for floating-point operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F2.num50-j",{"title":3564,"path":3565,"stem":3566},"NUM51-J. Do not assume that the remainder operator always returns a nonnegative result for integral operands","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F3.num51-j",{"title":3568,"path":3569,"stem":3570},"NUM52-J. Be aware of numeric promotion behavior","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F4.num52-j",{"title":3572,"path":3573,"stem":3574},"NUM53-J. Use the strictfp modifier for floating-point calculation consistency across platforms","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F5.num53-j",{"title":3576,"path":3577,"stem":3578},"NUM54-J. Do not use denormalized numbers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fnumeric-types-and-operations-num\u002Fnum54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F11.numeric-types-and-operations-num\u002F6.num54-j",{"title":2954,"path":3580,"stem":3581,"children":3582},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F01.index",[3583,3584,3588,3592,3596,3600,3604,3608,3612,3616],{"title":2954,"path":3580,"stem":3581},{"title":3585,"path":3586,"stem":3587},"OBJ50-J. Never confuse the immutability of a reference with that of the referenced object","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F02.obj50-j",{"title":3589,"path":3590,"stem":3591},"OBJ51-J. Minimize the accessibility of classes and their members","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F03.obj51-j",{"title":3593,"path":3594,"stem":3595},"OBJ52-J. Write garbage-collection-friendly code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F04.obj52-j",{"title":3597,"path":3598,"stem":3599},"OBJ53-J. Do not use direct buffers for short-lived, infrequently used objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F05.obj53-j",{"title":3601,"path":3602,"stem":3603},"OBJ54-J. Do not attempt to help the garbage collector by setting local reference variables to null","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F06.obj54-j",{"title":3605,"path":3606,"stem":3607},"OBJ55-J. Remove short-lived objects from long-lived container objects","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F07.obj55-j",{"title":3609,"path":3610,"stem":3611},"OBJ56-J. Provide sensitive mutable classes with unmodifiable wrappers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F08.obj56-j",{"title":3613,"path":3614,"stem":3615},"OBJ57-J. Do not rely on methods that can be overridden by untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F09.obj57-j",{"title":3617,"path":3618,"stem":3619},"OBJ58-J. Limit the extensibility of classes and methods with invariants","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fobject-orientation-obj\u002Fobj58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F12.object-orientation-obj\u002F10.obj58-j",{"title":3016,"path":3621,"stem":3622,"children":3623},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F01.index",[3624,3625,3629,3633,3637,3641,3645,3649,3653,3657],{"title":3016,"path":3621,"stem":3622},{"title":3626,"path":3627,"stem":3628},"SEC50-J. Avoid granting excess privileges","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F02.sec50-j",{"title":3630,"path":3631,"stem":3632},"SEC51-J. Minimize privileged code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F03.sec51-j",{"title":3634,"path":3635,"stem":3636},"SEC52-J. Do not expose methods that use reduced-security checks to untrusted code","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F04.sec52-j",{"title":3638,"path":3639,"stem":3640},"SEC53-J. Define custom security permissions for fine-grained security","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec53-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F05.sec53-j",{"title":3642,"path":3643,"stem":3644},"SEC54-J. Create a secure sandbox using a security manager","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec54-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F06.sec54-j",{"title":3646,"path":3647,"stem":3648},"SEC55-J. Ensure that security-sensitive methods are called with validated arguments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec55-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F07.sec55-j",{"title":3650,"path":3651,"stem":3652},"SEC56-J. Do not serialize direct handles to system resources","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec56-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F08.sec56-j",{"title":3654,"path":3655,"stem":3656},"SEC57-J. Do not let untrusted code misuse privileges of callback methods","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec57-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F09.sec57-j",{"title":3658,"path":3659,"stem":3660},"SEC58-J. Deserialization methods should not perform potentially dangerous operations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Fplatform-security-sec\u002Fsec58-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F13.platform-security-sec\u002F10.sec58-j",{"title":3662,"path":3663,"stem":3664,"children":3665},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[3666,3667,3671,3675,3679,3683,3809,3835],{"title":3662,"path":3663,"stem":3664},{"title":3668,"path":3669,"stem":3670},"Rec. AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F2.rec-aa-references",{"title":3672,"path":3673,"stem":3674},"Rec. BB. Definitions","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frec-bb-definitions","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F3.rec-bb-definitions",{"title":3676,"path":3677,"stem":3678},"Rule AA. References","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F4.rule-aa-references",{"title":3680,"path":3681,"stem":3682},"Rule BB. Glossary","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F5.rule-bb-glossary",{"title":3684,"path":3685,"stem":3686,"children":3687},"Rule or Rec. CC. Analyzers","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F01.index",[3688,3689,3693,3697,3701,3705,3709,3713,3717,3721,3725,3729,3733,3737,3741,3745,3749,3753,3757,3761,3765,3769,3773,3777,3781,3785,3789,3793,3797,3801,3805],{"title":3684,"path":3685,"stem":3686},{"title":3690,"path":3691,"stem":3692},"CodeSonar","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcodesonar","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F02.codesonar",{"title":3694,"path":3695,"stem":3696},"CodeSonar_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcodesonar_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F03.codesonar_v",{"title":3698,"path":3699,"stem":3700},"Coverity","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F04.coverity",{"title":3702,"path":3703,"stem":3704},"Coverity_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fcoverity_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F05.coverity_v",{"title":3706,"path":3707,"stem":3708},"Eclipse","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Feclipse","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F06.eclipse",{"title":3710,"path":3711,"stem":3712},"Eclipse_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Feclipse_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F07.eclipse_v",{"title":3714,"path":3715,"stem":3716},"Error Prone","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ferror-prone","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F08.error-prone",{"title":3718,"path":3719,"stem":3720},"Error Prone_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ferror-prone_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F09.error-prone_v",{"title":3722,"path":3723,"stem":3724},"Findbugs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffindbugs","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F10.findbugs",{"title":3726,"path":3727,"stem":3728},"Findbugs_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffindbugs_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F11.findbugs_v",{"title":3730,"path":3731,"stem":3732},"Fortify","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffortify","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F12.fortify",{"title":3734,"path":3735,"stem":3736},"Fortify_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Ffortify_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F13.fortify_v",{"title":3738,"path":3739,"stem":3740},"Klocwork","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F14.klocwork",{"title":3742,"path":3743,"stem":3744},"Klocwork_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fklocwork_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F15.klocwork_v",{"title":3746,"path":3747,"stem":3748},"Parasoft","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F16.parasoft",{"title":3750,"path":3751,"stem":3752},"Parasoft_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fparasoft_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F17.parasoft_v",{"title":3754,"path":3755,"stem":3756},"Pmd","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpmd","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F18.pmd",{"title":3758,"path":3759,"stem":3760},"Pmd_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpmd_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F19.pmd_v",{"title":3762,"path":3763,"stem":3764},"PVS-Studio","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpvs-studio","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F20.pvs-studio",{"title":3766,"path":3767,"stem":3768},"PVS-Studio_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fpvs-studio_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F21.pvs-studio_v",{"title":3770,"path":3771,"stem":3772},"Security Reviewer - Static Reviewer","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F22.security-reviewer-static-reviewer",{"title":3774,"path":3775,"stem":3776},"Security Reviewer - Static Reviewer_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F23.security-reviewer-static-reviewer_v",{"title":3778,"path":3779,"stem":3780},"SonarQube","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F24.sonarqube",{"title":3782,"path":3783,"stem":3784},"SonarQube_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsonarqube_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F25.sonarqube_v",{"title":3786,"path":3787,"stem":3788},"SpotBugs","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fspotbugs","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F26.spotbugs",{"title":3790,"path":3791,"stem":3792},"SpotBugs_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fspotbugs_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F27.spotbugs_v",{"title":3794,"path":3795,"stem":3796},"The Checker Framework","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F28.the-checker-framework",{"title":3798,"path":3799,"stem":3800},"The Checker Framework_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthe-checker-framework_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F29.the-checker-framework_v",{"title":3802,"path":3803,"stem":3804},"ThreadSafe","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthreadsafe","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F30.threadsafe",{"title":3806,"path":3807,"stem":3808},"ThreadSafe_V","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fthreadsafe_v","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F31.threadsafe_v",{"title":3810,"path":3811,"stem":3812,"children":3813},"Rule or Rec. DD. Related Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F1.index",[3814,3815,3819,3823,3827,3831],{"title":3810,"path":3811,"stem":3812},{"title":3816,"path":3817,"stem":3818},"2010","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002F2.2010","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F2.2010",{"title":3820,"path":3821,"stem":3822},"2013","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002F3.2013","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F3.2013",{"title":3824,"path":3825,"stem":3826},"MITRE CAPEC","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fmitre-capec","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F4.mitre-capec",{"title":3828,"path":3829,"stem":3830},"MITRE CWE","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fmitre-cwe","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F5.mitre-cwe",{"title":3832,"path":3833,"stem":3834},"SECURE CODING GUIDELINES FOR JAVA SE, VERSION 5.0","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-dd-related-guidelines\u002Fsecure-coding-guidelines-for-java-se-version-50","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F7.rule-or-rec-dd-related-guidelines\u002F6.secure-coding-guidelines-for-java-se-version-50",{"title":3836,"path":3837,"stem":3838},"Rule or Rec. EE. Risk Assessments","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-ee-risk-assessments","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F8.rule-or-rec-ee-risk-assessments",{"title":3840,"path":3841,"stem":3842,"children":3843},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[3844,3845,3849,3853,3857,3861],{"title":3840,"path":3841,"stem":3842},{"title":3846,"path":3847,"stem":3848},"All Guidelines with Classification","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Fall-guidelines-with-classification","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F2.all-guidelines-with-classification",{"title":3850,"path":3851,"stem":3852},"Normative Guidelines","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Fnormative-guidelines","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F3.normative-guidelines",{"title":3854,"path":3855,"stem":3856},"Tech-edit","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Ftech-edit","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F4.tech-edit",{"title":3858,"path":3859,"stem":3860},"TODO List","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin\u002Ftodo-list","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F5.todo-list",{"title":3858,"path":3859,"stem":3862},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657803585]