You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using single quotes in the mangled_name variable of the demangle_swift_name() function affected the correct naming of Swift functions when processed in Ghidra. This issue caused functions to appear with single quotes within the platform itself, which caused confusion when viewed in the Symbol Tree.
To resolve this issue, I removed the single quotes contained in the mangled_name variable.
After making this modification, the function has been working correctly.
def demangle_swift_name(mangled_name):
os_name = System.getProperty("os.name").lower()
# Determine the correct command based on the OS
if "mac" in os_name:
cmd = 'xcrun swift-demangle --simplified --compact'
**mangled_name = "{}".format(mangled_name) # Surround with single quotes**
else:
cmd = 'swift-demangle --simplified --compact'
The text was updated successfully, but these errors were encountered:
CainSoulless
changed the title
Single Quotes Surrounding issue
Single Quotes Surrounding issue on Mac
Jul 30, 2024
Using single quotes in the
mangled_name
variable of thedemangle_swift_name()
function affected the correct naming of Swift functions when processed in Ghidra. This issue caused functions to appear with single quotes within the platform itself, which caused confusion when viewed in the Symbol Tree.To resolve this issue, I removed the single quotes contained in the
mangled_name
variable.After making this modification, the function has been working correctly.
The text was updated successfully, but these errors were encountered: