Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1755

Comment parsing bug

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Patch Info:
      Patch Available

      Description

      thrift-0.9.0.exe crashes when trying to parse a thrift description file with a particular style of comment.

      The crash message is:

      Assertion failed: docstring.length() <= strlen(doctext), file src/main.cc, line 548
      
      This application has requested the Runtime to terminate it in an unusual way.
      Please contact the application's support team for more information.
      

      Reproducible with the following definitions file:

      service myservice
      {
      	/**SomeTextHere*/
      }
      

      Note that if you put a space like so /**SomeTextHere */, it compiles.

        Attachments

        1. thrift-1755.patch
          0.8 kB
          Brian Brooks
        2. THRIFT-1755_comment_parsing_bug.patch
          1 kB
          Jens Geyer

        Issue Links

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              budric Bud Bundy

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment