Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-46

guththila fails if white space at the beginning of the file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: guththila
    • Labels:
      None
    • Environment:
      windows

      Description

      I think the parser should allow whitespace before the first "<"...

      int
      guththila_xml_pull_parser_tokenize (guththila_environment_t * environment,
      guththila_xml_pull_parser_t * parser)
      {
      do
      {
      int c;
      c = guththila_xml_pull_parser_next_char (environment, parser, -1);
      if (c == -1)
      return -1;

      switch (parser->status)
      {
      case S_1:
      /+/while (isspace(c))
      /+/

      { /*+*/ c = guththila_xml_pull_parser_next_char (environment, parser, -1); /*+*/ if (c == -1) /*+*/ return -1; /*+*/}

      if ('<' == c)
      parser->status = S_2;
      else
      parser->status = S_0;
      break;

        Attachments

          Activity

            People

            • Assignee:
              xydinesh Dinesh Weerapurage
              Reporter:
              edslattery Edward Slattery
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: