James jSieve
  1. James jSieve
  2. JSIEVE-49

CPU spins when :matches expression contains "*************"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.3
    • Component/s: JSieve (Main)
    • Labels:
      None

      Description

      A Zimbra customer reported that the mail delivery thread goes into a CPU spin when jSieve evaluates the following rule:

      if anyof (header :matches "from"
      "**********************************************address@yahoo.com" ,
      header :is "subject" "5" )

      { fileinto "Whatever"; stop; }

      I'm able to work around the problem by disallowing values that contain more than four asterisks in succession, but this should be fixed in jSieve. Here's the link to the Zimbra bug:

      http://bugzilla.zimbra.com/show_bug.cgi?id=35983

        Activity

        Hide
        Robert Burrell Donkin added a comment -

        Thanks for reporting this

        Show
        Robert Burrell Donkin added a comment - Thanks for reporting this
        Hide
        Robert Burrell Donkin added a comment -

        This turned out to be an issue in the Pattern implementation. Added workaround to ensure that several stars are just regex'd as a single one.

        Show
        Robert Burrell Donkin added a comment - This turned out to be an issue in the Pattern implementation. Added workaround to ensure that several stars are just regex'd as a single one.

          People

          • Assignee:
            Robert Burrell Donkin
            Reporter:
            Boris Burtin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development