Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-3357

S6231: Fix crash when substring invocation is expanded from macro

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.26
    • Fix Version/s: 6.28
    • Component/s: C++
    • Labels:
      None

      Description

      The rule is crashing when the substring expression is expanded from macro.
      This is caused by attempt to print the suggested replacement in message, and copying the args.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomasz.kaminski Tomasz Kamiński
              Reporter:
              tomasz.kaminski Tomasz Kamiński
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: