Skip to content

[gui] Regex search starting with '(' causes jadx-gui to freeze #2685

@MVZ1

Description

@MVZ1

Issue details

Describe:
Regex search starting with '(' causes jadx-gui to freeze

How to reproduce:

  1. Open jadx-gui, load any file, and navigate to the code view of a specific file.
  2. Press Fn + F to open the current file's search bar, then enable regex mode.
  3. Type content starting with "(" in the search box (e.g., type "(test". The interface freezes immediately and becomes unresponsive.

Below is the log:
Jadx version : 1.5.3
Java version : 24.0.2
Java VM : Oracle Corporation Java HotSpot(TM) 64-Bit Server VM
Platform : Windows 11 (10.0 amd64)
Max heap size: 11280 MB

java.lang.StackOverflowError
at java.base/java.lang.Long.toString(Unknown Source)
at java.base/java.lang.Long.toString(Unknown Source)
at java.base/java.util.Formatter$FormatSpecifier.print(Unknown Source)
at java.base/java.util.Formatter$FormatSpecifier.print(Unknown Source)
at java.base/java.util.Formatter$FormatSpecifier.printInteger(Unknown Source)
at java.base/java.util.Formatter$FormatSpecifier.print(Unknown Source)
at java.base/java.util.Formatter.format(Unknown Source)
at java.base/java.util.Formatter.format(Unknown Source)
at java.base/java.lang.String.format(Unknown Source)
at jadx.gui.utils.NLS.str(NLS.java:78)
at jadx.gui.ui.codearea.SearchBar.setResultCount(SearchBar.java:237)
at jadx.gui.ui.codearea.SearchBar.search(SearchBar.java:208)
at jadx.gui.ui.codearea.SearchBar.search(SearchBar.java:221)
at jadx.gui.ui.codearea.SearchBar.search(SearchBar.java:221)
......(many many "at jadx.gui.ui.codearea.SearchBar.search(SearchBar.java:221)")

I tested many APKs and this problem occurred in all of them. Here is one of the faulty APKs I provided.

核心破解.zip
核心破解.apk.zip

Jadx version

1.5.3

Java version

24.0.2

OS

  • Windows
  • Linux
  • macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIIssues in jadx-gui modulebug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions