thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Pitrou (Jira)" <>
Subject [jira] [Created] (THRIFT-5149) Limit container byte size
Date Mon, 23 Mar 2020 18:39:00 GMT
Antoine Pitrou created THRIFT-5149:

             Summary: Limit container byte size
                 Key: THRIFT-5149
             Project: Thrift
          Issue Type: Wish
          Components: C++ - Library
            Reporter: Antoine Pitrou

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.

This message was sent by Atlassian Jira

View raw message