Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-231

Function::Execute in XPath/Function.cpp runs wrong code when 3 args have been passed in

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.4.x
    • Fix Version/s: None
    • Component/s: XPathC
    • Labels:
      None
    • Environment:
      Operating System: Windows NT/2K
      Platform: PC
    • Bugzilla Id:
      16361

      Description

      In XPath/Function.cpp, Function::execute for an overriden function with 3 args,
      the number of args is compared against 2? Which obviously is incorred:

      else if (theArgCount == 1)

      { return execute(executionContext, context, args[0], locator); }

      else if (theArgCount == 2)

      { return execute(executionContext, context, args[0], args[1], locator); }

      else if (theArgCount == 2) //This should be 3

      { return execute(executionContext, context, args[0], args[1], args [2], locator); }

      else

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wsakers@latentzero.com Wayne Akers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: