Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14490

Failed to render code macro with large integer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.6-rc-1, 8.4.6
    • 8.4.4
    • None
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The code macro (specifically the Python highlighting script) will spin forever if there is a large integer within the code macro while using the "java" language. This example string causes the XWiki host CPU utilization to spike to 30% because it ends up using all the resources to render the string:

      {{code language="java"}}
      49570303007838535225991761835852105433826868438558048258
      {{/code}}
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            afkuang Andrew Kuang
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: