Ghidra is a software reverse engineering (SRE) framework
GP-1248: Disabling ContinuesIntercepter by default
Ryan Kurtz52fbe65040aa
diff --git a/Ghidra/Features/Base/.launch/Ghidra.launch b/Ghidra/Features/Base/.launch/Ghidra.launchindex e9f428a5d1..57ffb40efd 100644--- a/Ghidra/Features/Base/.launch/Ghidra.launch+++ b/Ghidra/Features/Base/.launch/Ghidra.launch@@ -30,5 +30,5 @@<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="Framework Utility"/><stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="ghidra.GhidraRun"/><stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Framework Utility"/>- <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XX:+IgnoreUnrecognizedVMOptions -Djava.system.class.loader=ghidra.GhidraClassLoader -Xshare:off -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Dsun.java2d.pmoffscreen=false -Dsun.java2d.xrender=true -Dsun.java2d.d3d=false -Xdock:name="Ghidra" -Dvisualvm.display.name=Ghidra -Dpython.console.encoding=UTF-8 -DContinuesInterceptor.disabled=true --illegal-access=permit"/>+ <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XX:+IgnoreUnrecognizedVMOptions -Djava.system.class.loader=ghidra.GhidraClassLoader -Xshare:off -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Dsun.java2d.pmoffscreen=false -Dsun.java2d.xrender=true -Dsun.java2d.d3d=false -Xdock:name="Ghidra" -Dvisualvm.display.name=Ghidra -Dpython.console.encoding=UTF-8 --illegal-access=permit"/></launchConfiguration>diff --git a/Ghidra/Framework/Generic/src/main/java/generic/continues/ContinuesFactory.java b/Ghidra/Framework/Generic/src/main/java/generic/continues/ContinuesFactory.javaindex fea0d21187..f8b017a25e 100644--- a/Ghidra/Framework/Generic/src/main/java/generic/continues/ContinuesFactory.java+++ b/Ghidra/Framework/Generic/src/main/java/generic/continues/ContinuesFactory.java@@ -21,7 +21,7 @@ import net.sf.cglib.proxy.Enhancer;public class ContinuesFactory implements GenericFactory {- private static final boolean disabled = Boolean.getBoolean("ContinuesInterceptor.disabled");+ private static final boolean enabled = Boolean.getBoolean("ContinuesInterceptor.enabled");private ExceptionHandler exceptionHandler;@@ -36,7 +36,7 @@ public class ContinuesFactory implements GenericFactory {public Object create(Class<?> type, Object... args) {try {Object thing;- if (disabled) {+ if (!enabled) {Constructor<?> c = type.getConstructor(new Class<?>[0]);thing = c.newInstance(args);}diff --git a/Ghidra/RuntimeScripts/Common/support/launch.properties b/Ghidra/RuntimeScripts/Common/support/launch.propertiesindex 19a22926f8..75f6b8fbb9 100644--- a/Ghidra/RuntimeScripts/Common/support/launch.properties+++ b/Ghidra/RuntimeScripts/Common/support/launch.properties@@ -101,9 +101,9 @@ VMARGS=--illegal-access=permit#VMARGS=-Ddisable.alternating.row.colors=true# The ContinuesInterceptor allows the import process to proceed if parsing corrupted headers-# generates uncaught exceptions. Disabling it can be helpful when trying to debug what went-# wrong because the ContinuesIntercepter affects the usefulness of the stack trace.-#VMARGS=-DContinuesInterceptor.disabled=true+# generates uncaught exceptions. Its usage has been deprecated and will be removed in a future+# release of Ghidra. It is disabled by default.+#VMARGS=-DContinuesInterceptor.enabled=true# Limit on XML parsing. See https://docs.oracle.com/javase/tutorial/jaxp/limits/limits.html#VMARGS=-Djdk.xml.totalEntitySizeLimit=50000000