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

Comment parsing bug

    XMLWordPrintableJSON

Details

    • 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_comment_parsing_bug.patch
          1 kB
          Jens Geyer
        2. thrift-1755.patch
          0.8 kB
          Brian Brooks

        Issue Links

          Activity

            People

              jensg Jens Geyer
              budric Bud Bundy
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: