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

[Bug]: com.secnium.iast.core.report.ErrorLogReport#sendErrorLog(java.lang.Throwable) appears recursive. #236

Closed
Nizernizer opened this issue Feb 8, 2022 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Nizernizer
Copy link
Contributor

    public static void sendErrorLog(Throwable t) {
        if (ENABLE_UPLOAD) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            t.printStackTrace(pw);
            sendErrorLog(t);
        }
    }

fix:

    public static void sendErrorLog(Throwable t) {
        if (ENABLE_UPLOAD) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            t.printStackTrace(pw);
            sendErrorLog(t.toString());
        }
    }
@Nizernizer Nizernizer added the bug Something isn't working label Feb 8, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 8, 2022
@Nizernizer
Copy link
Contributor Author

The bug was discovered by user chenyi.

@exexute exexute added this to the 1.3.1 milestone Feb 9, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 10, 2022
exexute added a commit that referenced this issue Feb 11, 2022
@exexute exexute closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants