Hello, 

>From https://protobuf.dev/programming-guides/proto-limits/ i understand 
across all ecosystems 

Any proto in serialized form must be <2GiB, as that is the maximum size 
supported by all implementations. It’s recommended to bound request and 
response sizes.

However wanted to check where exactly is the limitation set up, 
specifically in protobuf-java library.

I can see safe checks in only message_lite.cc files , but i dont think this 
would be reflected across ecosystems?

if (size > INT_MAX) {
GOOGLE_LOG(ERROR) << "Exceeded maximum protobuf size of 2GB: " << size;
return false;
}

Regards

-- 
**Confidentiality Notice: *This email and any attachments are confidential 
and intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error, please notify the 
sender immediately and delete it from your system. Unauthorized use, 
disclosure, or copying of this email or its contents is strictly 
prohibited.*

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/protobuf/e0d724d8-2a45-4ef1-aaac-c3e6d1077306n%40googlegroups.com.

Reply via email to