Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25895

JS Exceptions can overflow BufBuilder

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.14
    • 3.3.12
    • None
    • None
    • Fully Compatible
    • ALL
    • Hide

      var len = 65 * 1024 * 1024;
      var str = new Array(len + 1).join( 'b' );
      throw str;

      Show
      var len = 65 * 1024 * 1024; var str = new Array(len + 1).join( 'b' ); throw str;
    • Platforms 2016-09-19
    • 0

    Description

      BufBuilder has a limit of 64MB. If this limit is hit, an unexpected exception is thrown. The code to process JS exceptions needs to not overflow the BufBuilder.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: