[{"data":1,"prerenderedAt":4539},["ShallowReactive",2],{"global-navigation":3,"page-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio00-j":28,"surround-\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio00-j":2960,"sidebar-sei-cert-oracle-coding-standard-for-java":2968},[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":41,"extension":2947,"meta":2948,"navigation":7,"path":2956,"seo":2957,"stem":2958,"__hash__":2959},"content\u002F6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F02.fio00-j.md","FIO00-J. Do not operate on files in shared directories",{"type":32,"value":33,"toc":2928},"minimark",[34,38,42,72,75,80,90,94,114,127,138,141,203,210,214,237,251,264,270,273,276,292,297,300,458,461,477,570,578,587,781,788,794,806,974,980,984,994,1005,1016,1035,1320,1326,1349,1353,1356,1363,2269,2275,2278,2281,2284,2293,2493,2496,2500,2507,2511,2523,2589,2593,2642,2646,2688,2692,2710,2714,2901,2904,2924],[35,36,30],"h1",{"id":37},"fio00-j-do-not-operate-on-files-in-shared-directories",[39,40,41],"p",{},"Multiuser systems allow multiple users with different privileges to share a file system. Each user in such an environment must be able to determine which files are shared and which are private, and each user must be able to enforce these decisions.",[39,43,44,45,50,51,54,55,59,60,63,64,67,68,71],{},"Unfortunately, a wide variety of file system ",[46,47,49],"a",{"href":48},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary","vulnerabilities"," can be ",[46,52,53],{"href":48},"exploited"," by an attacker to gain access to files for which they lack sufficient privileges, particularly when operating on files that reside in shared directories in which multiple users may create, move, or delete files. Privilege escalation is also possible when these programs run with elevated privileges. A number of file system properties and capabilities can be exploited by an attacker, including ",[56,57,58],"em",{},"file links"," , ",[56,61,62],{},"device files"," , and ",[56,65,66],{},"shared file access"," . To prevent vulnerabilities, a program must operate only on files in ",[56,69,70],{},"secure directories"," .",[39,73,74],{},"A directory is secure with respect to a particular user if only the user and the system administrator are allowed to create, move, or delete files inside the directory. Furthermore, each parent directory must itself be a secure directory up to and including the root directory. On most systems, home or user directories are secure by default and only shared directories are insecure.",[76,77,79],"h3",{"id":78},"file-links","File Links",[39,81,82,83,89],{},"Similar to shared files, file links can be swapped out and may not always point to the intended location. As a result, file links in shared directories are untrusted and should not be operated on (see ",[46,84,88],{"href":85,"rel":86},"https:\u002F\u002Fwww.securecoding.cert.org\u002Fconfluence\u002Fdisplay\u002Fjava\u002FFIO15-J.+Do+not+operate+on+untrusted+file+links",[87],"nofollow","FIO15-J. Do not operate on untrusted file links"," ).",[76,91,93],{"id":92},"device-files","Device Files",[39,95,96,97,59,101,59,104,59,107,63,110,113],{},"File names on many operating systems may be used to access device files. Device files are used to access hardware and peripherals. Reserved MS-DOS device names include ",[98,99,100],"code",{},"AUX",[98,102,103],{},"CON",[98,105,106],{},"PRN",[98,108,109],{},"COM1",[98,111,112],{},"LPT1"," . Character special files and block special files are POSIX device files that direct operations on the files to the appropriate device drivers.",[39,115,116,117,121,122,126],{},"Performing operations on device files intended only for ordinary character or binary files can result in crashes and ",[46,118,120],{"href":119},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-denial-of-service","denial-of-service (DoS) attacks"," . For example, when Windows attempts to interpret the device name as a file resource, it performs an invalid resource access that usually results in a crash [ ",[46,123,125],{"href":124},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Howard02","Howard 2002"," ].",[39,128,129,130,133,134,126],{},"Device files in POSIX can be a security risk when an attacker can access them in an unauthorized way. For instance, if malicious programs can read or write to the ",[98,131,132],{},"\u002Fdev\u002Fkmem"," device, they may be able to alter their own priority, user ID, or other attributes of their process or they may simply crash the system. Similarly, access to disk devices, tape devices, network devices, and terminals being used by other processes can also lead to problems [ ",[46,135,137],{"href":136},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Garfinkel96","Garfinkel 1996",[39,139,140],{},"On Linux, it is possible to lock certain applications by attempting to read or write data on devices rather than files. Consider the following device path names:",[142,143,148],"pre",{"className":144,"code":145,"language":146,"meta":147,"style":147},"language-java shiki shiki-themes github-light github-dark monokai","\u002Fdev\u002Fmouse\n\u002Fdev\u002Fconsole\n\u002Fdev\u002Ftty0\n\u002Fdev\u002Fzero\n","java","",[98,149,150,167,179,191],{"__ignoreMap":147},[151,152,155,158,162,164],"span",{"class":153,"line":154},"line",1,[151,156,6],{"class":157},"sC2Qs",[151,159,161],{"class":160},"sMOD_","dev",[151,163,6],{"class":157},[151,165,166],{"class":160},"mouse\n",[151,168,170,172,174,176],{"class":153,"line":169},2,[151,171,6],{"class":157},[151,173,161],{"class":160},[151,175,6],{"class":157},[151,177,178],{"class":160},"console\n",[151,180,182,184,186,188],{"class":153,"line":181},3,[151,183,6],{"class":157},[151,185,161],{"class":160},[151,187,6],{"class":157},[151,189,190],{"class":160},"tty0\n",[151,192,194,196,198,200],{"class":153,"line":193},4,[151,195,6],{"class":157},[151,197,161],{"class":160},[151,199,6],{"class":157},[151,201,202],{"class":160},"zero\n",[39,204,205,206,209],{},"A Web browser that failed to check for these devices would allow an attacker to create a website with image tags such as ",[98,207,208],{},"  \u003CIMG src=\"file:\u002F\u002F\u002Fdev\u002Fmouse\"> "," that would lock the user's mouse.",[76,211,213],{"id":212},"shared-file-access","Shared File Access",[39,215,216,217,221,222,225,226,231,232,236],{},"On many systems, files can be simultaneously accessed by concurrent processes. Exclusive access grants unrestricted file access to the locking process while denying access to all other processes, eliminating the potential for a ",[46,218,220],{"href":219},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-rac","race condition"," on the locked region. The ",[98,223,224],{},"java.nio.channels.FileLock"," class may be used for file locking. According to the Java API, ",[46,227,230],{"href":228,"rel":229},"https:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002F8\u002Fdocs\u002Fapi\u002Fjava\u002Fnio\u002Fchannels\u002FFileLock.html",[87],"Class FileLock"," [ ",[46,233,235],{"href":234},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-API14","API 2014"," ], documentation,",[238,239,240],"blockquote",{},[39,241,242,243,246,247,250],{},"A file lock is either ",[56,244,245],{},"exclusive"," or ",[56,248,249],{},"shared"," . A shared lock prevents other concurrently running programs from acquiring an overlapping exclusive lock but does allow them to acquire overlapping shared locks. An exclusive lock prevents other programs from acquiring an overlapping lock of either type. Once it is released, a lock has no further effect on the locks that may be acquired by other programs.",[39,252,253,256,257,260,261,89],{},[56,254,255],{},"Shared locks"," support concurrent read access from multiple processes; ",[56,258,259],{},"exclusive locks"," support exclusive write access. File locks provide protection across processes, but they do not provide protection from multiple threads within a single process. Both shared locks and exclusive locks eliminate the potential for a cross-process race condition on the locked region. Exclusive locks provide mutual exclusion; shared locks prevent alteration of the state of the locked file region (one of the required properties for a ",[46,262,263],{"href":48},"data race",[39,265,266,267,269],{},"The Java API [ ",[46,268,235],{"href":234}," ] documentation states that \"whether or not a lock actually prevents another program from accessing the content of the locked region is system-dependent and consequently unspecified.\"",[39,271,272],{},"Microsoft Windows uses a mandatory file-locking mechanism that prevents processes from accessing a locked file region.",[39,274,275],{},"Linux implements both mandatory locks and advisory locks. Advisory locks are not enforced by the operating system, which diminishes their value from a security perspective. Unfortunately, the mandatory file lock in Linux is generally impractical for the following reasons:",[277,278,279,283,286,289],"ul",{},[280,281,282],"li",{},"Mandatory locking is supported only by certain network file systems.",[280,284,285],{},"File systems must be mounted with support for mandatory locking, which is disabled by default.",[280,287,288],{},"Locking relies on the group ID bit, which can be turned off by another process (thereby defeating the lock).",[280,290,291],{},"The lock is implicitly dropped if the holding process closes any descriptor of the file.",[293,294,296],"h2",{"id":295},"noncompliant-code-example","Noncompliant Code Example",[39,298,299],{},"In this noncompliant code example, an attacker could specify the name of a locked device or a first in, first out (FIFO) file, causing the program to hang when opening the file:",[301,302,304],"code-block",{"quality":303},"bad",[142,305,307],{"className":144,"code":306,"language":146,"meta":147,"style":147},"String file = \u002F* Provided by user *\u002F;\nInputStream in = null;\ntry {\n  in = new FileInputStream(file);\n  \u002F\u002F ...\n} finally {\n  try {\n    if (in !=null) { in.close();}\n  } catch (IOException x) {\n    \u002F\u002F Handle error\n  }\n}\n",[98,308,309,328,344,352,369,375,386,394,418,440,446,452],{"__ignoreMap":147},[151,310,311,315,318,321,325],{"class":153,"line":154},[151,312,314],{"class":313},"sk8M1","String",[151,316,317],{"class":160}," file ",[151,319,320],{"class":157},"=",[151,322,324],{"class":323},"s8-w5"," \u002F* Provided by user *\u002F",[151,326,327],{"class":160},";\n",[151,329,330,333,336,338,342],{"class":153,"line":169},[151,331,332],{"class":313},"InputStream",[151,334,335],{"class":160}," in ",[151,337,320],{"class":157},[151,339,341],{"class":340},"s7F3e"," null",[151,343,327],{"class":160},[151,345,346,349],{"class":153,"line":181},[151,347,348],{"class":157},"try",[151,350,351],{"class":160}," {\n",[151,353,354,357,359,362,366],{"class":153,"line":193},[151,355,356],{"class":160},"  in ",[151,358,320],{"class":157},[151,360,361],{"class":157}," new",[151,363,365],{"class":364},"srTi1"," FileInputStream",[151,367,368],{"class":160},"(file);\n",[151,370,372],{"class":153,"line":371},5,[151,373,374],{"class":323},"  \u002F\u002F ...\n",[151,376,378,381,384],{"class":153,"line":377},6,[151,379,380],{"class":160},"} ",[151,382,383],{"class":157},"finally",[151,385,351],{"class":160},[151,387,389,392],{"class":153,"line":388},7,[151,390,391],{"class":157},"  try",[151,393,351],{"class":160},[151,395,397,400,403,406,409,412,415],{"class":153,"line":396},8,[151,398,399],{"class":157},"    if",[151,401,402],{"class":160}," (in ",[151,404,405],{"class":157},"!=",[151,407,408],{"class":340},"null",[151,410,411],{"class":160},") { in.",[151,413,414],{"class":364},"close",[151,416,417],{"class":160},"();}\n",[151,419,421,424,427,430,433,437],{"class":153,"line":420},9,[151,422,423],{"class":160},"  } ",[151,425,426],{"class":157},"catch",[151,428,429],{"class":160}," (",[151,431,432],{"class":313},"IOException",[151,434,436],{"class":435},"sTHNf"," x",[151,438,439],{"class":160},") {\n",[151,441,443],{"class":153,"line":442},10,[151,444,445],{"class":323},"    \u002F\u002F Handle error\n",[151,447,449],{"class":153,"line":448},11,[151,450,451],{"class":160},"  }\n",[151,453,455],{"class":153,"line":454},12,[151,456,457],{"class":160},"}\n",[293,459,296],{"id":460},"noncompliant-code-example-1",[39,462,463,464,469,470,472,473,476],{},"This noncompliant code example uses the ",[56,465,466,468],{},[98,467,348],{}," -with-resources"," statement (introduced in Java SE 7) to open the file. The ",[98,471,348],{}," -with-resources statement guarantees the file's successful closure if an exception is thrown, but this code is subject to the same ",[46,474,49],{"href":475},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-vuln"," as the previous example.",[301,478,479],{"quality":303},[142,480,482],{"className":144,"code":481,"language":146,"meta":147,"style":147},"String filename = \u002F* Provided by user *\u002F;\nPath path = new File(filename).toPath();\ntry (InputStream in = Files.newInputStream(path)) {\n  \u002F\u002F Read file\n} catch (IOException x) {\n  \u002F\u002F Handle error\n}\n",[98,483,484,497,521,542,547,561,566],{"__ignoreMap":147},[151,485,486,488,491,493,495],{"class":153,"line":154},[151,487,314],{"class":313},[151,489,490],{"class":160}," filename ",[151,492,320],{"class":157},[151,494,324],{"class":323},[151,496,327],{"class":160},[151,498,499,502,505,507,509,512,515,518],{"class":153,"line":169},[151,500,501],{"class":313},"Path",[151,503,504],{"class":160}," path ",[151,506,320],{"class":157},[151,508,361],{"class":157},[151,510,511],{"class":364}," File",[151,513,514],{"class":160},"(filename).",[151,516,517],{"class":364},"toPath",[151,519,520],{"class":160},"();\n",[151,522,523,525,527,529,531,533,536,539],{"class":153,"line":181},[151,524,348],{"class":157},[151,526,429],{"class":160},[151,528,332],{"class":313},[151,530,335],{"class":160},[151,532,320],{"class":157},[151,534,535],{"class":160}," Files.",[151,537,538],{"class":364},"newInputStream",[151,540,541],{"class":160},"(path)) {\n",[151,543,544],{"class":153,"line":193},[151,545,546],{"class":323},"  \u002F\u002F Read file\n",[151,548,549,551,553,555,557,559],{"class":153,"line":371},[151,550,380],{"class":160},[151,552,426],{"class":157},[151,554,429],{"class":160},[151,556,432],{"class":313},[151,558,436],{"class":435},[151,560,439],{"class":160},[151,562,563],{"class":153,"line":377},[151,564,565],{"class":323},"  \u002F\u002F Handle error\n",[151,567,568],{"class":153,"line":388},[151,569,457],{"class":160},[293,571,573,574,577],{"id":572},"noncompliant-code-example-isregularfile","Noncompliant Code Example ( ",[98,575,576],{},"isRegularFile()"," )",[39,579,580,581,586],{},"This noncompliant code example first checks that the file is a regular file (using the ",[46,582,585],{"href":583,"rel":584},"https:\u002F\u002Fdocs.oracle.com\u002Fjavase\u002Ftutorial\u002Fessential\u002Fio\u002Ffileio.html",[87],"NIO.2 API"," ) before opening it:",[301,588,589],{"quality":303},[142,590,592],{"className":144,"code":591,"language":146,"meta":147,"style":147},"String filename = \u002F* Provided by user *\u002F\nPath path = new File(filename).toPath();\ntry {\n  BasicFileAttributes attr =\n      Files.readAttributes(path, BasicFileAttributes.class);\n\n  \u002F\u002F Check\n  if (!attr.isRegularFile()) {\n    System.out.println(\"Not a regular file\");\n    return;\n  }\n  \u002F\u002F Other necessary checks\n  \n  \u002F\u002F Use\n  try (InputStream in = Files.newInputStream(path)) {\n    \u002F\u002F Read file\n  }\n} catch (IOException x) {\n  \u002F\u002F Handle error\n}\n",[98,593,594,605,623,629,640,651,656,661,680,698,705,709,714,720,726,745,751,756,771,776],{"__ignoreMap":147},[151,595,596,598,600,602],{"class":153,"line":154},[151,597,314],{"class":313},[151,599,490],{"class":160},[151,601,320],{"class":157},[151,603,604],{"class":323}," \u002F* Provided by user *\u002F\n",[151,606,607,609,611,613,615,617,619,621],{"class":153,"line":169},[151,608,501],{"class":313},[151,610,504],{"class":160},[151,612,320],{"class":157},[151,614,361],{"class":157},[151,616,511],{"class":364},[151,618,514],{"class":160},[151,620,517],{"class":364},[151,622,520],{"class":160},[151,624,625,627],{"class":153,"line":181},[151,626,348],{"class":157},[151,628,351],{"class":160},[151,630,631,634,637],{"class":153,"line":193},[151,632,633],{"class":313},"  BasicFileAttributes",[151,635,636],{"class":160}," attr ",[151,638,639],{"class":157},"=\n",[151,641,642,645,648],{"class":153,"line":371},[151,643,644],{"class":160},"      Files.",[151,646,647],{"class":364},"readAttributes",[151,649,650],{"class":160},"(path, BasicFileAttributes.class);\n",[151,652,653],{"class":153,"line":377},[151,654,655],{"emptyLinePlaceholder":7},"\n",[151,657,658],{"class":153,"line":388},[151,659,660],{"class":323},"  \u002F\u002F Check\n",[151,662,663,666,668,671,674,677],{"class":153,"line":396},[151,664,665],{"class":157},"  if",[151,667,429],{"class":160},[151,669,670],{"class":157},"!",[151,672,673],{"class":160},"attr.",[151,675,676],{"class":364},"isRegularFile",[151,678,679],{"class":160},"()) {\n",[151,681,682,685,688,691,695],{"class":153,"line":420},[151,683,684],{"class":160},"    System.out.",[151,686,687],{"class":364},"println",[151,689,690],{"class":160},"(",[151,692,694],{"class":693},"sstjo","\"Not a regular file\"",[151,696,697],{"class":160},");\n",[151,699,700,703],{"class":153,"line":442},[151,701,702],{"class":157},"    return",[151,704,327],{"class":160},[151,706,707],{"class":153,"line":448},[151,708,451],{"class":160},[151,710,711],{"class":153,"line":454},[151,712,713],{"class":323},"  \u002F\u002F Other necessary checks\n",[151,715,717],{"class":153,"line":716},13,[151,718,719],{"class":160},"  \n",[151,721,723],{"class":153,"line":722},14,[151,724,725],{"class":323},"  \u002F\u002F Use\n",[151,727,729,731,733,735,737,739,741,743],{"class":153,"line":728},15,[151,730,391],{"class":157},[151,732,429],{"class":160},[151,734,332],{"class":313},[151,736,335],{"class":160},[151,738,320],{"class":157},[151,740,535],{"class":160},[151,742,538],{"class":364},[151,744,541],{"class":160},[151,746,748],{"class":153,"line":747},16,[151,749,750],{"class":323},"    \u002F\u002F Read file\n",[151,752,754],{"class":153,"line":753},17,[151,755,451],{"class":160},[151,757,759,761,763,765,767,769],{"class":153,"line":758},18,[151,760,380],{"class":160},[151,762,426],{"class":157},[151,764,429],{"class":160},[151,766,432],{"class":313},[151,768,436],{"class":435},[151,770,439],{"class":160},[151,772,774],{"class":153,"line":773},19,[151,775,565],{"class":323},[151,777,779],{"class":153,"line":778},20,[151,780,457],{"class":160},[39,782,783,784,787],{},"This test can still be circumvented by a symbolic link. By default, the ",[98,785,786],{},"readAttributes()"," method follows symbolic links and reads the file attributes of the final target of the link. The result is that the program may reference a file other than the one intended.",[293,789,573,791,577],{"id":790},"noncompliant-code-example-nofollow_links",[98,792,793],{},"NOFOLLOW_LINKS",[39,795,796,797,799,800,802,803,805],{},"This noncompliant code example checks the file by calling the ",[98,798,786],{}," method with the ",[98,801,793],{}," link option to prevent the method from following symbolic links. This approach allows the detection of symbolic links because the ",[98,804,576],{}," check is carried out on the symbolic link file and not on the final target of the link.",[301,807,808],{"quality":303},[142,809,811],{"className":144,"code":810,"language":146,"meta":147,"style":147},"String filename = \u002F* Provided by user *\u002F;\nPath path = new File(filename).toPath();\ntry {\n  BasicFileAttributes attr = Files.readAttributes(\n      path, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);\n\n  \u002F\u002F Check\n  if (!attr.isRegularFile()) {\n    System.out.println(\"Not a regular file\");\n    return;\n  }\n  \u002F\u002F Other necessary checks\n\n  \u002F\u002F Use\n  try (InputStream in = Files.newInputStream(path)) {\n    \u002F\u002F Read file\n  };\n} catch (IOException x) {\n  \u002F\u002F Handle error\n}\n",[98,812,813,825,843,849,864,869,873,877,891,903,909,913,917,921,925,943,947,952,966,970],{"__ignoreMap":147},[151,814,815,817,819,821,823],{"class":153,"line":154},[151,816,314],{"class":313},[151,818,490],{"class":160},[151,820,320],{"class":157},[151,822,324],{"class":323},[151,824,327],{"class":160},[151,826,827,829,831,833,835,837,839,841],{"class":153,"line":169},[151,828,501],{"class":313},[151,830,504],{"class":160},[151,832,320],{"class":157},[151,834,361],{"class":157},[151,836,511],{"class":364},[151,838,514],{"class":160},[151,840,517],{"class":364},[151,842,520],{"class":160},[151,844,845,847],{"class":153,"line":181},[151,846,348],{"class":157},[151,848,351],{"class":160},[151,850,851,853,855,857,859,861],{"class":153,"line":193},[151,852,633],{"class":313},[151,854,636],{"class":160},[151,856,320],{"class":157},[151,858,535],{"class":160},[151,860,647],{"class":364},[151,862,863],{"class":160},"(\n",[151,865,866],{"class":153,"line":371},[151,867,868],{"class":160},"      path, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);\n",[151,870,871],{"class":153,"line":377},[151,872,655],{"emptyLinePlaceholder":7},[151,874,875],{"class":153,"line":388},[151,876,660],{"class":323},[151,878,879,881,883,885,887,889],{"class":153,"line":396},[151,880,665],{"class":157},[151,882,429],{"class":160},[151,884,670],{"class":157},[151,886,673],{"class":160},[151,888,676],{"class":364},[151,890,679],{"class":160},[151,892,893,895,897,899,901],{"class":153,"line":420},[151,894,684],{"class":160},[151,896,687],{"class":364},[151,898,690],{"class":160},[151,900,694],{"class":693},[151,902,697],{"class":160},[151,904,905,907],{"class":153,"line":442},[151,906,702],{"class":157},[151,908,327],{"class":160},[151,910,911],{"class":153,"line":448},[151,912,451],{"class":160},[151,914,915],{"class":153,"line":454},[151,916,713],{"class":323},[151,918,919],{"class":153,"line":716},[151,920,655],{"emptyLinePlaceholder":7},[151,922,923],{"class":153,"line":722},[151,924,725],{"class":323},[151,926,927,929,931,933,935,937,939,941],{"class":153,"line":728},[151,928,391],{"class":157},[151,930,429],{"class":160},[151,932,332],{"class":313},[151,934,335],{"class":160},[151,936,320],{"class":157},[151,938,535],{"class":160},[151,940,538],{"class":364},[151,942,541],{"class":160},[151,944,945],{"class":153,"line":747},[151,946,750],{"class":323},[151,948,949],{"class":153,"line":753},[151,950,951],{"class":160},"  };\n",[151,953,954,956,958,960,962,964],{"class":153,"line":758},[151,955,380],{"class":160},[151,957,426],{"class":157},[151,959,429],{"class":160},[151,961,432],{"class":313},[151,963,436],{"class":435},[151,965,439],{"class":160},[151,967,968],{"class":153,"line":773},[151,969,565],{"class":323},[151,971,972],{"class":153,"line":778},[151,973,457],{"class":160},[39,975,976,977,979],{},"This code is still vulnerable to a time-of-check, time-of-use (TOCTOU) ",[46,978,220],{"href":219}," . For example, an attacker can replace the regular file with a file link or device file after the code has completed its checks but before it opens the file.",[293,981,983],{"id":982},"noncompliant-code-example-posix-check-use-check","Noncompliant Code Example (POSIX: Check-Use-Check)",[39,985,986,987,990,991,993],{},"This noncompliant code example performs the necessary checks and then opens the file. After opening the file, it performs a second check to make sure that the file has not been moved and that the file opened is the same file that was checked. This approach reduces the chance that an attacker has changed the file between checking and then opening the file. In both checks, the file's ",[98,988,989],{},"fileKey"," attribute is examined. The ",[98,992,989],{}," attribute serves as a unique key for identifying files and is more reliable than the path name as on indicator of the file's identity.",[39,995,996,997,1001,1002,1004],{},"The SE 7 Documentation [ ",[46,998,1000],{"href":999},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-J2SE11","J2SE 2011"," ] describes the ",[98,1003,989],{}," attribute:",[238,1006,1007,1010,1013],{},[39,1008,1009],{},"Returns an object that uniquely identifies the given file, or null if a file key is not available. On some platforms or file systems it is possible to use an identifier, or a combination of identifiers to uniquely identify a file. Such identifiers are important for operations such as file tree traversal in file systems that support symbolic links or file systems that allow a file to be an entry in more than one directory. On UNIX file systems, for example, the device ID and inode are commonly used for such purposes.",[39,1011,1012],{},"The file key returned by this method can only be guaranteed to be unique if the file system and files remain static. Whether a file system re-uses identifiers after a file is deleted is implementation dependent and consequently unspecified.",[39,1014,1015],{},"File keys returned by this method can be compared for equality and are suitable for use in collections. If the file system and files remain static, and two files are the same with non-null file keys, then their file keys are equal.",[39,1017,1018,1019,1022,1023,1026,1027,1029,1030,1032,1033,71],{},"As noted in the documentation, ",[98,1020,1021],{},"FileKey"," cannot be used if it is not available. The ",[98,1024,1025],{},"fileKey()"," method returns ",[98,1028,408],{}," on Windows. Consequently, this solution is available only on systems such as POSIX in which ",[98,1031,1025],{}," does not return ",[98,1034,408],{},[301,1036,1037],{"quality":303},[142,1038,1040],{"className":144,"code":1039,"language":146,"meta":147,"style":147},"String filename = \u002F* Provided by user *\u002F;\nPath path = new File(filename).toPath();\ntry {\n  BasicFileAttributes attr = Files.readAttributes(\n      path, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);\n  Object fileKey = attr.fileKey();\n\n  \u002F\u002F Check\n  if (!attr.isRegularFile()) {\n    System.out.println(\"Not a regular file\");\n    return;\n  }\n  \u002F\u002F Other necessary checks\n\n  \u002F\u002F Use\n  try (InputStream in = Files.newInputStream(path)) {\n\n    \u002F\u002F Check\n    BasicFileAttributes attr2 = Files.readAttributes(\n        path, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS\n    );\n    Object fileKey2 = attr2.fileKey();\n    if (!fileKey.equals(fileKey2)) {\n      System.out.println(\"File has been tampered with\");\n    }\n\n    \u002F\u002F Read file\n  };\n} catch (IOException x) {\n  \u002F\u002F Handle error\n}\n",[98,1041,1042,1054,1072,1078,1092,1096,1113,1117,1121,1135,1147,1153,1157,1161,1165,1169,1187,1191,1196,1212,1217,1223,1241,1259,1274,1280,1285,1290,1295,1310,1315],{"__ignoreMap":147},[151,1043,1044,1046,1048,1050,1052],{"class":153,"line":154},[151,1045,314],{"class":313},[151,1047,490],{"class":160},[151,1049,320],{"class":157},[151,1051,324],{"class":323},[151,1053,327],{"class":160},[151,1055,1056,1058,1060,1062,1064,1066,1068,1070],{"class":153,"line":169},[151,1057,501],{"class":313},[151,1059,504],{"class":160},[151,1061,320],{"class":157},[151,1063,361],{"class":157},[151,1065,511],{"class":364},[151,1067,514],{"class":160},[151,1069,517],{"class":364},[151,1071,520],{"class":160},[151,1073,1074,1076],{"class":153,"line":181},[151,1075,348],{"class":157},[151,1077,351],{"class":160},[151,1079,1080,1082,1084,1086,1088,1090],{"class":153,"line":193},[151,1081,633],{"class":313},[151,1083,636],{"class":160},[151,1085,320],{"class":157},[151,1087,535],{"class":160},[151,1089,647],{"class":364},[151,1091,863],{"class":160},[151,1093,1094],{"class":153,"line":371},[151,1095,868],{"class":160},[151,1097,1098,1101,1104,1106,1109,1111],{"class":153,"line":377},[151,1099,1100],{"class":313},"  Object",[151,1102,1103],{"class":160}," fileKey ",[151,1105,320],{"class":157},[151,1107,1108],{"class":160}," attr.",[151,1110,989],{"class":364},[151,1112,520],{"class":160},[151,1114,1115],{"class":153,"line":388},[151,1116,655],{"emptyLinePlaceholder":7},[151,1118,1119],{"class":153,"line":396},[151,1120,660],{"class":323},[151,1122,1123,1125,1127,1129,1131,1133],{"class":153,"line":420},[151,1124,665],{"class":157},[151,1126,429],{"class":160},[151,1128,670],{"class":157},[151,1130,673],{"class":160},[151,1132,676],{"class":364},[151,1134,679],{"class":160},[151,1136,1137,1139,1141,1143,1145],{"class":153,"line":442},[151,1138,684],{"class":160},[151,1140,687],{"class":364},[151,1142,690],{"class":160},[151,1144,694],{"class":693},[151,1146,697],{"class":160},[151,1148,1149,1151],{"class":153,"line":448},[151,1150,702],{"class":157},[151,1152,327],{"class":160},[151,1154,1155],{"class":153,"line":454},[151,1156,451],{"class":160},[151,1158,1159],{"class":153,"line":716},[151,1160,713],{"class":323},[151,1162,1163],{"class":153,"line":722},[151,1164,655],{"emptyLinePlaceholder":7},[151,1166,1167],{"class":153,"line":728},[151,1168,725],{"class":323},[151,1170,1171,1173,1175,1177,1179,1181,1183,1185],{"class":153,"line":747},[151,1172,391],{"class":157},[151,1174,429],{"class":160},[151,1176,332],{"class":313},[151,1178,335],{"class":160},[151,1180,320],{"class":157},[151,1182,535],{"class":160},[151,1184,538],{"class":364},[151,1186,541],{"class":160},[151,1188,1189],{"class":153,"line":753},[151,1190,655],{"emptyLinePlaceholder":7},[151,1192,1193],{"class":153,"line":758},[151,1194,1195],{"class":323},"    \u002F\u002F Check\n",[151,1197,1198,1201,1204,1206,1208,1210],{"class":153,"line":773},[151,1199,1200],{"class":313},"    BasicFileAttributes",[151,1202,1203],{"class":160}," attr2 ",[151,1205,320],{"class":157},[151,1207,535],{"class":160},[151,1209,647],{"class":364},[151,1211,863],{"class":160},[151,1213,1214],{"class":153,"line":778},[151,1215,1216],{"class":160},"        path, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS\n",[151,1218,1220],{"class":153,"line":1219},21,[151,1221,1222],{"class":160},"    );\n",[151,1224,1226,1229,1232,1234,1237,1239],{"class":153,"line":1225},22,[151,1227,1228],{"class":313},"    Object",[151,1230,1231],{"class":160}," fileKey2 ",[151,1233,320],{"class":157},[151,1235,1236],{"class":160}," attr2.",[151,1238,989],{"class":364},[151,1240,520],{"class":160},[151,1242,1244,1246,1248,1250,1253,1256],{"class":153,"line":1243},23,[151,1245,399],{"class":157},[151,1247,429],{"class":160},[151,1249,670],{"class":157},[151,1251,1252],{"class":160},"fileKey.",[151,1254,1255],{"class":364},"equals",[151,1257,1258],{"class":160},"(fileKey2)) {\n",[151,1260,1262,1265,1267,1269,1272],{"class":153,"line":1261},24,[151,1263,1264],{"class":160},"      System.out.",[151,1266,687],{"class":364},[151,1268,690],{"class":160},[151,1270,1271],{"class":693},"\"File has been tampered with\"",[151,1273,697],{"class":160},[151,1275,1277],{"class":153,"line":1276},25,[151,1278,1279],{"class":160},"    }\n",[151,1281,1283],{"class":153,"line":1282},26,[151,1284,655],{"emptyLinePlaceholder":7},[151,1286,1288],{"class":153,"line":1287},27,[151,1289,750],{"class":323},[151,1291,1293],{"class":153,"line":1292},28,[151,1294,951],{"class":160},[151,1296,1298,1300,1302,1304,1306,1308],{"class":153,"line":1297},29,[151,1299,380],{"class":160},[151,1301,426],{"class":157},[151,1303,429],{"class":160},[151,1305,432],{"class":313},[151,1307,436],{"class":435},[151,1309,439],{"class":160},[151,1311,1313],{"class":153,"line":1312},30,[151,1314,565],{"class":323},[151,1316,1318],{"class":153,"line":1317},31,[151,1319,457],{"class":160},[39,1321,1322,1323,1325],{},"Although this code goes to great lengths to prevent an attacker from successfully tricking it into opening the wrong file, it still has several ",[46,1324,49],{"href":48}," :",[277,1327,1328,1334,1337],{},[280,1329,1330,1331,1333],{},"The TOCTOU race condition still exists between the first check and open. During this race window, an attacker can replace the regular file with a symbolic link or other nonregular file. The second check detects this ",[46,1332,220],{"href":219}," but does not eliminate it.",[280,1335,1336],{},"An attacker could subvert this code by letting the check operate on a regular file, substituting the nonregular file for the open, and then resubstituting the regular file to circumvent the second check. This vulnerability exists because Java lacks a mechanism to obtain file attributes from a file by any means other than the file name, and the binding of the file name to a file object is reasserted every time the file name is used in an operation. Consequently, an attacker can still swap a file for a nefarious file, such as a symbolic link.",[280,1338,1339,1340,1344,1345,71],{},"A system with hard links allows an attacker to construct a malicious file that is a hard link to a protected file. Hard links cannot be reliably detected by a program and can foil ",[46,1341,1343],{"href":1342},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-c","canonicalization"," attempts, which are prescribed by ",[46,1346,1348],{"href":1347},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio16-j","FIO16-J. Canonicalize path names before validating them",[293,1350,1352],{"id":1351},"compliant-solution-posix-secure-directory","Compliant Solution (POSIX: Secure Directory)",[39,1354,1355],{},"Because of the potential for race conditions and the inherent accessibility of shared directories, files must be operated on only in secure directories. Because programs may run with reduced privileges and lack the facilities to construct a secure directory, a program may need to throw an exception if it determines that a given path name is not in a secure directory.",[39,1357,1358,1359,1362],{},"Following is a POSIX-specific implementation of an ",[98,1360,1361],{},"isInSecureDir()"," method. This method ensures that the supplied file and all directories above it are owned by either the user or the system administrator, that each directory lacks write access for any other users, and that directories above the given file may not be deleted or renamed by any users other than the system administrator.",[301,1364,1366],{"quality":1365},"good",[142,1367,1369],{"className":144,"code":1368,"language":146,"meta":147,"style":147},"public static boolean isInSecureDir(Path file) {\n  return isInSecureDir(file, null);\n}\npublic static boolean isInSecureDir(Path file, UserPrincipal user) {\n   return isInSecureDir(file, user, 5);\n}\n\n\u002F**\n * Indicates whether file lives in a secure directory relative\n * to the program's user\n * @param file Path to test\n * @param user User to test. If null, defaults to current user\n * @param symlinkDepth Number of symbolic links allowed\n * @return true if file's directory is secure.\n *\u002F\npublic static boolean isInSecureDir(Path file, UserPrincipal user,\n                                    int symlinkDepth) {\n  if (!file.isAbsolute()) {\n    file = file.toAbsolutePath();\n  } if (symlinkDepth \u003C=0) {\n      \u002F\u002F Too many levels of symbolic links\n      return false;\n    }\n\n  \u002F\u002F Get UserPrincipal for specified user and superuser\n  FileSystem fileSystem =\n      Paths.get(file.getRoot().toString()).getFileSystem();\n  UserPrincipalLookupService upls = \n      fileSystem.getUserPrincipalLookupService();\n  UserPrincipal root = null;\n  try {\n    root = upls.lookupPrincipalByName(\"root\");\n    if (user == null) {\n      user = upls.lookupPrincipalByName(System.getProperty(\"user.name\"));\n    }\n    if (root == null || user == null) {\n      return false;\n    }\n  } catch (IOException x) {\n    return false;\n  }\n\n  \u002F\u002F If any parent dirs (from root on down) are not secure,\n  \u002F\u002F dir is not secure\n  for (int i = 1; i \u003C= file.getNameCount(); i++) {\n    Path partialPath = Paths.get(file.getRoot().toString(),\n                                 file.subpath(0, i).toString());\n\n    try {\n      if (Files.isSymbolicLink(partialPath)) {\n        if (!isInSecureDir(Files.readSymbolicLink(partialPath),\n                           user, symlinkDepth - 1)) {\n          \u002F\u002F Symbolic link, linked-to dir not secure\n          return false;\n        }\n      } else {\n        UserPrincipal owner = Files.getOwner(partialPath);\n        if (!user.equals(owner) && !root.equals(owner)) {\n          \u002F\u002F dir owned by someone else, not secure\n          return false;\n        }\n        PosixFileAttributes attr =\n            Files.readAttributes(partialPath, PosixFileAttributes.class);\n        Set\u003CPosixFilePermission> perms = attr.permissions();\n        if (perms.contains(PosixFilePermission.GROUP_WRITE) ||\n            perms.contains(PosixFilePermission.OTHERS_WRITE)) {\n          \u002F\u002F Someone else can write files, not secure\n          return false;\n        }\n      }\n    } catch (IOException x) {\n      return false;\n    }\n  }\n\n  return true;\n}\n",[98,1370,1371,1393,1407,1411,1434,1449,1453,1457,1462,1467,1472,1486,1498,1510,1520,1525,1546,1554,1570,1585,1603,1608,1618,1622,1626,1631,1641,1669,1682,1692,1706,1712,1733,1748,1774,1779,1803,1812,1817,1832,1841,1846,1851,1857,1863,1900,1927,1948,1953,1961,1976,1998,2012,2018,2028,2034,2045,2064,2095,2101,2110,2115,2125,2136,2160,2177,2188,2194,2203,2208,2214,2230,2239,2244,2249,2254,2264],{"__ignoreMap":147},[151,1372,1373,1376,1379,1383,1386,1388,1390],{"class":153,"line":154},[151,1374,1375],{"class":157},"public",[151,1377,1378],{"class":157}," static",[151,1380,1382],{"class":1381},"sq6CD"," boolean",[151,1384,1385],{"class":364}," isInSecureDir",[151,1387,690],{"class":160},[151,1389,501],{"class":313},[151,1391,1392],{"class":160}," file) {\n",[151,1394,1395,1398,1400,1403,1405],{"class":153,"line":169},[151,1396,1397],{"class":157},"  return",[151,1399,1385],{"class":364},[151,1401,1402],{"class":160},"(file, ",[151,1404,408],{"class":340},[151,1406,697],{"class":160},[151,1408,1409],{"class":153,"line":181},[151,1410,457],{"class":160},[151,1412,1413,1415,1417,1419,1421,1423,1425,1428,1431],{"class":153,"line":193},[151,1414,1375],{"class":157},[151,1416,1378],{"class":157},[151,1418,1382],{"class":1381},[151,1420,1385],{"class":364},[151,1422,690],{"class":160},[151,1424,501],{"class":313},[151,1426,1427],{"class":160}," file, ",[151,1429,1430],{"class":313},"UserPrincipal",[151,1432,1433],{"class":160}," user) {\n",[151,1435,1436,1439,1441,1444,1447],{"class":153,"line":371},[151,1437,1438],{"class":157},"   return",[151,1440,1385],{"class":364},[151,1442,1443],{"class":160},"(file, user, ",[151,1445,1446],{"class":340},"5",[151,1448,697],{"class":160},[151,1450,1451],{"class":153,"line":377},[151,1452,457],{"class":160},[151,1454,1455],{"class":153,"line":388},[151,1456,655],{"emptyLinePlaceholder":7},[151,1458,1459],{"class":153,"line":396},[151,1460,1461],{"class":323},"\u002F**\n",[151,1463,1464],{"class":153,"line":420},[151,1465,1466],{"class":323}," * Indicates whether file lives in a secure directory relative\n",[151,1468,1469],{"class":153,"line":442},[151,1470,1471],{"class":323}," * to the program's user\n",[151,1473,1474,1477,1480,1483],{"class":153,"line":448},[151,1475,1476],{"class":323}," * ",[151,1478,1479],{"class":157},"@param",[151,1481,1482],{"class":435}," file",[151,1484,1485],{"class":323}," Path to test\n",[151,1487,1488,1490,1492,1495],{"class":153,"line":454},[151,1489,1476],{"class":323},[151,1491,1479],{"class":157},[151,1493,1494],{"class":435}," user",[151,1496,1497],{"class":323}," User to test. If null, defaults to current user\n",[151,1499,1500,1502,1504,1507],{"class":153,"line":716},[151,1501,1476],{"class":323},[151,1503,1479],{"class":157},[151,1505,1506],{"class":435}," symlinkDepth",[151,1508,1509],{"class":323}," Number of symbolic links allowed\n",[151,1511,1512,1514,1517],{"class":153,"line":722},[151,1513,1476],{"class":323},[151,1515,1516],{"class":157},"@return",[151,1518,1519],{"class":323}," true if file's directory is secure.\n",[151,1521,1522],{"class":153,"line":728},[151,1523,1524],{"class":323}," *\u002F\n",[151,1526,1527,1529,1531,1533,1535,1537,1539,1541,1543],{"class":153,"line":747},[151,1528,1375],{"class":157},[151,1530,1378],{"class":157},[151,1532,1382],{"class":1381},[151,1534,1385],{"class":364},[151,1536,690],{"class":160},[151,1538,501],{"class":313},[151,1540,1427],{"class":160},[151,1542,1430],{"class":313},[151,1544,1545],{"class":160}," user,\n",[151,1547,1548,1551],{"class":153,"line":753},[151,1549,1550],{"class":1381},"                                    int",[151,1552,1553],{"class":160}," symlinkDepth) {\n",[151,1555,1556,1558,1560,1562,1565,1568],{"class":153,"line":758},[151,1557,665],{"class":157},[151,1559,429],{"class":160},[151,1561,670],{"class":157},[151,1563,1564],{"class":160},"file.",[151,1566,1567],{"class":364},"isAbsolute",[151,1569,679],{"class":160},[151,1571,1572,1575,1577,1580,1583],{"class":153,"line":773},[151,1573,1574],{"class":160},"    file ",[151,1576,320],{"class":157},[151,1578,1579],{"class":160}," file.",[151,1581,1582],{"class":364},"toAbsolutePath",[151,1584,520],{"class":160},[151,1586,1587,1589,1592,1595,1598,1601],{"class":153,"line":778},[151,1588,423],{"class":160},[151,1590,1591],{"class":157},"if",[151,1593,1594],{"class":160}," (symlinkDepth ",[151,1596,1597],{"class":157},"\u003C=",[151,1599,1600],{"class":340},"0",[151,1602,439],{"class":160},[151,1604,1605],{"class":153,"line":1219},[151,1606,1607],{"class":323},"      \u002F\u002F Too many levels of symbolic links\n",[151,1609,1610,1613,1616],{"class":153,"line":1225},[151,1611,1612],{"class":157},"      return",[151,1614,1615],{"class":340}," false",[151,1617,327],{"class":160},[151,1619,1620],{"class":153,"line":1243},[151,1621,1279],{"class":160},[151,1623,1624],{"class":153,"line":1261},[151,1625,655],{"emptyLinePlaceholder":7},[151,1627,1628],{"class":153,"line":1276},[151,1629,1630],{"class":323},"  \u002F\u002F Get UserPrincipal for specified user and superuser\n",[151,1632,1633,1636,1639],{"class":153,"line":1282},[151,1634,1635],{"class":313},"  FileSystem",[151,1637,1638],{"class":160}," fileSystem ",[151,1640,639],{"class":157},[151,1642,1643,1646,1649,1652,1655,1658,1661,1664,1667],{"class":153,"line":1287},[151,1644,1645],{"class":160},"      Paths.",[151,1647,1648],{"class":364},"get",[151,1650,1651],{"class":160},"(file.",[151,1653,1654],{"class":364},"getRoot",[151,1656,1657],{"class":160},"().",[151,1659,1660],{"class":364},"toString",[151,1662,1663],{"class":160},"()).",[151,1665,1666],{"class":364},"getFileSystem",[151,1668,520],{"class":160},[151,1670,1671,1674,1677,1679],{"class":153,"line":1292},[151,1672,1673],{"class":313},"  UserPrincipalLookupService",[151,1675,1676],{"class":160}," upls ",[151,1678,320],{"class":157},[151,1680,1681],{"class":160}," \n",[151,1683,1684,1687,1690],{"class":153,"line":1297},[151,1685,1686],{"class":160},"      fileSystem.",[151,1688,1689],{"class":364},"getUserPrincipalLookupService",[151,1691,520],{"class":160},[151,1693,1694,1697,1700,1702,1704],{"class":153,"line":1312},[151,1695,1696],{"class":313},"  UserPrincipal",[151,1698,1699],{"class":160}," root ",[151,1701,320],{"class":157},[151,1703,341],{"class":340},[151,1705,327],{"class":160},[151,1707,1708,1710],{"class":153,"line":1317},[151,1709,391],{"class":157},[151,1711,351],{"class":160},[151,1713,1715,1718,1720,1723,1726,1728,1731],{"class":153,"line":1714},32,[151,1716,1717],{"class":160},"    root ",[151,1719,320],{"class":157},[151,1721,1722],{"class":160}," upls.",[151,1724,1725],{"class":364},"lookupPrincipalByName",[151,1727,690],{"class":160},[151,1729,1730],{"class":693},"\"root\"",[151,1732,697],{"class":160},[151,1734,1736,1738,1741,1744,1746],{"class":153,"line":1735},33,[151,1737,399],{"class":157},[151,1739,1740],{"class":160}," (user ",[151,1742,1743],{"class":157},"==",[151,1745,341],{"class":340},[151,1747,439],{"class":160},[151,1749,1751,1754,1756,1758,1760,1763,1766,1768,1771],{"class":153,"line":1750},34,[151,1752,1753],{"class":160},"      user ",[151,1755,320],{"class":157},[151,1757,1722],{"class":160},[151,1759,1725],{"class":364},[151,1761,1762],{"class":160},"(System.",[151,1764,1765],{"class":364},"getProperty",[151,1767,690],{"class":160},[151,1769,1770],{"class":693},"\"user.name\"",[151,1772,1773],{"class":160},"));\n",[151,1775,1777],{"class":153,"line":1776},35,[151,1778,1279],{"class":160},[151,1780,1782,1784,1787,1789,1791,1794,1797,1799,1801],{"class":153,"line":1781},36,[151,1783,399],{"class":157},[151,1785,1786],{"class":160}," (root ",[151,1788,1743],{"class":157},[151,1790,341],{"class":340},[151,1792,1793],{"class":157}," ||",[151,1795,1796],{"class":160}," user ",[151,1798,1743],{"class":157},[151,1800,341],{"class":340},[151,1802,439],{"class":160},[151,1804,1806,1808,1810],{"class":153,"line":1805},37,[151,1807,1612],{"class":157},[151,1809,1615],{"class":340},[151,1811,327],{"class":160},[151,1813,1815],{"class":153,"line":1814},38,[151,1816,1279],{"class":160},[151,1818,1820,1822,1824,1826,1828,1830],{"class":153,"line":1819},39,[151,1821,423],{"class":160},[151,1823,426],{"class":157},[151,1825,429],{"class":160},[151,1827,432],{"class":313},[151,1829,436],{"class":435},[151,1831,439],{"class":160},[151,1833,1835,1837,1839],{"class":153,"line":1834},40,[151,1836,702],{"class":157},[151,1838,1615],{"class":340},[151,1840,327],{"class":160},[151,1842,1844],{"class":153,"line":1843},41,[151,1845,451],{"class":160},[151,1847,1849],{"class":153,"line":1848},42,[151,1850,655],{"emptyLinePlaceholder":7},[151,1852,1854],{"class":153,"line":1853},43,[151,1855,1856],{"class":323},"  \u002F\u002F If any parent dirs (from root on down) are not secure,\n",[151,1858,1860],{"class":153,"line":1859},44,[151,1861,1862],{"class":323},"  \u002F\u002F dir is not secure\n",[151,1864,1866,1869,1871,1874,1877,1879,1882,1885,1887,1889,1892,1895,1898],{"class":153,"line":1865},45,[151,1867,1868],{"class":157},"  for",[151,1870,429],{"class":160},[151,1872,1873],{"class":1381},"int",[151,1875,1876],{"class":160}," i ",[151,1878,320],{"class":157},[151,1880,1881],{"class":340}," 1",[151,1883,1884],{"class":160},"; i ",[151,1886,1597],{"class":157},[151,1888,1579],{"class":160},[151,1890,1891],{"class":364},"getNameCount",[151,1893,1894],{"class":160},"(); i",[151,1896,1897],{"class":157},"++",[151,1899,439],{"class":160},[151,1901,1903,1906,1909,1911,1914,1916,1918,1920,1922,1924],{"class":153,"line":1902},46,[151,1904,1905],{"class":313},"    Path",[151,1907,1908],{"class":160}," partialPath ",[151,1910,320],{"class":157},[151,1912,1913],{"class":160}," Paths.",[151,1915,1648],{"class":364},[151,1917,1651],{"class":160},[151,1919,1654],{"class":364},[151,1921,1657],{"class":160},[151,1923,1660],{"class":364},[151,1925,1926],{"class":160},"(),\n",[151,1928,1930,1933,1936,1938,1940,1943,1945],{"class":153,"line":1929},47,[151,1931,1932],{"class":160},"                                 file.",[151,1934,1935],{"class":364},"subpath",[151,1937,690],{"class":160},[151,1939,1600],{"class":340},[151,1941,1942],{"class":160},", i).",[151,1944,1660],{"class":364},[151,1946,1947],{"class":160},"());\n",[151,1949,1951],{"class":153,"line":1950},48,[151,1952,655],{"emptyLinePlaceholder":7},[151,1954,1956,1959],{"class":153,"line":1955},49,[151,1957,1958],{"class":157},"    try",[151,1960,351],{"class":160},[151,1962,1964,1967,1970,1973],{"class":153,"line":1963},50,[151,1965,1966],{"class":157},"      if",[151,1968,1969],{"class":160}," (Files.",[151,1971,1972],{"class":364},"isSymbolicLink",[151,1974,1975],{"class":160},"(partialPath)) {\n",[151,1977,1979,1982,1984,1986,1989,1992,1995],{"class":153,"line":1978},51,[151,1980,1981],{"class":157},"        if",[151,1983,429],{"class":160},[151,1985,670],{"class":157},[151,1987,1988],{"class":364},"isInSecureDir",[151,1990,1991],{"class":160},"(Files.",[151,1993,1994],{"class":364},"readSymbolicLink",[151,1996,1997],{"class":160},"(partialPath),\n",[151,1999,2001,2004,2007,2009],{"class":153,"line":2000},52,[151,2002,2003],{"class":160},"                           user, symlinkDepth ",[151,2005,2006],{"class":157},"-",[151,2008,1881],{"class":340},[151,2010,2011],{"class":160},")) {\n",[151,2013,2015],{"class":153,"line":2014},53,[151,2016,2017],{"class":323},"          \u002F\u002F Symbolic link, linked-to dir not secure\n",[151,2019,2021,2024,2026],{"class":153,"line":2020},54,[151,2022,2023],{"class":157},"          return",[151,2025,1615],{"class":340},[151,2027,327],{"class":160},[151,2029,2031],{"class":153,"line":2030},55,[151,2032,2033],{"class":160},"        }\n",[151,2035,2037,2040,2043],{"class":153,"line":2036},56,[151,2038,2039],{"class":160},"      } ",[151,2041,2042],{"class":157},"else",[151,2044,351],{"class":160},[151,2046,2048,2051,2054,2056,2058,2061],{"class":153,"line":2047},57,[151,2049,2050],{"class":313},"        UserPrincipal",[151,2052,2053],{"class":160}," owner ",[151,2055,320],{"class":157},[151,2057,535],{"class":160},[151,2059,2060],{"class":364},"getOwner",[151,2062,2063],{"class":160},"(partialPath);\n",[151,2065,2067,2069,2071,2073,2076,2078,2081,2084,2087,2090,2092],{"class":153,"line":2066},58,[151,2068,1981],{"class":157},[151,2070,429],{"class":160},[151,2072,670],{"class":157},[151,2074,2075],{"class":160},"user.",[151,2077,1255],{"class":364},[151,2079,2080],{"class":160},"(owner) ",[151,2082,2083],{"class":157},"&&",[151,2085,2086],{"class":157}," !",[151,2088,2089],{"class":160},"root.",[151,2091,1255],{"class":364},[151,2093,2094],{"class":160},"(owner)) {\n",[151,2096,2098],{"class":153,"line":2097},59,[151,2099,2100],{"class":323},"          \u002F\u002F dir owned by someone else, not secure\n",[151,2102,2104,2106,2108],{"class":153,"line":2103},60,[151,2105,2023],{"class":157},[151,2107,1615],{"class":340},[151,2109,327],{"class":160},[151,2111,2113],{"class":153,"line":2112},61,[151,2114,2033],{"class":160},[151,2116,2118,2121,2123],{"class":153,"line":2117},62,[151,2119,2120],{"class":313},"        PosixFileAttributes",[151,2122,636],{"class":160},[151,2124,639],{"class":157},[151,2126,2128,2131,2133],{"class":153,"line":2127},63,[151,2129,2130],{"class":160},"            Files.",[151,2132,647],{"class":364},[151,2134,2135],{"class":160},"(partialPath, PosixFileAttributes.class);\n",[151,2137,2139,2142,2145,2148,2151,2153,2155,2158],{"class":153,"line":2138},64,[151,2140,2141],{"class":313},"        Set",[151,2143,2144],{"class":160},"\u003C",[151,2146,2147],{"class":1381},"PosixFilePermission",[151,2149,2150],{"class":160},"> perms ",[151,2152,320],{"class":157},[151,2154,1108],{"class":160},[151,2156,2157],{"class":364},"permissions",[151,2159,520],{"class":160},[151,2161,2163,2165,2168,2171,2174],{"class":153,"line":2162},65,[151,2164,1981],{"class":157},[151,2166,2167],{"class":160}," (perms.",[151,2169,2170],{"class":364},"contains",[151,2172,2173],{"class":160},"(PosixFilePermission.GROUP_WRITE) ",[151,2175,2176],{"class":157},"||\n",[151,2178,2180,2183,2185],{"class":153,"line":2179},66,[151,2181,2182],{"class":160},"            perms.",[151,2184,2170],{"class":364},[151,2186,2187],{"class":160},"(PosixFilePermission.OTHERS_WRITE)) {\n",[151,2189,2191],{"class":153,"line":2190},67,[151,2192,2193],{"class":323},"          \u002F\u002F Someone else can write files, not secure\n",[151,2195,2197,2199,2201],{"class":153,"line":2196},68,[151,2198,2023],{"class":157},[151,2200,1615],{"class":340},[151,2202,327],{"class":160},[151,2204,2206],{"class":153,"line":2205},69,[151,2207,2033],{"class":160},[151,2209,2211],{"class":153,"line":2210},70,[151,2212,2213],{"class":160},"      }\n",[151,2215,2217,2220,2222,2224,2226,2228],{"class":153,"line":2216},71,[151,2218,2219],{"class":160},"    } ",[151,2221,426],{"class":157},[151,2223,429],{"class":160},[151,2225,432],{"class":313},[151,2227,436],{"class":435},[151,2229,439],{"class":160},[151,2231,2233,2235,2237],{"class":153,"line":2232},72,[151,2234,1612],{"class":157},[151,2236,1615],{"class":340},[151,2238,327],{"class":160},[151,2240,2242],{"class":153,"line":2241},73,[151,2243,1279],{"class":160},[151,2245,2247],{"class":153,"line":2246},74,[151,2248,451],{"class":160},[151,2250,2252],{"class":153,"line":2251},75,[151,2253,655],{"emptyLinePlaceholder":7},[151,2255,2257,2259,2262],{"class":153,"line":2256},76,[151,2258,1397],{"class":157},[151,2260,2261],{"class":340}," true",[151,2263,327],{"class":160},[151,2265,2267],{"class":153,"line":2266},77,[151,2268,457],{"class":160},[39,2270,2271,2272,2274],{},"When checking directories, it is important to traverse from the root directory to the leaf directory to avoid a dangerous ",[46,2273,220],{"href":219}," whereby an attacker who has privileges to at least one of the directories can rename and re-create a directory after the privilege verification of subdirectories but before the verification of the tampered directory.",[39,2276,2277],{},"If the path contains any symbolic links, this routine will recursively invoke itself on the linked-to directory and ensure it is also secure. A symlinked directory may be secure if both its source and linked-to directory are secure. The method checks every directory in the path, ensuring that every directory is owned by the current user or the system administrator and that all directories in the path prevent other users from creating, deleting, or renaming files.",[39,2279,2280],{},"On POSIX systems, disabling group and world write access to a directory prevents modification by anyone other than the owner of the directory and the system administrator.",[39,2282,2283],{},"Note that this method is effective only on file systems that are fully compatible with POSIX file access permissions; it may behave incorrectly for file systems with other permission mechanisms.",[39,2285,2286,2287,2289,2290,2292],{},"The following compliant solution uses the ",[98,2288,1361],{}," method to ensure that an attacker cannot tamper with the file to be opened and subsequently removed. Note that once the path name of a directory has been checked using ",[98,2291,1361],{}," , all further file operations on that directory must be performed using the same path. This compliant solution also performs the same checks performed by the previous examples, such as making sure the requested file is a regular file, and not a symbolic link, device file, or other special file.",[301,2294,2295],{"quality":1365},[142,2296,2298],{"className":144,"code":2297,"language":146,"meta":147,"style":147},"String filename = \u002F* Provided by user *\u002F;\nPath path = new File(filename).toPath();\ntry {\n  if (!isInSecureDir(path)) {\n    System.out.println(\"File not in secure directory\");\n    return;\n  }\n\n  BasicFileAttributes attr = Files.readAttributes(\n      path, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS);\n\n  \u002F\u002F Check\n  if (!attr.isRegularFile()) {\n    System.out.println(\"Not a regular file\");\n    return;\n  }\n  \u002F\u002F Other necessary checks\n\n  try (InputStream in = Files.newInputStream(path)) {\n    \u002F\u002F Read file\n  }\n} catch (IOException x) {\n  \u002F\u002F Handle error\n}\n",[98,2299,2300,2312,2330,2336,2348,2361,2367,2371,2375,2389,2393,2397,2401,2415,2427,2433,2437,2441,2445,2463,2467,2471,2485,2489],{"__ignoreMap":147},[151,2301,2302,2304,2306,2308,2310],{"class":153,"line":154},[151,2303,314],{"class":313},[151,2305,490],{"class":160},[151,2307,320],{"class":157},[151,2309,324],{"class":323},[151,2311,327],{"class":160},[151,2313,2314,2316,2318,2320,2322,2324,2326,2328],{"class":153,"line":169},[151,2315,501],{"class":313},[151,2317,504],{"class":160},[151,2319,320],{"class":157},[151,2321,361],{"class":157},[151,2323,511],{"class":364},[151,2325,514],{"class":160},[151,2327,517],{"class":364},[151,2329,520],{"class":160},[151,2331,2332,2334],{"class":153,"line":181},[151,2333,348],{"class":157},[151,2335,351],{"class":160},[151,2337,2338,2340,2342,2344,2346],{"class":153,"line":193},[151,2339,665],{"class":157},[151,2341,429],{"class":160},[151,2343,670],{"class":157},[151,2345,1988],{"class":364},[151,2347,541],{"class":160},[151,2349,2350,2352,2354,2356,2359],{"class":153,"line":371},[151,2351,684],{"class":160},[151,2353,687],{"class":364},[151,2355,690],{"class":160},[151,2357,2358],{"class":693},"\"File not in secure directory\"",[151,2360,697],{"class":160},[151,2362,2363,2365],{"class":153,"line":377},[151,2364,702],{"class":157},[151,2366,327],{"class":160},[151,2368,2369],{"class":153,"line":388},[151,2370,451],{"class":160},[151,2372,2373],{"class":153,"line":396},[151,2374,655],{"emptyLinePlaceholder":7},[151,2376,2377,2379,2381,2383,2385,2387],{"class":153,"line":420},[151,2378,633],{"class":313},[151,2380,636],{"class":160},[151,2382,320],{"class":157},[151,2384,535],{"class":160},[151,2386,647],{"class":364},[151,2388,863],{"class":160},[151,2390,2391],{"class":153,"line":442},[151,2392,868],{"class":160},[151,2394,2395],{"class":153,"line":448},[151,2396,655],{"emptyLinePlaceholder":7},[151,2398,2399],{"class":153,"line":454},[151,2400,660],{"class":323},[151,2402,2403,2405,2407,2409,2411,2413],{"class":153,"line":716},[151,2404,665],{"class":157},[151,2406,429],{"class":160},[151,2408,670],{"class":157},[151,2410,673],{"class":160},[151,2412,676],{"class":364},[151,2414,679],{"class":160},[151,2416,2417,2419,2421,2423,2425],{"class":153,"line":722},[151,2418,684],{"class":160},[151,2420,687],{"class":364},[151,2422,690],{"class":160},[151,2424,694],{"class":693},[151,2426,697],{"class":160},[151,2428,2429,2431],{"class":153,"line":728},[151,2430,702],{"class":157},[151,2432,327],{"class":160},[151,2434,2435],{"class":153,"line":747},[151,2436,451],{"class":160},[151,2438,2439],{"class":153,"line":753},[151,2440,713],{"class":323},[151,2442,2443],{"class":153,"line":758},[151,2444,655],{"emptyLinePlaceholder":7},[151,2446,2447,2449,2451,2453,2455,2457,2459,2461],{"class":153,"line":773},[151,2448,391],{"class":157},[151,2450,429],{"class":160},[151,2452,332],{"class":313},[151,2454,335],{"class":160},[151,2456,320],{"class":157},[151,2458,535],{"class":160},[151,2460,538],{"class":364},[151,2462,541],{"class":160},[151,2464,2465],{"class":153,"line":778},[151,2466,750],{"class":323},[151,2468,2469],{"class":153,"line":1219},[151,2470,451],{"class":160},[151,2472,2473,2475,2477,2479,2481,2483],{"class":153,"line":1225},[151,2474,380],{"class":160},[151,2476,426],{"class":157},[151,2478,429],{"class":160},[151,2480,432],{"class":313},[151,2482,436],{"class":435},[151,2484,439],{"class":160},[151,2486,2487],{"class":153,"line":1243},[151,2488,565],{"class":323},[151,2490,2491],{"class":153,"line":1261},[151,2492,457],{"class":160},[39,2494,2495],{},"Programs with elevated privileges may need to write files to directories owned by unprivileged users. One example is a mail daemon that reads a mail message from one user and places it in a directory owned by another user. In such cases, the mail daemon should assume the privileges of a user when reading or writing files on behalf of that user, in which case all file access should occur in secure directories relative to that user. When a program with elevated privileges must write files on its own behalf, these files should be in secure directories relative to the privileges of the program (such as directories accessible only by the system administrator).",[293,2497,2499],{"id":2498},"exceptions","Exceptions",[39,2501,2502,2506],{},[2503,2504,2505],"strong",{},"FIO00-J-EX0:"," Programs that operate on single-user systems or on systems that have no shared directories or no possibility of file system vulnerabilities do not need to ensure that files are maintained in secure directories before operating on them.",[293,2508,2510],{"id":2509},"risk-assessment","Risk Assessment",[39,2512,2513,2514,2517,2518,2522],{},"Performing operations on files in shared directories can result in ",[46,2515,2516],{"href":119},"DoS attacks"," . If the program has elevated privileges, privilege escalation ",[46,2519,2521],{"href":2520},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-bb-glossary#RuleBB.Glossary-exploit","exploits"," are possible.",[2524,2525,2526,2527,2526,2557],"table",{},"\n  ",[2528,2529,2530,2531,2526],"thead",{},"\n    ",[2532,2533,2534,2535,2534,2539,2534,2542,2534,2545,2534,2548,2534,2551,2534,2554,2530],"tr",{},"\n      ",[2536,2537,2538],"th",{},"Rule",[2536,2540,2541],{},"Severity",[2536,2543,2544],{},"Likelihood",[2536,2546,2547],{},"Detectable",[2536,2549,2550],{},"Repairable",[2536,2552,2553],{},"Priority",[2536,2555,2556],{},"Level",[2558,2559,2530,2560,2526],"tbody",{},[2532,2561,2534,2562,2534,2566,2534,2569,2534,2572,2534,2575,2534,2577,2534,2584,2530],{},[2563,2564,2565],"td",{},"FIO00-J",[2563,2567,2568],{},"Medium",[2563,2570,2571],{},"Unlikely",[2563,2573,2574],{},"No",[2563,2576,2574],{},[2563,2578,2580],{"style":2579},"color: #27ae60;",[2581,2582,2583],"b",{},"P2",[2563,2585,2586],{"style":2579},[2581,2587,2588],{},"L3",[293,2590,2592],{"id":2591},"automated-detection","Automated Detection",[2524,2594,2595],{},[2558,2596,2597,2614],{},[2532,2598,2601,2605,2608,2611],{"className":2599},[2600],"header",[2536,2602,2604],{"scope":2603},"col","Tool",[2536,2606,2607],{"scope":2603},"Version",[2536,2609,2610],{"scope":2603},"Checker",[2536,2612,2613],{"scope":2603},"Description",[2532,2615,2618,2624,2634,2639],{"className":2616},[2617],"odd",[2563,2619,2620],{},[46,2621,2623],{"href":2622},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-or-rec-cc-analyzers\u002Fsecurity-reviewer-static-reviewer","Security Reviewer - Static Reviewer",[2563,2625,2626],{},[2627,2628,2631],"div",{"className":2629},[2630],"content-wrapper",[39,2632,2633],{},"6.02",[2563,2635,2636],{},[2503,2637,2638],{},"AbsoluteResource",[2563,2640,2641],{},"Full Implementation",[293,2643,2645],{"id":2644},"related-guidelines","Related Guidelines",[2524,2647,2648,2656],{},[2528,2649,2650],{},[2532,2651,2652,2654],{},[2536,2653],{},[2536,2655],{},[2558,2657,2658,2671],{},[2532,2659,2660,2665],{},[2563,2661,2662],{},[46,2663,2664],{"href":17},"SEI CERT C Coding Standard",[2563,2666,2667],{},[46,2668,2670],{"href":2669},"\u002Fsei-cert-c-coding-standard\u002Frules\u002Finput-output-fio\u002Ffio32-c","FIO32-C. Do not perform operations on devices that are only appropriate for files",[2532,2672,2673,2680],{},[2563,2674,2675],{},[46,2676,2679],{"href":2677,"rel":2678},"http:\u002F\u002Fcwe.mitre.org\u002F",[87],"MITRE CWE",[2563,2681,2682,2687],{},[46,2683,2686],{"href":2684,"rel":2685},"http:\u002F\u002Fcwe.mitre.org\u002Fdata\u002Fdefinitions\u002F67.html",[87],"CWE-67"," , Improper Handling of Windows Device Names",[293,2689,2691],{"id":2690},"android-implementation-details","Android Implementation Details",[39,2693,2694,2695,2697,2698,246,2701,2704,2705,89],{},"On Android, the SD card ( ",[98,2696,6],{}," ",[98,2699,2700],{},"sdcard",[98,2702,2703],{},"  \u002Fmnt\u002F   sdcard "," ) is shared among multiple applications, so sensitive files should not be stored on the SD card (see ",[46,2706,2709],{"href":2707,"rel":2708},"https:\u002F\u002Fwww.securecoding.cert.org\u002Fconfluence\u002Fpages\u002Fviewpage.action?pageId=114851866",[87],"DRD00-J. Do not store sensitive information on external storage (SD card)",[293,2711,2713],{"id":2712},"bibliography","Bibliography",[2524,2715,2718,2726],{"className":2716},[2717],"wrapped",[2719,2720,2721,2724],"colgroup",{},[2603,2722],{"style":2723},"width: 50%",[2603,2725],{"style":2723},[2558,2727,2728,2767,2784,2798,2812,2830,2861,2882],{},[2532,2729,2731,2739],{"className":2730},[2617],[2563,2732,2733],{},[39,2734,2735,2736,2738],{},"[ ",[46,2737,235],{"href":234}," ]",[2563,2740,2741],{},[39,2742,2743,2749,2752,2753,2756,2758,2759,2762,2758,2764],{},[46,2744,2745,2746],{"href":228},"Class ",[98,2747,2748],{},"        FileLock       ",[2750,2751],"br",{},"\nMethods ",[98,2754,2755],{},"       createTempFile      ",[2750,2757],{},"\nMethod ",[98,2760,2761],{},"       delete      ",[2750,2763],{},[98,2765,2766],{},"       deleteOnExit      ",[2532,2768,2771,2779],{"className":2769},[2770],"even",[2563,2772,2773],{},[39,2774,2735,2775,2738],{},[46,2776,2778],{"href":2777},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Darwin04","Darwin 2004",[2563,2780,2781],{},[39,2782,2783],{},"Section 11.5, \"Creating a Transient File\"",[2532,2785,2787,2793],{"className":2786},[2617],[2563,2788,2789],{},[39,2790,2735,2791,2738],{},[46,2792,137],{"href":136},[2563,2794,2795],{},[39,2796,2797],{},"Section 5.6, \"Device Files\"",[2532,2799,2801,2807],{"className":2800},[2770],[2563,2802,2803],{},[39,2804,2735,2805,2738],{},[46,2806,125],{"href":124},[2563,2808,2809],{},[39,2810,2811],{},"Chapter 11, \"Canonical Representation Issues\"",[2532,2813,2815,2821],{"className":2814},[2617],[2563,2816,2817],{},[39,2818,2735,2819,2738],{},[46,2820,1000],{"href":999},[2563,2822,2823],{},[39,2824,2825,2826,2829],{},"\"The ",[98,2827,2828],{},"       try      "," -with-resources Statement\"",[2532,2831,2833,2839],{"className":2832},[2770],[2563,2834,2735,2835,2738],{},[46,2836,2838],{"href":2837},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-JDKBug","JDK Bug 2015",[2563,2840,2841],{},[39,2842,2843,2844,2848,2850,2851,2855,2850,2857],{},"Bug ",[46,2845,2847],{"href":2846},"https:\u002F\u002Fbugs.openjdk.java.net\u002Fbrowse\u002FJDK-4171239","JDK-4171239",[2750,2849],{},"\nBug ",[46,2852,2854],{"href":2853},"https:\u002F\u002Fbugs.openjdk.java.net\u002Fbrowse\u002FJDK-4405521","JDK-4405521",[2750,2856],{},[46,2858,2860],{"href":2859},"https:\u002F\u002Fbugs.openjdk.java.net\u002Fbrowse\u002FJDK-4631820","JDK-4631820",[2532,2862,2864,2872],{"className":2863},[2617],[2563,2865,2866],{},[39,2867,2735,2868,2738],{},[46,2869,2871],{"href":2870},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-OpenGroup04","Open Group 2004",[2563,2873,2874],{},[39,2875,2876],{},[46,2877,2879],{"href":2878},"http:\u002F\u002Fwww.opengroup.org\u002Fonlinepubs\u002F009695399\u002Ffunctions\u002Fopen.html",[98,2880,2881],{},"        open()       ",[2532,2883,2885,2893],{"className":2884},[2770],[2563,2886,2887],{},[39,2888,2735,2889,2738],{},[46,2890,2892],{"href":2891},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter\u002Frule-aa-references#RuleAA.References-Secunia08","Secunia 2008",[2563,2894,2895],{},[39,2896,2897],{},[46,2898,2900],{"href":2899},"http:\u002F\u002Fsecunia.com\u002Fadvisories\u002F20132\u002F","Secunia Advisory 20132",[2902,2903],"hr",{},[39,2905,2906,2697,2913,2697,2918],{},[46,2907,2909],{"href":2908},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002F",[2910,2911],"img",{"src":2912},"\u002Fattachments\u002F88487702\u002F88497198.png",[46,2914,2915],{"href":2908},[2910,2916],{"src":2917},"\u002Fattachments\u002F88487702\u002F88497196.png",[46,2919,2921],{"href":2920},"\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio01-j",[2910,2922],{"src":2923},"\u002Fattachments\u002F88487702\u002F88497197.png",[2925,2926,2927],"style",{},"html pre.shiki code .sC2Qs, html code.shiki .sC2Qs{--shiki-default:#D73A49;--shiki-dark:#F97583;--shiki-sepia:#F92672}html pre.shiki code .sMOD_, html code.shiki .sMOD_{--shiki-default:#24292E;--shiki-dark:#E1E4E8;--shiki-sepia:#F8F8F2}html .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 .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 .s7F3e, html code.shiki .s7F3e{--shiki-default:#005CC5;--shiki-dark:#79B8FF;--shiki-sepia:#AE81FF}html pre.shiki code .srTi1, html code.shiki .srTi1{--shiki-default:#6F42C1;--shiki-dark:#B392F0;--shiki-sepia:#A6E22E}html pre.shiki code .sTHNf, html code.shiki .sTHNf{--shiki-default:#E36209;--shiki-default-font-style:inherit;--shiki-dark:#FFAB70;--shiki-dark-font-style:inherit;--shiki-sepia:#FD971F;--shiki-sepia-font-style:italic}html pre.shiki code .sstjo, html code.shiki .sstjo{--shiki-default:#032F62;--shiki-dark:#9ECBFF;--shiki-sepia:#E6DB74}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}",{"title":147,"searchDepth":169,"depth":169,"links":2929},[2930,2931,2932,2933,2934,2935,2937,2939,2940,2941,2942,2943,2944,2945,2946],{"id":78,"depth":181,"text":79},{"id":92,"depth":181,"text":93},{"id":212,"depth":181,"text":213},{"id":295,"depth":169,"text":296},{"id":460,"depth":169,"text":296},{"id":572,"depth":169,"text":2936},"Noncompliant Code Example ( isRegularFile() )",{"id":790,"depth":169,"text":2938},"Noncompliant Code Example ( NOFOLLOW_LINKS )",{"id":982,"depth":169,"text":983},{"id":1351,"depth":169,"text":1352},{"id":2498,"depth":169,"text":2499},{"id":2509,"depth":169,"text":2510},{"id":2591,"depth":169,"text":2592},{"id":2644,"depth":169,"text":2645},{"id":2690,"depth":169,"text":2691},{"id":2712,"depth":169,"text":2713},"md",{"tags":2949},[2950,2951,2952,2953,2954,2955],"android-implementation-detail-java","fio","java7","android","rule","dos-enable","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules\u002Finput-output-fio\u002Ffio00-j",{"title":30,"description":41},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F02.fio00-j","YCzLiZLghPxGayx4tTXNuScV6i31dZCX98jQDx4mpAE",[2961,2965],{"title":2962,"path":2963,"stem":2964,"children":-1},"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",{"title":2966,"path":2920,"stem":2967,"children":-1},"FIO01-J. Create files with appropriate access permissions","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F03.fio01-j",[2969],{"title":2970,"path":2971,"stem":2972,"children":2973},"SEI CERT Oracle Coding Standard for Java","\u002Fsei-cert-oracle-coding-standard-for-java","6.sei-cert-oracle-coding-standard-for-java\u002F1.index",[2974,2975,3115,3942,4341,4515],{"title":2970,"path":2971,"stem":2972},{"title":2976,"path":2977,"stem":2978,"children":2979},"Front Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Ffront-matter","6.sei-cert-oracle-coding-standard-for-java\u002F2.front-matter\u002F1.index",[2980,2981,2985,2989,2993,3039,3077],{"title":2976,"path":2977,"stem":2978},{"title":2982,"path":2983,"stem":2984},"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":2986,"path":2987,"stem":2988},"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":2990,"path":2991,"stem":2992},"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":2994,"path":2995,"stem":2996,"children":2997},"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",[2998,2999,3003,3007,3011,3015,3019,3023,3027,3031,3035],{"title":2994,"path":2995,"stem":2996},{"title":3000,"path":3001,"stem":3002},"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":3004,"path":3005,"stem":3006},"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":3008,"path":3009,"stem":3010},"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":3012,"path":3013,"stem":3014},"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":3016,"path":3017,"stem":3018},"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":3020,"path":3021,"stem":3022},"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":3024,"path":3025,"stem":3026},"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":3028,"path":3029,"stem":3030},"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":3032,"path":3033,"stem":3034},"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":3036,"path":3037,"stem":3038},"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":3040,"path":3041,"stem":3042,"children":3043},"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",[3044,3045,3049,3053,3057,3061,3065,3069,3073],{"title":3040,"path":3041,"stem":3042},{"title":3046,"path":3047,"stem":3048},"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":3050,"path":3051,"stem":3052},"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":3054,"path":3055,"stem":3056},"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":3058,"path":3059,"stem":3060},"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":3062,"path":3063,"stem":3064},"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":3066,"path":3067,"stem":3068},"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":3070,"path":3071,"stem":3072},"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":3074,"path":3075,"stem":3076},"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":3078,"path":3079,"stem":3080,"children":3081},"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",[3082,3083,3086,3089,3092,3096,3099,3102,3105,3108,3112],{"title":3078,"path":3079,"stem":3080},{"title":3000,"path":3084,"stem":3085},"\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":3004,"path":3087,"stem":3088},"\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":3008,"path":3090,"stem":3091},"\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":3093,"path":3094,"stem":3095},"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":3016,"path":3097,"stem":3098},"\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":3020,"path":3100,"stem":3101},"\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":3024,"path":3103,"stem":3104},"\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":3028,"path":3106,"stem":3107},"\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":3109,"path":3110,"stem":3111},"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":3036,"path":3113,"stem":3114},"\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":3116,"path":3117,"stem":3118,"children":3119},"Rules","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frules","6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F01.index",[3120,3121,3125,3151,3169,3215,3253,3316,3370,3396,3450,3512,3566,3624,3686,3736,3776,3834,3864,3890,3912],{"title":3116,"path":3117,"stem":3118},{"title":3122,"path":3123,"stem":3124},"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":3126,"path":3127,"stem":3128,"children":3129},"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",[3130,3131,3135,3139,3143,3147],{"title":3126,"path":3127,"stem":3128},{"title":3132,"path":3133,"stem":3134},"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":3136,"path":3137,"stem":3138},"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":3140,"path":3141,"stem":3142},"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":3144,"path":3145,"stem":3146},"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":3148,"path":3149,"stem":3150},"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":3152,"path":3153,"stem":3154,"children":3155},"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",[3156,3157,3161,3165],{"title":3152,"path":3153,"stem":3154},{"title":3158,"path":3159,"stem":3160},"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":3162,"path":3163,"stem":3164},"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":3166,"path":3167,"stem":3168},"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":3170,"path":3171,"stem":3172,"children":3173},"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",[3174,3175,3179,3183,3187,3191,3195,3199,3203,3207,3211],{"title":3170,"path":3171,"stem":3172},{"title":3176,"path":3177,"stem":3178},"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":3180,"path":3181,"stem":3182},"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":3184,"path":3185,"stem":3186},"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":3188,"path":3189,"stem":3190},"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":3192,"path":3193,"stem":3194},"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":3196,"path":3197,"stem":3198},"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":3200,"path":3201,"stem":3202},"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":3204,"path":3205,"stem":3206},"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":3208,"path":3209,"stem":3210},"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":3212,"path":3213,"stem":3214},"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":3216,"path":3217,"stem":3218,"children":3219},"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",[3220,3221,3225,3229,3233,3237,3241,3245,3249],{"title":3216,"path":3217,"stem":3218},{"title":3222,"path":3223,"stem":3224},"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":3226,"path":3227,"stem":3228},"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":3230,"path":3231,"stem":3232},"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":3234,"path":3235,"stem":3236},"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":3238,"path":3239,"stem":3240},"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":3242,"path":3243,"stem":3244},"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":3246,"path":3247,"stem":3248},"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":3250,"path":3251,"stem":3252},"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":2962,"path":2963,"stem":2964,"children":3254},[3255,3256,3257,3258,3262,3266,3270,3274,3278,3282,3286,3290,3294,3298,3302,3306,3310,3314],{"title":2962,"path":2963,"stem":2964},{"title":30,"path":2956,"stem":2958},{"title":2966,"path":2920,"stem":2967},{"title":3259,"path":3260,"stem":3261},"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":3263,"path":3264,"stem":3265},"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":3267,"path":3268,"stem":3269},"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":3271,"path":3272,"stem":3273},"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":3275,"path":3276,"stem":3277},"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":3279,"path":3280,"stem":3281},"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":3283,"path":3284,"stem":3285},"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":3287,"path":3288,"stem":3289},"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":3291,"path":3292,"stem":3293},"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":3295,"path":3296,"stem":3297},"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":3299,"path":3300,"stem":3301},"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":3303,"path":3304,"stem":3305},"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":3307,"path":3308,"stem":3309},"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":3311,"path":3312,"stem":3313},"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":1348,"path":1347,"stem":3315},"6.sei-cert-oracle-coding-standard-for-java\u002F3.rules\u002F07.input-output-fio\u002F18.fio16-j",{"title":3317,"path":3318,"stem":3319,"children":3320},"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",[3321,3322,3326,3330,3334,3338,3342,3346,3350,3354,3358,3362,3366],{"title":3317,"path":3318,"stem":3319},{"title":3323,"path":3324,"stem":3325},"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":3327,"path":3328,"stem":3329},"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":3331,"path":3332,"stem":3333},"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":3335,"path":3336,"stem":3337},"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":3339,"path":3340,"stem":3341},"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":3343,"path":3344,"stem":3345},"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":3347,"path":3348,"stem":3349},"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":3351,"path":3352,"stem":3353},"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":3355,"path":3356,"stem":3357},"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":3359,"path":3360,"stem":3361},"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":3363,"path":3364,"stem":3365},"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":3367,"path":3368,"stem":3369},"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":3371,"path":3372,"stem":3373,"children":3374},"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",[3375,3376,3380,3384,3388,3392],{"title":3371,"path":3372,"stem":3373},{"title":3377,"path":3378,"stem":3379},"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":3381,"path":3382,"stem":3383},"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":3385,"path":3386,"stem":3387},"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":3389,"path":3390,"stem":3391},"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":3393,"path":3394,"stem":3395},"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":3397,"path":3398,"stem":3399,"children":3400},"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",[3401,3402,3406,3410,3414,3418,3422,3426,3430,3434,3438,3442,3446],{"title":3397,"path":3398,"stem":3399},{"title":3403,"path":3404,"stem":3405},"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":3407,"path":3408,"stem":3409},"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":3411,"path":3412,"stem":3413},"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":3415,"path":3416,"stem":3417},"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":3419,"path":3420,"stem":3421},"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":3423,"path":3424,"stem":3425},"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":3427,"path":3428,"stem":3429},"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":3431,"path":3432,"stem":3433},"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":3435,"path":3436,"stem":3437},"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":3439,"path":3440,"stem":3441},"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":3443,"path":3444,"stem":3445},"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":3447,"path":3448,"stem":3449},"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":3451,"path":3452,"stem":3453,"children":3454},"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",[3455,3456,3460,3464,3468,3472,3476,3480,3484,3488,3492,3496,3500,3504,3508],{"title":3451,"path":3452,"stem":3453},{"title":3457,"path":3458,"stem":3459},"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":3461,"path":3462,"stem":3463},"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":3465,"path":3466,"stem":3467},"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":3469,"path":3470,"stem":3471},"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":3473,"path":3474,"stem":3475},"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":3477,"path":3478,"stem":3479},"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":3481,"path":3482,"stem":3483},"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":3485,"path":3486,"stem":3487},"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":3489,"path":3490,"stem":3491},"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":3493,"path":3494,"stem":3495},"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":3497,"path":3498,"stem":3499},"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":3501,"path":3502,"stem":3503},"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":3505,"path":3506,"stem":3507},"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":3509,"path":3510,"stem":3511},"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":3513,"path":3514,"stem":3515,"children":3516},"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",[3517,3518,3522,3526,3530,3534,3538,3542,3546,3550,3554,3558,3562],{"title":3513,"path":3514,"stem":3515},{"title":3519,"path":3520,"stem":3521},"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":3523,"path":3524,"stem":3525},"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":3527,"path":3528,"stem":3529},"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":3531,"path":3532,"stem":3533},"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":3535,"path":3536,"stem":3537},"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":3539,"path":3540,"stem":3541},"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":3543,"path":3544,"stem":3545},"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":3547,"path":3548,"stem":3549},"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":3551,"path":3552,"stem":3553},"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":3555,"path":3556,"stem":3557},"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":3559,"path":3560,"stem":3561},"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":3563,"path":3564,"stem":3565},"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":3567,"path":3568,"stem":3569,"children":3570},"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",[3571,3572,3576,3580,3584,3588,3592,3596,3600,3604,3608,3612,3616,3620],{"title":3567,"path":3568,"stem":3569},{"title":3573,"path":3574,"stem":3575},"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":3577,"path":3578,"stem":3579},"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":3581,"path":3582,"stem":3583},"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":3585,"path":3586,"stem":3587},"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":3589,"path":3590,"stem":3591},"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":3593,"path":3594,"stem":3595},"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":3597,"path":3598,"stem":3599},"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":3601,"path":3602,"stem":3603},"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":3605,"path":3606,"stem":3607},"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":3609,"path":3610,"stem":3611},"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":3613,"path":3614,"stem":3615},"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":3617,"path":3618,"stem":3619},"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":3621,"path":3622,"stem":3623},"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":3625,"path":3626,"stem":3627,"children":3628},"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",[3629,3630,3634,3638,3642,3646,3650,3654,3658,3662,3666,3670,3674,3678,3682],{"title":3625,"path":3626,"stem":3627},{"title":3631,"path":3632,"stem":3633},"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":3635,"path":3636,"stem":3637},"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":3639,"path":3640,"stem":3641},"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":3643,"path":3644,"stem":3645},"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":3647,"path":3648,"stem":3649},"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":3651,"path":3652,"stem":3653},"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":3655,"path":3656,"stem":3657},"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":3659,"path":3660,"stem":3661},"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":3663,"path":3664,"stem":3665},"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":3667,"path":3668,"stem":3669},"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":3671,"path":3672,"stem":3673},"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":3675,"path":3676,"stem":3677},"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":3679,"path":3680,"stem":3681},"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":3683,"path":3684,"stem":3685},"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":3687,"path":3688,"stem":3689,"children":3690},"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",[3691,3692,3696,3700,3704,3708,3712,3716,3720,3724,3728,3732],{"title":3687,"path":3688,"stem":3689},{"title":3693,"path":3694,"stem":3695},"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":3697,"path":3698,"stem":3699},"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":3701,"path":3702,"stem":3703},"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":3705,"path":3706,"stem":3707},"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":3709,"path":3710,"stem":3711},"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":3713,"path":3714,"stem":3715},"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":3717,"path":3718,"stem":3719},"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":3721,"path":3722,"stem":3723},"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":3725,"path":3726,"stem":3727},"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":3729,"path":3730,"stem":3731},"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":3733,"path":3734,"stem":3735},"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":3737,"path":3738,"stem":3739,"children":3740},"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",[3741,3742,3746,3750,3754,3764,3768,3772],{"title":3737,"path":3738,"stem":3739},{"title":3743,"path":3744,"stem":3745},"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":3747,"path":3748,"stem":3749},"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":3751,"path":3752,"stem":3753},"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":3755,"path":3756,"stem":3757,"children":3758},"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",[3759,3760],{"title":3755,"path":3756,"stem":3757},{"title":3761,"path":3762,"stem":3763},"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":3765,"path":3766,"stem":3767},"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":3769,"path":3770,"stem":3771},"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":3773,"path":3774,"stem":3775},"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":3777,"path":3778,"stem":3779,"children":3780},"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",[3781,3782,3786,3790,3794,3798,3802,3806,3810,3814,3818,3822,3826,3830],{"title":3777,"path":3778,"stem":3779},{"title":3783,"path":3784,"stem":3785},"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":3787,"path":3788,"stem":3789},"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":3791,"path":3792,"stem":3793},"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":3795,"path":3796,"stem":3797},"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":3799,"path":3800,"stem":3801},"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":3803,"path":3804,"stem":3805},"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":3807,"path":3808,"stem":3809},"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":3811,"path":3812,"stem":3813},"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":3815,"path":3816,"stem":3817},"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":3819,"path":3820,"stem":3821},"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":3823,"path":3824,"stem":3825},"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":3827,"path":3828,"stem":3829},"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":3831,"path":3832,"stem":3833},"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":3835,"path":3836,"stem":3837,"children":3838},"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",[3839,3840,3844,3848,3852,3856,3860],{"title":3835,"path":3836,"stem":3837},{"title":3841,"path":3842,"stem":3843},"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":3845,"path":3846,"stem":3847},"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":3849,"path":3850,"stem":3851},"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":3853,"path":3854,"stem":3855},"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":3857,"path":3858,"stem":3859},"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":3861,"path":3862,"stem":3863},"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":3865,"path":3866,"stem":3867,"children":3868},"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",[3869,3870,3874,3878,3882,3886],{"title":3865,"path":3866,"stem":3867},{"title":3871,"path":3872,"stem":3873},"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":3875,"path":3876,"stem":3877},"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":3879,"path":3880,"stem":3881},"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":3883,"path":3884,"stem":3885},"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":3887,"path":3888,"stem":3889},"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":3891,"path":3892,"stem":3893,"children":3894},"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",[3895,3896,3900,3904,3908],{"title":3891,"path":3892,"stem":3893},{"title":3897,"path":3898,"stem":3899},"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":3901,"path":3902,"stem":3903},"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":3905,"path":3906,"stem":3907},"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":3909,"path":3910,"stem":3911},"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":3913,"path":3914,"stem":3915,"children":3916},"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",[3917,3918,3922,3926,3930,3934,3938],{"title":3913,"path":3914,"stem":3915},{"title":3919,"path":3920,"stem":3921},"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":3923,"path":3924,"stem":3925},"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":3927,"path":3928,"stem":3929},"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":3931,"path":3932,"stem":3933},"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":3935,"path":3936,"stem":3937},"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":3939,"path":3940,"stem":3941},"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":3943,"path":3944,"stem":3945,"children":3946},"Recommendations","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F01.index",[3947,3948,3961,3979,4032,4057,4086,4107,4140,4173,4234,4259,4300],{"title":3943,"path":3944,"stem":3945},{"title":3126,"path":3949,"stem":3950,"children":3951},"\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",[3952,3953,3957],{"title":3126,"path":3949,"stem":3950},{"title":3954,"path":3955,"stem":3956},"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":3958,"path":3959,"stem":3960},"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":3962,"path":3963,"stem":3964,"children":3965},"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",[3966,3967,3971,3975],{"title":3962,"path":3963,"stem":3964},{"title":3968,"path":3969,"stem":3970},"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":3972,"path":3973,"stem":3974},"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":3976,"path":3977,"stem":3978},"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":3152,"path":3980,"stem":3981,"children":3982},"\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",[3983,3984,3988,3992,3996,4000,4004,4008,4012,4016,4020,4024,4028],{"title":3152,"path":3980,"stem":3981},{"title":3985,"path":3986,"stem":3987},"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":3989,"path":3990,"stem":3991},"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":3993,"path":3994,"stem":3995},"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":3997,"path":3998,"stem":3999},"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":4001,"path":4002,"stem":4003},"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":4005,"path":4006,"stem":4007},"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":4009,"path":4010,"stem":4011},"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":4013,"path":4014,"stem":4015},"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":4017,"path":4018,"stem":4019},"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":4021,"path":4022,"stem":4023},"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":4025,"path":4026,"stem":4027},"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":4029,"path":4030,"stem":4031},"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":3170,"path":4033,"stem":4034,"children":4035},"\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",[4036,4037,4041,4045,4049,4053],{"title":3170,"path":4033,"stem":4034},{"title":4038,"path":4039,"stem":4040},"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":4042,"path":4043,"stem":4044},"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":4046,"path":4047,"stem":4048},"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":4050,"path":4051,"stem":4052},"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":4054,"path":4055,"stem":4056},"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":3216,"path":4058,"stem":4059,"children":4060},"\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",[4061,4062,4066,4070,4074,4078,4082],{"title":3216,"path":4058,"stem":4059},{"title":4063,"path":4064,"stem":4065},"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":4067,"path":4068,"stem":4069},"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":4071,"path":4072,"stem":4073},"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":4075,"path":4076,"stem":4077},"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":4079,"path":4080,"stem":4081},"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":4083,"path":4084,"stem":4085},"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":2962,"path":4087,"stem":4088,"children":4089},"\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",[4090,4091,4095,4099,4103],{"title":2962,"path":4087,"stem":4088},{"title":4092,"path":4093,"stem":4094},"FIO50-J. Do not make assumptions about file creation","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio50-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F2.fio50-j",{"title":4096,"path":4097,"stem":4098},"FIO51-J. Identify files using multiple file attributes","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio51-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F3.fio51-j",{"title":4100,"path":4101,"stem":4102},"FIO52-J. Do not store unencrypted sensitive information on the client side","\u002Fsei-cert-oracle-coding-standard-for-java\u002Frecommendations\u002Finput-output-fio\u002Ffio52-j","6.sei-cert-oracle-coding-standard-for-java\u002F4.recommendations\u002F07.input-output-fio\u002F4.fio52-j",{"title":4104,"path":4105,"stem":4106},"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":3317,"path":4108,"stem":4109,"children":4110},"\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",[4111,4112,4116,4120,4124,4128,4132,4136],{"title":3317,"path":4108,"stem":4109},{"title":4113,"path":4114,"stem":4115},"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":4117,"path":4118,"stem":4119},"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":4121,"path":4122,"stem":4123},"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":4125,"path":4126,"stem":4127},"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":4129,"path":4130,"stem":4131},"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":4133,"path":4134,"stem":4135},"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":4137,"path":4138,"stem":4139},"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":3451,"path":4141,"stem":4142,"children":4143},"\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",[4144,4145,4149,4153,4157,4161,4165,4169],{"title":3451,"path":4141,"stem":4142},{"title":4146,"path":4147,"stem":4148},"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":4150,"path":4151,"stem":4152},"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":4154,"path":4155,"stem":4156},"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":4158,"path":4159,"stem":4160},"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":4162,"path":4163,"stem":4164},"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":4166,"path":4167,"stem":4168},"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":4170,"path":4171,"stem":4172},"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":3513,"path":4174,"stem":4175,"children":4176},"\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",[4177,4178,4182,4186,4190,4194,4198,4202,4206,4210,4214,4218,4222,4226,4230],{"title":3513,"path":4174,"stem":4175},{"title":4179,"path":4180,"stem":4181},"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":4183,"path":4184,"stem":4185},"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":4187,"path":4188,"stem":4189},"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":4191,"path":4192,"stem":4193},"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":4195,"path":4196,"stem":4197},"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":4199,"path":4200,"stem":4201},"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":4203,"path":4204,"stem":4205},"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":4207,"path":4208,"stem":4209},"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":4211,"path":4212,"stem":4213},"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":4215,"path":4216,"stem":4217},"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":4219,"path":4220,"stem":4221},"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":4223,"path":4224,"stem":4225},"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":4227,"path":4228,"stem":4229},"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":4231,"path":4232,"stem":4233},"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":3567,"path":4235,"stem":4236,"children":4237},"\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",[4238,4239,4243,4247,4251,4255],{"title":3567,"path":4235,"stem":4236},{"title":4240,"path":4241,"stem":4242},"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":4244,"path":4245,"stem":4246},"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":4248,"path":4249,"stem":4250},"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":4252,"path":4253,"stem":4254},"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":4256,"path":4257,"stem":4258},"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":3625,"path":4260,"stem":4261,"children":4262},"\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",[4263,4264,4268,4272,4276,4280,4284,4288,4292,4296],{"title":3625,"path":4260,"stem":4261},{"title":4265,"path":4266,"stem":4267},"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":4269,"path":4270,"stem":4271},"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":4273,"path":4274,"stem":4275},"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":4277,"path":4278,"stem":4279},"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":4281,"path":4282,"stem":4283},"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":4285,"path":4286,"stem":4287},"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":4289,"path":4290,"stem":4291},"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":4293,"path":4294,"stem":4295},"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":4297,"path":4298,"stem":4299},"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":3687,"path":4301,"stem":4302,"children":4303},"\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",[4304,4305,4309,4313,4317,4321,4325,4329,4333,4337],{"title":3687,"path":4301,"stem":4302},{"title":4306,"path":4307,"stem":4308},"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":4310,"path":4311,"stem":4312},"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":4314,"path":4315,"stem":4316},"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":4318,"path":4319,"stem":4320},"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":4322,"path":4323,"stem":4324},"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":4326,"path":4327,"stem":4328},"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":4330,"path":4331,"stem":4332},"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":4334,"path":4335,"stem":4336},"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":4338,"path":4339,"stem":4340},"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":4342,"path":4343,"stem":4344,"children":4345},"Back Matter","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fback-matter","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F1.index",[4346,4347,4351,4355,4359,4362,4486,4511],{"title":4342,"path":4343,"stem":4344},{"title":4348,"path":4349,"stem":4350},"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":4352,"path":4353,"stem":4354},"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":4356,"path":4357,"stem":4358},"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":4360,"path":48,"stem":4361},"Rule BB. Glossary","6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F5.rule-bb-glossary",{"title":4363,"path":4364,"stem":4365,"children":4366},"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",[4367,4368,4372,4376,4380,4384,4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4440,4444,4448,4450,4454,4458,4462,4466,4470,4474,4478,4482],{"title":4363,"path":4364,"stem":4365},{"title":4369,"path":4370,"stem":4371},"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":4373,"path":4374,"stem":4375},"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":4377,"path":4378,"stem":4379},"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":4381,"path":4382,"stem":4383},"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":4385,"path":4386,"stem":4387},"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":4389,"path":4390,"stem":4391},"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":4393,"path":4394,"stem":4395},"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":4397,"path":4398,"stem":4399},"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":4401,"path":4402,"stem":4403},"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":4405,"path":4406,"stem":4407},"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":4409,"path":4410,"stem":4411},"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":4413,"path":4414,"stem":4415},"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":4417,"path":4418,"stem":4419},"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":4421,"path":4422,"stem":4423},"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":4425,"path":4426,"stem":4427},"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":4429,"path":4430,"stem":4431},"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":4433,"path":4434,"stem":4435},"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":4437,"path":4438,"stem":4439},"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":4441,"path":4442,"stem":4443},"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":4445,"path":4446,"stem":4447},"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":2623,"path":2622,"stem":4449},"6.sei-cert-oracle-coding-standard-for-java\u002F5.back-matter\u002F6.rule-or-rec-cc-analyzers\u002F22.security-reviewer-static-reviewer",{"title":4451,"path":4452,"stem":4453},"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":4455,"path":4456,"stem":4457},"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":4459,"path":4460,"stem":4461},"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":4463,"path":4464,"stem":4465},"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":4467,"path":4468,"stem":4469},"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":4471,"path":4472,"stem":4473},"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":4475,"path":4476,"stem":4477},"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":4479,"path":4480,"stem":4481},"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":4483,"path":4484,"stem":4485},"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":4487,"path":4488,"stem":4489,"children":4490},"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",[4491,4492,4496,4500,4504,4507],{"title":4487,"path":4488,"stem":4489},{"title":4493,"path":4494,"stem":4495},"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":4497,"path":4498,"stem":4499},"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":4501,"path":4502,"stem":4503},"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":2679,"path":4505,"stem":4506},"\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":4508,"path":4509,"stem":4510},"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":4512,"path":4513,"stem":4514},"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":4516,"path":4517,"stem":4518,"children":4519},"Admin","\u002Fsei-cert-oracle-coding-standard-for-java\u002Fadmin","6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F1.index",[4520,4521,4525,4529,4533,4537],{"title":4516,"path":4517,"stem":4518},{"title":4522,"path":4523,"stem":4524},"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":4526,"path":4527,"stem":4528},"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":4530,"path":4531,"stem":4532},"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":4534,"path":4535,"stem":4536},"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":4534,"path":4535,"stem":4538},"6.sei-cert-oracle-coding-standard-for-java\u002F6.admin\u002F6.todo-list",1775657819389]