From bace9936f61a33f46c3fe8a6140e950fb96d8517 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Thu, 2 Sep 2021 14:58:06 -0400 Subject: [PATCH] GP-1276: avoiding the stack overflow --- .../core/byteviewer/ProgramByteViewerComponentProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ProgramByteViewerComponentProvider.java b/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ProgramByteViewerComponentProvider.java index b7dc9b7f76..6fcdfaa71e 100644 --- a/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ProgramByteViewerComponentProvider.java +++ b/Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ProgramByteViewerComponentProvider.java @@ -162,7 +162,7 @@ public class ProgramByteViewerComponentProvider extends ByteViewerComponentProvi @Override public String getTextSelection() { - return getTextSelection(); + return getCurrentTextSelection(); } private void setSelection(ProgramSelection selection, boolean notify) { @@ -433,8 +433,7 @@ public class ProgramByteViewerComponentProvider extends ByteViewerComponentProvi } /** - * Called when the memory in the current program changes, from the domain - * object listener. + * Called when the memory in the current program changes, from the domain object listener. */ void memoryConfigurationChanged() { ProgramLocation location = currentLocation; @@ -519,6 +518,7 @@ public class ProgramByteViewerComponentProvider extends ByteViewerComponentProvi /** * Gets the text of the current {@link ProgramSelection} + * * @return the text */ String getCurrentTextSelection() {