From 1b5d2090e1a9b7a932bcf0e9e82d92c587dc593a Mon Sep 17 00:00:00 2001 From: TheKysek Date: Thu, 25 May 2017 11:37:02 +0200 Subject: [PATCH] Reject objects that are not in stream 1 --- src/structure.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/structure.py b/src/structure.py index 33fe43b..24bb6a9 100644 --- a/src/structure.py +++ b/src/structure.py @@ -84,6 +84,8 @@ class Object(object): return False if len(self.object_payload) > 2**18: return False + if self.stream_number != 1: + return False data = self.to_bytes()[8:] length = len(data) + 8 + shared.payload_length_extra_bytes dt = max(self.expires_time - time.time(), 0)