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

Limit container byte size

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++ - Library
    • None

    Description

      The C++ library currently takes a container size limit which can avoid instantiating too large containers, limiting the possibility of memory bombs.

      However, some container elements may be very large and preallocating such a large container may blow up memory even if the number of elements "looks" reasonable. This allows for very small files to blow up memory (and therefore to be potential denial-of-service material).

      It would be nice to have an additional parameter to limit in-memory container byte size.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apitrou Antoine Pitrou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: