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

Node.js: Fix global leaks and copy-paste errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Node.js - Library
    • None
    • Patch Available

    Description

      • TCompactProtocol.prototype.writeBool not referencing `booleanField_`
        on `this` correctly. Also using `NULL` instead of `null`.
      • TCompactProtocol.prototype.writeVarint64 had a typo for TProtocolException
      • TCompactProtocol.prototype.readMapBegin had a typo between `kvtype` and
        `kvType`
      • createMultiplexServer leaked a global var `processStatus`
      • TFramedTransport had a line that was accidently copy pasted, leading
        to a global leak of `frameLeft`. (I created the patch the introduced
        this copy paste error in Thrift-1353, so I can confirm it was
        a mistake).
      • createWebServer tried to check a non-existent var `route` and leaked
        a global `result`

      Attachments

        Activity

          People

            wadey Wade Simmons
            wadey Wade Simmons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: