Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip over the instructions found via this method so the single chars don't get p... #107

Open
github-actions bot opened this issue Feb 24, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

Skip over the instructions found via this method so the single chars don't get printed

// TODO: Skip over the instructions found via this method so the single chars don't get printed

    private void handleMethod(ClassNode classNode, MethodNode methodNode) {
        List<String> strings = new ArrayList<>();
        for (AbstractInsnNode instruction : methodNode.instructions) {
            String string = "";
            if (instruction instanceof LdcInsnNode ldcInsnNode && ldcInsnNode.cst instanceof String) {
                string = (String) ldcInsnNode.cst;
            } else {
                // TODO: Skip over the instructions found via this method so the single chars don't get printed
                if (instruction.getOpcode() == Opcodes.BIPUSH) {
                    IntInsnNode intInsnNode = (IntInsnNode) instruction;
                    string = readStringArray(intInsnNode);
                    if (string.isBlank()) {
                        continue;
                    }
                }
            }
            if (string.isBlank()) {
                continue;
            }
            // TODO: Add decoding Base64 support. 

bcae6d26bda3fd434b0eba6c949e51175be1971c

@github-actions github-actions bot added the todo label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants