Skip to content

Commit d322873

Browse files
committed
LogRecords.java, line 146 (XML External Entity Injection) - Fortify
1 parent abfeac0 commit d322873

File tree

1 file changed

+2
-0
lines changed
  • visualvm/libs.profiler/profiler.snaptracer/src/org/graalvm/visualvm/lib/profiler/snaptracer/logs

1 file changed

+2
-0
lines changed

visualvm/libs.profiler/profiler.snaptracer/src/org/graalvm/visualvm/lib/profiler/snaptracer/logs/LogRecords.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ public static void scan(InputStream is, Handler h) throws IOException {
129129
try{
130130
f.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
131131
f.setFeature("http://apache.org/xml/features/continue-after-fatal-error", true); // NOI18N
132+
f.setFeature("http://xml.org/sax/features/external-general-entities", false); // NOI18N
133+
f.setFeature("http://xml.org/sax/features/external-parameter-entities", false); // NOI18N
132134
}catch (SAXNotRecognizedException snre){
133135
LOG.log(Level.INFO, null, snre);
134136
}

0 commit comments

Comments
 (0)