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

JS Exceptions can overflow BufBuilder

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.14
    • Affects Version/s: 3.3.12
    • Component/s: None
    • Labels:
      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

      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.

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

              Created:
              Updated:
              Resolved: