Skip to content

Commit

Permalink
bugfix: net/libarcus fix a crash with newer protocol-buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
trombik committed Apr 28, 2022
1 parent 8d5d2cc commit 11a0e5c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions net/libarcus/files/patch-src_Socket__p.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/Socket_p.h.orig 2022-04-14 03:31:38 UTC
+++ src/Socket_p.h
@@ -548,7 +548,7 @@ namespace Arcus

google::protobuf::io::ArrayInputStream array(wire_message->data, wire_message->size);
google::protobuf::io::CodedInputStream stream(&array);
- stream.SetTotalBytesLimit(message_size_maximum, message_size_warning);
+ stream.SetTotalBytesLimit(message_size_maximum);
if(!message->ParseFromCodedStream(&stream))
{
error(ErrorCode::ParseFailedError, "Failed to parse message:" + std::string(wire_message->data));

0 comments on commit 11a0e5c

Please sign in to comment.