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

Failed to render code macro with large integer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.4
    • Fix Version/s: 9.6-rc-1, 8.4.6
    • Component/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: