mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
430 lines
16 KiB
HTML
430 lines
16 KiB
HTML
<!DOCTYPE html>
|
|
<!--
|
|
| Generated by Apache Maven Doxia Site Renderer 1.7.1 at 2016-09-06
|
|
| Rendered using Apache Maven Fluido Skin 1.5
|
|
-->
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="Date-Revision-yyyymmdd" content="20160906" />
|
|
<meta http-equiv="Content-Language" content="en" />
|
|
<title>dependency-check-core – CPD Results</title>
|
|
<link rel="stylesheet" href="./css/apache-maven-fluido-1.5.min.css" />
|
|
<link rel="stylesheet" href="./css/site.css" />
|
|
<link rel="stylesheet" href="./css/print.css" media="print" />
|
|
|
|
|
|
<script type="text/javascript" src="./js/apache-maven-fluido-1.5.min.js"></script>
|
|
|
|
<style type="text/css">
|
|
#bannerLeft { margin-top:-20px;margin-bottom:5px !important }
|
|
</style>
|
|
</head>
|
|
<body class="topBarDisabled">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="https://github.com/jeremylong/DependencyCheck">
|
|
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
|
|
src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
|
|
alt="Fork me on GitHub">
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
<div id="banner">
|
|
<div class="pull-left">
|
|
<div id="bannerLeft">
|
|
<img src="images/dc-core.svg" alt="OWASP dependency-check-core"/>
|
|
</div>
|
|
</div>
|
|
<div class="pull-right"> </div>
|
|
<div class="clear"><hr/></div>
|
|
</div>
|
|
|
|
<div id="breadcrumbs">
|
|
<ul class="breadcrumb">
|
|
|
|
<li class="">
|
|
<a href="../../../../../../target/site/1.4.3/#" title="">
|
|
</a>
|
|
<span class="divider">/</span>
|
|
</li>
|
|
<li class="">
|
|
<a href="../index.html" title="dependency-check">
|
|
dependency-check</a>
|
|
<span class="divider">/</span>
|
|
</li>
|
|
<li class="active ">CPD Results</li>
|
|
|
|
|
|
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published: 2016-09-06</li>
|
|
<li id="projectVersion" class="pull-right">
|
|
Version: 1.4.3
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div class="row-fluid">
|
|
<div id="leftColumn" class="span2">
|
|
<div class="well sidebar-nav">
|
|
|
|
<ul class="nav nav-list">
|
|
|
|
<li>
|
|
|
|
<a href="index.html" title="About">
|
|
<span class="none"></span>
|
|
About</a>
|
|
</li>
|
|
<li class="nav-header">Project Documentation</li>
|
|
|
|
<li>
|
|
|
|
<a href="project-info.html" title="Project Information">
|
|
<span class="icon-chevron-right"></span>
|
|
Project Information</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="project-reports.html" title="Project Reports">
|
|
<span class="icon-chevron-down"></span>
|
|
Project Reports</a>
|
|
<ul class="nav nav-list">
|
|
|
|
<li>
|
|
|
|
<a href="dependency-analysis.html" title="Dependency Analysis">
|
|
<span class="none"></span>
|
|
Dependency Analysis</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="apidocs/index.html" title="JavaDocs">
|
|
<span class="none"></span>
|
|
JavaDocs</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="xref/index.html" title="Source Xref">
|
|
<span class="none"></span>
|
|
Source Xref</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="xref-test/index.html" title="Test Source Xref">
|
|
<span class="none"></span>
|
|
Test Source Xref</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="surefire-report.html" title="Surefire Report">
|
|
<span class="none"></span>
|
|
Surefire Report</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="failsafe-report.html" title="Failsafe Report">
|
|
<span class="none"></span>
|
|
Failsafe Report</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="cobertura/index.html" title="Cobertura Test Coverage">
|
|
<span class="none"></span>
|
|
Cobertura Test Coverage</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="findbugs.html" title="FindBugs">
|
|
<span class="none"></span>
|
|
FindBugs</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="taglist.html" title="Tag List">
|
|
<span class="none"></span>
|
|
Tag List</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="dependency-updates-report.html" title="Dependency Updates Report">
|
|
<span class="none"></span>
|
|
Dependency Updates Report</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="plugin-updates-report.html" title="Plugin Updates Report">
|
|
<span class="none"></span>
|
|
Plugin Updates Report</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="checkstyle.html" title="Checkstyle">
|
|
<span class="none"></span>
|
|
Checkstyle</a>
|
|
</li>
|
|
|
|
<li class="active">
|
|
|
|
<a href="#"><span class="none"></span>CPD</a>
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="pmd.html" title="PMD">
|
|
<span class="none"></span>
|
|
PMD</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<hr />
|
|
|
|
<div id="poweredBy">
|
|
|
|
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
|
|
|
|
|
<div class="g-plusone" data-href="https://github.com/jeremylong/DependencyCheck.git/dependency-check-core" data-size="tall" ></div>
|
|
|
|
<div class="clear"></div>
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
<div id="twitter">
|
|
|
|
<a href="https://twitter.com/ctxt" class="twitter-follow-button" data-show-count="true" data-align="left" data-size="medium" data-show-screen-name="true" data-lang="en">Follow ctxt</a>
|
|
<script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
<div class="clear"></div>
|
|
<a href="http://maven.apache.org/" title="Maven" class="builtBy">
|
|
<img class="builtBy" alt="built with maven" src="http://jeremylong.github.io/DependencyCheck/images/logos/maven-feather.png" />
|
|
</a>
|
|
<a href="http://www.jetbrains.com/idea/" title="IntelliJ" class="builtBy">
|
|
<img class="builtBy" alt="developed using" src="http://jeremylong.github.io/DependencyCheck/images/logos/logo_intellij_idea.png" width="170px" />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="bodyColumn" class="span10" >
|
|
|
|
<div class="section">
|
|
<h2><a name="CPD_Results"></a>CPD Results</h2>
|
|
<p>The following document contains the results of PMD's <a class="externalLink" href="http://pmd.sourceforge.net/cpd.html">CPD</a> 5.3.5.</p></div>
|
|
<div class="section">
|
|
<h2><a name="Duplications"></a>Duplications</h2>
|
|
<table border="0" class="table table-striped">
|
|
<tr class="a">
|
|
<th>File</th>
|
|
<th>Line</th></tr>
|
|
<tr class="b">
|
|
<td>org\owasp\dependencycheck\data\update\CpeUpdater.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/data/update/CpeUpdater.html#L161">161</a></td></tr>
|
|
<tr class="a">
|
|
<td>org\owasp\dependencycheck\data\update\nvd\DownloadTask.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/data/update/nvd/DownloadTask.html#L271">271</a></td></tr>
|
|
<tr class="b"><td colspan='2'>
|
|
<div>
|
|
<pre> LOGGER.debug("Failed to delete intial temporary file {}", gzip.toString());
|
|
gzip.deleteOnExit();
|
|
}
|
|
if (!file.renameTo(gzip)) {
|
|
throw new IOException("Unable to rename '" + file.getPath() + "'");
|
|
}
|
|
final File newfile = new File(originalPath);
|
|
|
|
final byte[] buffer = new byte[4096];
|
|
|
|
GZIPInputStream cin = null;
|
|
FileOutputStream out = null;
|
|
try {
|
|
cin = new GZIPInputStream(new FileInputStream(gzip));
|
|
out = new FileOutputStream(newfile);
|
|
|
|
int len;
|
|
while ((len = cin.read(buffer)) > 0) {
|
|
out.write(buffer, 0, len);
|
|
}
|
|
} finally {
|
|
if (cin != null) {
|
|
try {
|
|
cin.close();
|
|
} catch (IOException ex) {
|
|
LOGGER.trace("ignore", ex);
|
|
}
|
|
}
|
|
if (out != null) {
|
|
try {
|
|
out.close();
|
|
} catch (IOException ex) {
|
|
LOGGER.trace("ignore", ex);
|
|
}
|
|
}
|
|
if (gzip.isFile() && !FileUtils.deleteQuietly(gzip)) {
|
|
LOGGER.debug("Failed to delete temporary file {}", gzip.toString());</pre></div></td></tr></table>
|
|
<table border="0" class="table table-striped">
|
|
<tr class="a">
|
|
<th>File</th>
|
|
<th>Line</th></tr>
|
|
<tr class="b">
|
|
<td>org\owasp\dependencycheck\xml\hints\HintErrorHandler.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/xml/hints/HintErrorHandler.html#L44">44</a></td></tr>
|
|
<tr class="a">
|
|
<td>org\owasp\dependencycheck\xml\suppression\SuppressionErrorHandler.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/xml/suppression/SuppressionErrorHandler.html#L42">42</a></td></tr>
|
|
<tr class="b"><td colspan='2'>
|
|
<div>
|
|
<pre> private String getPrettyParseExceptionInfo(SAXParseException ex) {
|
|
|
|
final StringBuilder sb = new StringBuilder();
|
|
|
|
if (ex.getSystemId() != null) {
|
|
sb.append("systemId=").append(ex.getSystemId()).append(", ");
|
|
}
|
|
if (ex.getPublicId() != null) {
|
|
sb.append("publicId=").append(ex.getPublicId()).append(", ");
|
|
}
|
|
if (ex.getLineNumber() > 0) {
|
|
sb.append("Line=").append(ex.getLineNumber());
|
|
}
|
|
if (ex.getColumnNumber() > 0) {
|
|
sb.append(", Column=").append(ex.getColumnNumber());
|
|
}
|
|
sb.append(": ").append(ex.getMessage());
|
|
|
|
return sb.toString();
|
|
}
|
|
|
|
/**
|
|
* Logs warnings.
|
|
*
|
|
* @param ex the warning to log
|
|
* @throws SAXException is never thrown
|
|
*/
|
|
@Override
|
|
public void warning(SAXParseException ex) throws SAXException {</pre></div></td></tr></table>
|
|
<table border="0" class="table table-striped">
|
|
<tr class="a">
|
|
<th>File</th>
|
|
<th>Line</th></tr>
|
|
<tr class="b">
|
|
<td>org\owasp\dependencycheck\xml\suppression\SuppressionParser.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/xml/suppression/SuppressionParser.html#L126">126</a></td></tr>
|
|
<tr class="a">
|
|
<td>org\owasp\dependencycheck\xml\suppression\SuppressionParser.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/xml/suppression/SuppressionParser.html#L183">183</a></td></tr>
|
|
<tr class="b"><td colspan='2'>
|
|
<div>
|
|
<pre> schemaStream = this.getClass().getClassLoader().getResourceAsStream(SUPPRESSION_SCHEMA);
|
|
final SuppressionHandler handler = new SuppressionHandler();
|
|
final SAXParserFactory factory = SAXParserFactory.newInstance();
|
|
factory.setNamespaceAware(true);
|
|
factory.setValidating(true);
|
|
final SAXParser saxParser = factory.newSAXParser();
|
|
saxParser.setProperty(SuppressionParser.JAXP_SCHEMA_LANGUAGE, SuppressionParser.W3C_XML_SCHEMA);
|
|
saxParser.setProperty(SuppressionParser.JAXP_SCHEMA_SOURCE, new InputSource(schemaStream));
|
|
final XMLReader xmlReader = saxParser.getXMLReader();
|
|
xmlReader.setErrorHandler(new SuppressionErrorHandler());
|
|
xmlReader.setContentHandler(handler);
|
|
|
|
final Reader reader = new InputStreamReader(inputStream, "UTF-8");
|
|
final InputSource in = new InputSource(reader);
|
|
//in.setEncoding("UTF-8");
|
|
|
|
xmlReader.parse(in);
|
|
|
|
return handler.getSuppressionRules();
|
|
} catch (ParserConfigurationException ex) {
|
|
LOGGER.debug("", ex);
|
|
throw new SuppressionParseException(ex);
|
|
} catch (SAXException ex) {</pre></div></td></tr></table>
|
|
<table border="0" class="table table-striped">
|
|
<tr class="a">
|
|
<th>File</th>
|
|
<th>Line</th></tr>
|
|
<tr class="b">
|
|
<td>org\owasp\dependencycheck\analyzer\ArchiveAnalyzer.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/analyzer/ArchiveAnalyzer.html#L182">182</a></td></tr>
|
|
<tr class="a">
|
|
<td>org\owasp\dependencycheck\analyzer\PythonDistributionAnalyzer.java</td>
|
|
<td><a href="./xref/org/owasp/dependencycheck/analyzer/PythonDistributionAnalyzer.html#L247">247</a></td></tr>
|
|
<tr class="b"><td colspan='2'>
|
|
<div>
|
|
<pre> public void initializeFileTypeAnalyzer() throws InitializationException {
|
|
try {
|
|
final File baseDir = Settings.getTempDirectory();
|
|
tempFileLocation = File.createTempFile("check", "tmp", baseDir);
|
|
if (!tempFileLocation.delete()) {
|
|
setEnabled(false);
|
|
final String msg = String.format("Unable to delete temporary file '%s'.", tempFileLocation.getAbsolutePath());
|
|
throw new InitializationException(msg);
|
|
}
|
|
if (!tempFileLocation.mkdirs()) {
|
|
setEnabled(false);
|
|
final String msg = String.format("Unable to create directory '%s'.", tempFileLocation.getAbsolutePath());
|
|
throw new InitializationException(msg);
|
|
}
|
|
} catch (IOException ex) {
|
|
setEnabled(false);
|
|
throw new InitializationException("Unable to create a temporary file", ex);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* The close method deletes any temporary files and directories created
|
|
* during analysis.
|
|
*
|
|
* @throws Exception thrown if there is an exception deleting temporary
|
|
* files
|
|
*/
|
|
@Override
|
|
public void close() throws Exception {</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<footer>
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<p >Copyright © 2012–2016
|
|
<a href="http://www.owasp.org">OWASP</a>.
|
|
All rights reserved.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|