protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.81k stars 15.51k forks source link

Fixed depth limit check by comparing effective depth limits. #19351

Closed copybara-service[bot] closed 20 hours ago

copybara-service[bot] commented 21 hours ago

Fixed depth limit check by comparing effective depth limits.

Before we were trying to work around the fact that we don't know the default depth limit. The logic is simpler and more robust if we take the default into account.