Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3796

Fix possible Catastrophic backtracking in regex for S3518: Division by zero rule

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.15
    • Component/s: Rules, Symbolic Execution
    • Labels:
      None

      Description

      Currently, we're checking that the literal value is zero in RSPEC-3518 by using 3 regexes which are not really optimal and can be extremely slow on some inputs. We can rewrite these regexes with a single loop. and get rid of regexes at all.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                margarita.nedzelska Margarita Nedzelska
                Reporter:
                margarita.nedzelska Margarita Nedzelska
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: