Github user dvirsky commented on a diff in the pull request:

    https://github.com/apache/thrift/pull/511#discussion_r31604906
  
    --- Diff: lib/py/src/protocol/fastbinary.c ---
    @@ -1028,7 +1043,7 @@ decode_val(DecodeBuffer* input, TType type, PyObject* 
typeargs) {
         }
     
         len = readI32(input);
    -    if (!check_ssize_t_32(len)) {
    +    if (!check_list_length(len)) {
           return NULL;
    --- End diff --
    
    check_list_length already does that:
    ```c
       PyErr_SetString(PyExc_OverflowError, "list size out of the sanity limit 
(10000 items max)");
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to