grpc 1.85.4 → 1.86.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +13 -9
- data/etc/roots.pem +0 -583
- data/include/grpc/channel_factory.h +78 -0
- data/include/grpc/credentials.h +21 -0
- data/include/grpc/grpc.h +7 -0
- data/include/grpc/grpc_security_constants.h +2 -0
- data/include/grpc/module.modulemap +1 -0
- data/src/core/call/call_filters.cc +4 -1
- data/src/core/call/call_filters.h +3 -1
- data/src/core/call/call_spine.h +12 -6
- data/src/core/call/call_state.h +3 -3
- data/src/core/call/client_call.cc +4 -1
- data/src/core/call/client_call.h +1 -0
- data/src/core/call/filter_fusion.h +2 -15
- data/src/core/call/interception_chain.h +2 -7
- data/src/core/call/metadata_batch.cc +5 -0
- data/src/core/call/metadata_batch.h +13 -3
- data/src/core/call/request_buffer.cc +1 -1
- data/src/core/call/server_call.cc +3 -3
- data/src/core/call/server_call.h +15 -0
- data/src/core/channelz/channelz_registry.cc +4 -4
- data/src/core/client_channel/backup_poller.cc +1 -2
- data/src/core/client_channel/channel_factory.cc +110 -0
- data/src/core/client_channel/channel_factory.h +45 -0
- data/src/core/client_channel/global_subchannel_pool.cc +2 -2
- data/src/core/client_channel/lame_channel.cc +59 -0
- data/src/core/client_channel/lame_channel.h +86 -0
- data/src/core/credentials/call/external/aws_request_signer.cc +2 -1
- data/src/core/credentials/call/external/url_external_account_credentials.cc +6 -17
- data/src/core/credentials/call/external/url_external_account_credentials.h +0 -1
- data/src/core/credentials/call/jwt/jwt_verifier.cc +25 -13
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc +14 -0
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.h +12 -2
- data/src/core/credentials/transport/tls/ssl_utils.cc +20 -0
- data/src/core/credentials/transport/tls/ssl_utils.h +4 -0
- data/src/core/credentials/transport/tls/tls_security_connector.cc +6 -2
- data/src/core/ext/filters/rbac/rbac_filter.cc +3 -41
- data/src/core/ext/filters/rbac/rbac_filter.h +2 -11
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +2 -2
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +31 -24
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +1 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +69 -102
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +1 -1
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -2
- data/src/core/ext/transport/chttp2/transport/flow_control_manager.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame.cc +15 -19
- data/src/core/ext/transport/chttp2/transport/frame.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +18 -61
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +0 -4
- data/src/core/ext/transport/chttp2/transport/frame_security.cc +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/goaway.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/goaway.h +0 -5
- data/src/core/ext/transport/chttp2/transport/header_assembler.h +1 -5
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +34 -19
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +5 -2
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +134 -82
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.h +30 -15
- data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +4 -3
- data/src/core/ext/transport/chttp2/transport/http2_transport.cc +9 -33
- data/src/core/ext/transport/chttp2/transport/http2_transport.h +1 -6
- data/src/core/ext/transport/chttp2/transport/http2_transport_stats.h +60 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +6 -1
- data/src/core/ext/transport/chttp2/transport/keepalive.h +1 -4
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -8
- data/src/core/ext/transport/chttp2/transport/ping_promise.cc +35 -11
- data/src/core/ext/transport/chttp2/transport/ping_promise.h +52 -47
- data/src/core/ext/transport/chttp2/transport/read_context.h +19 -5
- data/src/core/ext/transport/chttp2/transport/security_frame.h +7 -6
- data/src/core/ext/transport/chttp2/transport/stream_data_queue.h +7 -5
- data/src/core/ext/transport/chttp2/transport/transport_common.cc +47 -0
- data/src/core/ext/transport/chttp2/transport/transport_common.h +29 -0
- data/src/core/ext/transport/chttp2/transport/writable_streams.h +1 -1
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +16 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +4 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +129 -81
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +50 -39
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +411 -163
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +95 -44
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +41 -8
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +427 -222
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +97 -66
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +130 -99
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +29 -27
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +49 -33
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +19 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +95 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +33 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +93 -11
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +656 -134
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +117 -51
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +45 -23
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +19 -10
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +99 -34
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +12 -7
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +344 -273
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +62 -69
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +1 -3
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +108 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +26 -2
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +809 -231
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +183 -77
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +151 -26
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +17 -9
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +24 -8
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +6 -5
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb.h +224 -16
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.c +83 -10
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb.h +95 -79
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb_minitable.c +23 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +34 -18
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +10 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h +243 -2
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.c +53 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +9 -4
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +516 -215
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +99 -60
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +60 -28
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +12 -10
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +32 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h +37 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.c +7 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +65 -47
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +29 -12
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +20 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +6 -3
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb.h +776 -88
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.c +195 -35
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.h +5 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb_minitable.c +10 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +44 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +11 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb.h +218 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.h +31 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +30 -24
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +166 -152
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +467 -422
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +120 -110
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +912 -857
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +26 -19
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +59 -54
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +356 -346
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +49 -37
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +599 -483
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +65 -49
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +165 -161
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +369 -327
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +5 -15
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +129 -121
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +224 -204
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +2046 -1932
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +70 -37
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +7 -3
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +5 -3
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.c +121 -78
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upbdefs.c +165 -160
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +121 -118
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.c +68 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +48 -40
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +44 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +919 -870
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.c +26 -14
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +44 -36
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +372 -371
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +32 -28
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/address.upbdefs.c +17 -15
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +4 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.h +37 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +1 -1
- data/src/core/filter/ext_proc/ext_proc_filter.cc +537 -259
- data/src/core/filter/ext_proc/ext_proc_filter.h +47 -14
- data/src/core/filter/ext_proc/ext_proc_messages.cc +38 -17
- data/src/core/filter/ext_proc/ext_proc_messages.h +19 -7
- data/src/core/filter/filter_args.h +5 -60
- data/src/core/handshaker/http_connect/http_connect_client_handshaker.cc +1 -1
- data/src/core/handshaker/security/pipelined_secure_endpoint.cc +23 -22
- data/src/core/handshaker/security/secure_endpoint.cc +16 -16
- data/src/core/lib/channel/channel_stack.cc +0 -12
- data/src/core/lib/channel/channel_stack.h +0 -8
- data/src/core/lib/channel/promise_based_filter.cc +57 -44
- data/src/core/lib/channel/promise_based_filter.h +29 -41
- data/src/core/lib/event_engine/ares_resolver.cc +10 -4
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +1 -1
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +3 -3
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +1 -5
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/file_descriptor_collection.cc +3 -17
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +21 -1
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/posix_interface.h +1 -1
- data/src/core/lib/event_engine/posix_engine/timer.cc +2 -2
- data/src/core/lib/event_engine/shim.cc +1 -6
- data/src/core/lib/event_engine/shim.h +0 -5
- data/src/core/lib/event_engine/windows/windows_engine.cc +4 -4
- data/src/core/lib/event_engine/windows/windows_listener.cc +1 -1
- data/src/core/lib/experiments/experiments.cc +141 -246
- data/src/core/lib/experiments/experiments.h +42 -109
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -6
- data/src/core/lib/iomgr/tcp_posix.cc +21 -21
- data/src/core/lib/iomgr/tcp_server_posix.cc +64 -242
- data/src/core/lib/iomgr/tcp_server_windows.cc +0 -469
- data/src/core/lib/promise/activity.cc +8 -8
- data/src/core/lib/promise/activity.h +5 -5
- data/src/core/lib/promise/inter_activity_pipe.h +3 -3
- data/src/core/lib/promise/party.cc +5 -5
- data/src/core/lib/promise/status_flag.h +7 -2
- data/src/core/lib/resource_quota/memory_quota.cc +2 -2
- data/src/core/lib/security/authorization/rbac_policy.h +2 -2
- data/src/core/lib/surface/call.cc +13 -3
- data/src/core/lib/surface/call.h +23 -6
- data/src/core/lib/surface/channel_create.cc +7 -1
- data/src/core/lib/surface/channel_init.h +1 -8
- data/src/core/lib/surface/filter_stack_call.cc +16 -0
- data/src/core/lib/surface/filter_stack_call.h +1 -0
- data/src/core/lib/surface/init.cc +3 -3
- data/src/core/lib/surface/legacy_channel.cc +4 -1
- data/src/core/lib/surface/version.cc +1 -1
- data/src/core/lib/transport/transport.cc +15 -8
- data/src/core/lib/transport/transport_framing_endpoint_extension.h +8 -2
- data/src/core/load_balancing/autosharding/autosharding.cc +0 -8
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +99 -8
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.cc +38 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.h +55 -0
- data/src/core/load_balancing/ring_hash/ring_hash.cc +2 -1
- data/src/core/load_balancing/rls/rls.cc +21 -1
- data/src/core/load_balancing/xds/cds.cc +4 -51
- data/src/core/plugin_registry/grpc_plugin_registry.cc +10 -13
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -7
- data/src/core/resolver/xds/xds_resolver.cc +1 -1
- data/src/core/server/server.cc +60 -4
- data/src/core/server/server_config_selector.h +4 -18
- data/src/core/server/server_config_selector_filter.cc +20 -146
- data/src/core/server/server_config_selector_filter.h +2 -2
- data/src/core/server/xds_server_config_fetcher.cc +5 -20
- data/src/core/transport/auth_context.cc +15 -5
- data/src/core/transport/auth_context.h +5 -0
- data/src/core/tsi/ssl_telemetry_utils.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +158 -52
- data/src/core/tsi/ssl_transport_security.h +18 -2
- data/src/core/tsi/ssl_transport_security_utils.cc +123 -12
- data/src/core/tsi/ssl_transport_security_utils.h +19 -0
- data/src/core/util/latent_see.cc +65 -3
- data/src/core/util/latent_see.h +57 -12
- data/src/core/util/linux/cpu.cc +12 -6
- data/src/core/util/mpscq.cc +2 -2
- data/src/core/util/sync_abseil.cc +3 -3
- data/src/core/util/trie_lookup.h +5 -1
- data/src/core/util/windows/env.cc +1 -0
- data/src/core/util/work_serializer.cc +1 -1
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +10 -9
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +3 -3
- data/src/core/xds/grpc/streaming_call_promise_wrapper.cc +5 -2
- data/src/core/xds/grpc/streaming_call_promise_wrapper.h +2 -5
- data/src/core/xds/grpc/xds_audit_logger_registry.cc +0 -54
- data/src/core/xds/grpc/xds_audit_logger_registry.h +0 -8
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.cc +2 -28
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.h +0 -20
- data/src/core/xds/grpc/xds_client_grpc.cc +4 -4
- data/src/core/xds/grpc/xds_client_grpc.h +1 -1
- data/src/core/xds/grpc/xds_cluster_parser.cc +5 -1
- data/src/core/xds/grpc/xds_common_types_parser.cc +12 -0
- data/src/core/xds/grpc/xds_endpoint_parser.cc +3 -3
- data/src/core/xds/grpc/xds_http_composite_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_composite_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_ext_proc_filter.cc +1 -5
- data/src/core/xds/grpc/xds_http_ext_proc_filter.h +3 -29
- data/src/core/xds/grpc/xds_http_fault_filter.cc +0 -4
- data/src/core/xds/grpc/xds_http_fault_filter.h +0 -26
- data/src/core/xds/grpc/xds_http_filter.h +1 -63
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +0 -527
- data/src/core/xds/grpc/xds_http_rbac_filter.h +0 -15
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +0 -26
- data/src/core/xds/grpc/xds_listener.cc +0 -2
- data/src/core/xds/grpc/xds_listener.h +0 -2
- data/src/core/xds/grpc/xds_listener_parser.cc +0 -7
- data/src/core/xds/grpc/xds_matcher.cc +17 -11
- data/src/core/xds/grpc/xds_matcher.h +2 -1
- data/src/core/xds/grpc/xds_matcher_context.cc +3 -0
- data/src/core/xds/grpc/xds_matcher_context.h +1 -1
- data/src/core/xds/grpc/xds_matcher_input.cc +19 -1
- data/src/core/xds/grpc/xds_matcher_parse.cc +3 -2
- data/src/core/xds/grpc/xds_route_config.cc +0 -2
- data/src/core/xds/grpc/xds_route_config.h +0 -2
- data/src/core/xds/grpc/xds_route_config_parser.cc +0 -5
- data/src/core/xds/grpc/xds_routing.cc +1 -112
- data/src/core/xds/grpc/xds_routing.h +0 -26
- data/src/core/xds/grpc/xds_transport_factory_grpc.cc +236 -0
- data/src/core/xds/grpc/xds_transport_factory_grpc.h +95 -0
- data/src/core/xds/grpc/xds_transport_grpc.cc +78 -241
- data/src/core/xds/grpc/xds_transport_grpc.h +41 -51
- data/src/core/xds/xds_client/lrs_client.cc +3 -5
- data/src/core/xds/xds_client/lrs_client.h +2 -1
- data/src/core/xds/xds_client/xds_client.cc +36 -23
- data/src/core/xds/xds_client/xds_client.h +6 -5
- data/src/core/xds/xds_client/xds_transport.h +110 -108
- data/src/core/xds/xds_client/xds_transport_factory.h +43 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
- data/src/ruby/lib/grpc/generic/rpc_server.rb +2 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/a_type.cc +54 -19
- data/third_party/boringssl-with-bazel/crypto/asn1/asn1_lib.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/internal.h +58 -12
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_dec.cc +13 -13
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_enc.cc +13 -11
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_fre.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_new.cc +31 -35
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_typ.cc +0 -2
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_utl.cc +17 -24
- data/third_party/boringssl-with-bazel/crypto/bio/bio.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/bio_mem.cc +9 -3
- data/third_party/boringssl-with-bazel/crypto/bio/connect.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/bio/fd.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/file.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/internal.h +2 -3
- data/third_party/boringssl-with-bazel/crypto/bio/pair.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/socket.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbb.cc +70 -45
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbs.cc +15 -34
- data/third_party/boringssl-with-bazel/crypto/bytestring/internal.h +5 -0
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aesgcmsiv.cc +20 -165
- data/third_party/boringssl-with-bazel/crypto/cipher/e_tls.cc +7 -4
- data/third_party/boringssl-with-bazel/crypto/cipher/internal.h +159 -0
- data/third_party/boringssl-with-bazel/crypto/curve25519/curve25519.cc +295 -16
- data/third_party/boringssl-with-bazel/crypto/curve25519/internal.h +25 -14
- data/third_party/boringssl-with-bazel/crypto/dh/params.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/ec/hash_to_curve.cc +208 -36
- data/third_party/boringssl-with-bazel/crypto/err/err.cc +3 -2
- data/third_party/boringssl-with-bazel/crypto/evp/evp.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/evp/evp_kem.cc +25 -6
- data/third_party/boringssl-with-bazel/crypto/evp/internal.h +15 -11
- data/third_party/boringssl-with-bazel/crypto/evp/p_ec.cc +121 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_mlkem.cc +34 -9
- data/third_party/boringssl-with-bazel/crypto/evp/p_rsa.cc +76 -8
- data/third_party/boringssl-with-bazel/crypto/evp/p_xwing.cc +47 -20
- data/third_party/boringssl-with-bazel/crypto/ex_data.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/aes_nohw.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/gcm.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bcm.cc +1 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/add.cc.inc +9 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/asm/x86_64-gcc.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/exponentiation.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/internal.h +12 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/jacobi.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/montgomery_inv.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/prime.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/rsaz_exp.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/sqrt.cc.inc +21 -21
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/aead.cc.inc +4 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/cipher.cc.inc +97 -132
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/internal.h +7 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/dh.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec.cc.inc +77 -17
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec_montgomery.cc.inc +13 -13
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/felem.cc.inc +117 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/internal.h +67 -18
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/oct.cc.inc +29 -151
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.cc.inc +740 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.h +207 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256.cc.inc +407 -519
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/simple.cc.inc +27 -28
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdsa/ecdsa.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/jitter.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/fips_shared_support.cc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/internal.h +70 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/keccak.cc.inc +292 -52
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mldsa/mldsa.cc.inc +226 -69
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mlkem/mlkem.cc.inc +238 -83
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/rsa_impl.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha1.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/fors.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/hpke/hpke.cc +327 -272
- data/third_party/boringssl-with-bazel/crypto/hrss/hrss.cc +14 -14
- data/third_party/boringssl-with-bazel/crypto/internal.h +63 -0
- data/third_party/boringssl-with-bazel/crypto/mem_internal.h +38 -3
- data/third_party/boringssl-with-bazel/crypto/obj/obj_dat.h +97 -1
- data/third_party/boringssl-with-bazel/crypto/pem/internal.h +86 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_all.cc +8 -5
- data/third_party/boringssl-with-bazel/crypto/pem/pem_lib.cc +41 -73
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pk8.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pkey.cc +10 -4
- data/third_party/boringssl-with-bazel/crypto/pem/pem_x509.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_xaux.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7_x509.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/pkcs8/pkcs8_x509.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/poly1305/internal.h +17 -0
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_arm.cc +1 -13
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_vec.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/slhdsa/slhdsa.cc +23 -6
- data/third_party/boringssl-with-bazel/crypto/stack/stack.cc +7 -0
- data/third_party/boringssl-with-bazel/crypto/trust_token/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/a_verify.cc +14 -7
- data/third_party/boringssl-with-bazel/crypto/x509/internal.h +110 -76
- data/third_party/boringssl-with-bazel/crypto/x509/name_print.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/rsa_pss.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_req.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_x509.cc +6 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_crld.cc +11 -53
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ncons.cc +5 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_purp.cc +16 -39
- data/third_party/boringssl-with-bazel/crypto/x509/v3_skey.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/v3_utl.cc +12 -16
- data/third_party/boringssl-with-bazel/crypto/x509/x509_cmp.cc +9 -11
- data/third_party/boringssl-with-bazel/crypto/x509/x509_mtc.cc +598 -0
- data/third_party/boringssl-with-bazel/crypto/x509/x509_obj.cc +9 -8
- data/third_party/boringssl-with-bazel/crypto/x509/x509_set.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vfy.cc +315 -390
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vpm.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x509name.cc +31 -29
- data/third_party/boringssl-with-bazel/crypto/x509/x_all.cc +10 -9
- data/third_party/boringssl-with-bazel/crypto/x509/x_crl.cc +3 -53
- data/third_party/boringssl-with-bazel/crypto/x509/x_name.cc +37 -59
- data/third_party/boringssl-with-bazel/crypto/x509/x_pubkey.cc +29 -47
- data/third_party/boringssl-with-bazel/crypto/x509/x_req.cc +2 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x_x509.cc +53 -53
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_64_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/crypto/err_data.cc +509 -497
- data/third_party/boringssl-with-bazel/include/openssl/aead.h +7 -19
- data/third_party/boringssl-with-bazel/include/openssl/asm_base.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/asn1.h +6 -10
- data/third_party/boringssl-with-bazel/include/openssl/base.h +43 -16
- data/third_party/boringssl-with-bazel/include/openssl/bio.h +25 -10
- data/third_party/boringssl-with-bazel/include/openssl/bytestring.h +33 -1
- data/third_party/boringssl-with-bazel/include/openssl/cipher.h +11 -9
- data/third_party/boringssl-with-bazel/include/openssl/configuration.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/curve25519.h +36 -0
- data/third_party/boringssl-with-bazel/include/openssl/digest.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/ec.h +35 -1
- data/third_party/boringssl-with-bazel/include/openssl/ec_key.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/evp.h +120 -3
- data/third_party/boringssl-with-bazel/include/openssl/evp_errors.h +1 -0
- data/third_party/boringssl-with-bazel/include/openssl/hmac.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/hpke.h +38 -7
- data/third_party/boringssl-with-bazel/include/openssl/mem.h +5 -5
- data/third_party/boringssl-with-bazel/include/openssl/nid.h +42 -0
- data/third_party/boringssl-with-bazel/include/openssl/pem.h +650 -351
- data/third_party/boringssl-with-bazel/include/openssl/posix_time.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols.h +130 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_S.h +48 -0
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_c.h +24 -0
- data/third_party/boringssl-with-bazel/include/openssl/rsa.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/slhdsa.h +25 -1
- data/third_party/boringssl-with-bazel/include/openssl/ssl.h +256 -87
- data/third_party/boringssl-with-bazel/include/openssl/stack.h +9 -0
- data/third_party/boringssl-with-bazel/include/openssl/types.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/x509.h +40 -21
- data/third_party/boringssl-with-bazel/ssl/bio_ssl.cc +3 -5
- data/third_party/boringssl-with-bazel/ssl/d1_both.cc +146 -81
- data/third_party/boringssl-with-bazel/ssl/d1_lib.cc +39 -34
- data/third_party/boringssl-with-bazel/ssl/d1_pkt.cc +6 -6
- data/third_party/boringssl-with-bazel/ssl/d1_srtp.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/dtls_method.cc +4 -4
- data/third_party/boringssl-with-bazel/ssl/dtls_record.cc +15 -14
- data/third_party/boringssl-with-bazel/ssl/encrypted_client_hello.cc +41 -25
- data/third_party/boringssl-with-bazel/ssl/extensions.cc +153 -171
- data/third_party/boringssl-with-bazel/ssl/handoff.cc +79 -64
- data/third_party/boringssl-with-bazel/ssl/handshake.cc +15 -16
- data/third_party/boringssl-with-bazel/ssl/handshake_client.cc +35 -78
- data/third_party/boringssl-with-bazel/ssl/handshake_server.cc +75 -155
- data/third_party/boringssl-with-bazel/ssl/internal.h +419 -308
- data/third_party/boringssl-with-bazel/ssl/s3_both.cc +17 -150
- data/third_party/boringssl-with-bazel/ssl/s3_lib.cc +2 -3
- data/third_party/boringssl-with-bazel/ssl/s3_pkt.cc +10 -9
- data/third_party/boringssl-with-bazel/ssl/ssl_asn1.cc +13 -13
- data/third_party/boringssl-with-bazel/ssl/ssl_buffer.cc +8 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_cert.cc +58 -24
- data/third_party/boringssl-with-bazel/ssl/ssl_cipher.cc +198 -26
- data/third_party/boringssl-with-bazel/ssl/ssl_credential.cc +164 -37
- data/third_party/boringssl-with-bazel/ssl/ssl_file.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_key_share.cc +2 -95
- data/third_party/boringssl-with-bazel/ssl/ssl_lib.cc +785 -472
- data/third_party/boringssl-with-bazel/ssl/ssl_privkey.cc +78 -67
- data/third_party/boringssl-with-bazel/ssl/ssl_session.cc +187 -150
- data/third_party/boringssl-with-bazel/ssl/ssl_stat.cc +6 -3
- data/third_party/boringssl-with-bazel/ssl/ssl_transcript.cc +1 -1
- data/third_party/boringssl-with-bazel/ssl/ssl_versions.cc +25 -19
- data/third_party/boringssl-with-bazel/ssl/ssl_x509.cc +148 -114
- data/third_party/boringssl-with-bazel/ssl/t1_enc.cc +28 -19
- data/third_party/boringssl-with-bazel/ssl/tls13_both.cc +24 -22
- data/third_party/boringssl-with-bazel/ssl/tls13_client.cc +30 -30
- data/third_party/boringssl-with-bazel/ssl/tls13_enc.cc +17 -16
- data/third_party/boringssl-with-bazel/ssl/tls13_server.cc +55 -63
- data/third_party/boringssl-with-bazel/ssl/tls_method.cc +12 -12
- data/third_party/boringssl-with-bazel/ssl/tls_record.cc +23 -20
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64.h +38 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64_msvc.h +2 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_field.c.inc +26 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_point.br.c.inc +0 -54
- data/third_party/cares/cares/include/ares.h +8 -0
- data/third_party/cares/cares/include/ares_dns_record.h +3 -2
- data/third_party/cares/cares/include/ares_version.h +3 -3
- data/third_party/cares/cares/src/lib/ares_addrinfo_localhost.c +20 -20
- data/third_party/cares/cares/src/lib/ares_cancel.c +17 -8
- data/third_party/cares/cares/src/lib/ares_close_sockets.c +81 -16
- data/third_party/cares/cares/src/lib/ares_conn.c +256 -10
- data/third_party/cares/cares/src/lib/ares_conn.h +40 -3
- data/third_party/cares/cares/src/lib/ares_cookie.c +2 -2
- data/third_party/cares/cares/src/lib/ares_destroy.c +75 -10
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +85 -10
- data/third_party/cares/cares/src/lib/ares_gethostbyaddr.c +5 -0
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +4 -0
- data/third_party/cares/cares/src/lib/ares_getnameinfo.c +10 -2
- data/third_party/cares/cares/src/lib/ares_hosts_file.c +8 -0
- data/third_party/cares/cares/src/lib/ares_inet_net_pton.h +28 -0
- data/third_party/cares/cares/src/lib/ares_init.c +55 -10
- data/third_party/cares/cares/src/lib/ares_library_init.c +25 -7
- data/third_party/cares/cares/src/lib/ares_options.c +38 -10
- data/third_party/cares/cares/src/lib/ares_parse_into_addrinfo.c +1 -1
- data/third_party/cares/cares/src/lib/ares_private.h +186 -27
- data/third_party/cares/cares/src/lib/ares_process.c +604 -112
- data/third_party/cares/cares/src/lib/ares_qcache.c +200 -36
- data/third_party/cares/cares/src/lib/ares_query.c +5 -0
- data/third_party/cares/cares/src/lib/ares_search.c +10 -0
- data/third_party/cares/cares/src/lib/ares_send.c +81 -10
- data/third_party/cares/cares/src/lib/ares_set_socket_functions.c +3 -1
- data/third_party/cares/cares/src/lib/ares_socket.c +28 -0
- data/third_party/cares/cares/src/lib/ares_socket.h +23 -0
- data/third_party/cares/cares/src/lib/ares_sysconfig.c +6 -3
- data/third_party/cares/cares/src/lib/ares_sysconfig_files.c +33 -11
- data/third_party/cares/cares/src/lib/ares_sysconfig_win.c +132 -80
- data/third_party/cares/cares/src/lib/ares_timeout.c +11 -0
- data/third_party/cares/cares/src/lib/ares_update_servers.c +55 -11
- data/third_party/cares/cares/src/lib/dsa/ares_array.c +20 -5
- data/third_party/cares/cares/src/lib/dsa/ares_htable.c +8 -4
- data/third_party/cares/cares/src/lib/dsa/ares_htable_dict.c +2 -0
- data/third_party/cares/cares/src/lib/dsa/ares_llist.c +4 -1
- data/third_party/cares/cares/src/lib/event/ares_event_configchg.c +5 -2
- data/third_party/cares/cares/src/lib/event/ares_event_select.c +14 -1
- data/third_party/cares/cares/src/lib/event/ares_event_thread.c +8 -0
- data/third_party/cares/cares/src/lib/event/ares_event_wake_pipe.c +7 -1
- data/third_party/cares/cares/src/lib/event/ares_event_win32.c +3 -0
- data/third_party/cares/cares/src/lib/include/ares_mem.h +3 -0
- data/third_party/cares/cares/src/lib/include/ares_str.h +17 -0
- data/third_party/cares/cares/src/lib/inet_net_pton.c +37 -28
- data/third_party/cares/cares/src/lib/legacy/ares_expand_name.c +1 -1
- data/third_party/cares/cares/src/lib/legacy/ares_parse_a_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_aaaa_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ns_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ptr_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_uri_reply.c +1 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_mapping.c +19 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_multistring.c +3 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_name.c +67 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_parse.c +62 -34
- data/third_party/cares/cares/src/lib/record/ares_dns_private.h +4 -0
- data/third_party/cares/cares/src/lib/record/ares_dns_record.c +47 -7
- data/third_party/cares/cares/src/lib/record/ares_dns_write.c +13 -5
- data/third_party/cares/cares/src/lib/str/ares_buf.c +33 -16
- data/third_party/cares/cares/src/lib/str/ares_str.c +54 -0
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.c +22 -10
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_math.c +17 -2
- data/third_party/cares/cares/src/lib/util/ares_math.h +32 -7
- data/third_party/cares/cares/src/lib/util/ares_rand.c +4 -4
- data/third_party/cares/cares/src/lib/util/ares_threads.c +1 -2
- data/third_party/cares/cares/src/lib/util/ares_time.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_uri.c +9 -3
- data/third_party/zlib/compress.c +34 -10
- data/third_party/zlib/crc32.c +49 -115
- data/third_party/zlib/deflate.c +107 -61
- data/third_party/zlib/deflate.h +7 -1
- data/third_party/zlib/gzguts.h +33 -31
- data/third_party/zlib/infback.c +20 -67
- data/third_party/zlib/inffast.c +7 -6
- data/third_party/zlib/inffixed.h +91 -91
- data/third_party/zlib/inflate.c +38 -151
- data/third_party/zlib/inflate.h +1 -1
- data/third_party/zlib/inftrees.c +134 -9
- data/third_party/zlib/inftrees.h +3 -1
- data/third_party/zlib/trees.c +14 -12
- data/third_party/zlib/uncompr.c +39 -23
- data/third_party/zlib/zconf.h +27 -19
- data/third_party/zlib/zlib.h +215 -96
- data/third_party/zlib/zutil.c +49 -35
- data/third_party/zlib/zutil.h +87 -10
- metadata +23 -9
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +0 -916
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +0 -84
- data/src/core/server/xds_channel_stack_modifier.cc +0 -108
- data/src/core/server/xds_channel_stack_modifier.h +0 -62
- data/src/core/server/xds_server_config_fetcher_legacy.cc +0 -1340
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256_internal.h +0 -193
- data/third_party/boringssl-with-bazel/crypto/kyber/internal.h +0 -165
- data/third_party/boringssl-with-bazel/crypto/kyber/kyber.cc +0 -870
data/third_party/zlib/inflate.c
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* inflate.c -- zlib decompression
|
|
2
|
-
* Copyright (C) 1995-
|
|
2
|
+
* Copyright (C) 1995-2026 Mark Adler
|
|
3
3
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -85,12 +85,6 @@
|
|
|
85
85
|
#include "inflate.h"
|
|
86
86
|
#include "inffast.h"
|
|
87
87
|
|
|
88
|
-
#ifdef MAKEFIXED
|
|
89
|
-
# ifndef BUILDFIXED
|
|
90
|
-
# define BUILDFIXED
|
|
91
|
-
# endif
|
|
92
|
-
#endif
|
|
93
|
-
|
|
94
88
|
local int inflateStateCheck(z_streamp strm) {
|
|
95
89
|
struct inflate_state FAR *state;
|
|
96
90
|
if (strm == Z_NULL ||
|
|
@@ -110,6 +104,7 @@ int ZEXPORT inflateResetKeep(z_streamp strm) {
|
|
|
110
104
|
state = (struct inflate_state FAR *)strm->state;
|
|
111
105
|
strm->total_in = strm->total_out = state->total = 0;
|
|
112
106
|
strm->msg = Z_NULL;
|
|
107
|
+
strm->data_type = 0;
|
|
113
108
|
if (state->wrap) /* to support ill-conceived Java test suite */
|
|
114
109
|
strm->adler = state->wrap & 1;
|
|
115
110
|
state->mode = HEAD;
|
|
@@ -202,6 +197,7 @@ int ZEXPORT inflateInit2_(z_streamp strm, int windowBits,
|
|
|
202
197
|
state = (struct inflate_state FAR *)
|
|
203
198
|
ZALLOC(strm, 1, sizeof(struct inflate_state));
|
|
204
199
|
if (state == Z_NULL) return Z_MEM_ERROR;
|
|
200
|
+
zmemzero(state, sizeof(struct inflate_state));
|
|
205
201
|
Tracev((stderr, "inflate: allocated\n"));
|
|
206
202
|
strm->state = (struct internal_state FAR *)state;
|
|
207
203
|
state->strm = strm;
|
|
@@ -234,123 +230,11 @@ int ZEXPORT inflatePrime(z_streamp strm, int bits, int value) {
|
|
|
234
230
|
}
|
|
235
231
|
if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
|
|
236
232
|
value &= (1L << bits) - 1;
|
|
237
|
-
state->hold += (unsigned)value << state->bits;
|
|
233
|
+
state->hold += (unsigned long)value << state->bits;
|
|
238
234
|
state->bits += (uInt)bits;
|
|
239
235
|
return Z_OK;
|
|
240
236
|
}
|
|
241
237
|
|
|
242
|
-
/*
|
|
243
|
-
Return state with length and distance decoding tables and index sizes set to
|
|
244
|
-
fixed code decoding. Normally this returns fixed tables from inffixed.h.
|
|
245
|
-
If BUILDFIXED is defined, then instead this routine builds the tables the
|
|
246
|
-
first time it's called, and returns those tables the first time and
|
|
247
|
-
thereafter. This reduces the size of the code by about 2K bytes, in
|
|
248
|
-
exchange for a little execution time. However, BUILDFIXED should not be
|
|
249
|
-
used for threaded applications, since the rewriting of the tables and virgin
|
|
250
|
-
may not be thread-safe.
|
|
251
|
-
*/
|
|
252
|
-
local void fixedtables(struct inflate_state FAR *state) {
|
|
253
|
-
#ifdef BUILDFIXED
|
|
254
|
-
static int virgin = 1;
|
|
255
|
-
static code *lenfix, *distfix;
|
|
256
|
-
static code fixed[544];
|
|
257
|
-
|
|
258
|
-
/* build fixed huffman tables if first call (may not be thread safe) */
|
|
259
|
-
if (virgin) {
|
|
260
|
-
unsigned sym, bits;
|
|
261
|
-
static code *next;
|
|
262
|
-
|
|
263
|
-
/* literal/length table */
|
|
264
|
-
sym = 0;
|
|
265
|
-
while (sym < 144) state->lens[sym++] = 8;
|
|
266
|
-
while (sym < 256) state->lens[sym++] = 9;
|
|
267
|
-
while (sym < 280) state->lens[sym++] = 7;
|
|
268
|
-
while (sym < 288) state->lens[sym++] = 8;
|
|
269
|
-
next = fixed;
|
|
270
|
-
lenfix = next;
|
|
271
|
-
bits = 9;
|
|
272
|
-
inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
|
|
273
|
-
|
|
274
|
-
/* distance table */
|
|
275
|
-
sym = 0;
|
|
276
|
-
while (sym < 32) state->lens[sym++] = 5;
|
|
277
|
-
distfix = next;
|
|
278
|
-
bits = 5;
|
|
279
|
-
inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
|
|
280
|
-
|
|
281
|
-
/* do this just once */
|
|
282
|
-
virgin = 0;
|
|
283
|
-
}
|
|
284
|
-
#else /* !BUILDFIXED */
|
|
285
|
-
# include "inffixed.h"
|
|
286
|
-
#endif /* BUILDFIXED */
|
|
287
|
-
state->lencode = lenfix;
|
|
288
|
-
state->lenbits = 9;
|
|
289
|
-
state->distcode = distfix;
|
|
290
|
-
state->distbits = 5;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
#ifdef MAKEFIXED
|
|
294
|
-
#include <stdio.h>
|
|
295
|
-
|
|
296
|
-
/*
|
|
297
|
-
Write out the inffixed.h that is #include'd above. Defining MAKEFIXED also
|
|
298
|
-
defines BUILDFIXED, so the tables are built on the fly. makefixed() writes
|
|
299
|
-
those tables to stdout, which would be piped to inffixed.h. A small program
|
|
300
|
-
can simply call makefixed to do this:
|
|
301
|
-
|
|
302
|
-
void makefixed(void);
|
|
303
|
-
|
|
304
|
-
int main(void)
|
|
305
|
-
{
|
|
306
|
-
makefixed();
|
|
307
|
-
return 0;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
Then that can be linked with zlib built with MAKEFIXED defined and run:
|
|
311
|
-
|
|
312
|
-
a.out > inffixed.h
|
|
313
|
-
*/
|
|
314
|
-
void makefixed(void)
|
|
315
|
-
{
|
|
316
|
-
unsigned low, size;
|
|
317
|
-
struct inflate_state state;
|
|
318
|
-
|
|
319
|
-
fixedtables(&state);
|
|
320
|
-
puts(" /* inffixed.h -- table for decoding fixed codes");
|
|
321
|
-
puts(" * Generated automatically by makefixed().");
|
|
322
|
-
puts(" */");
|
|
323
|
-
puts("");
|
|
324
|
-
puts(" /* WARNING: this file should *not* be used by applications.");
|
|
325
|
-
puts(" It is part of the implementation of this library and is");
|
|
326
|
-
puts(" subject to change. Applications should only use zlib.h.");
|
|
327
|
-
puts(" */");
|
|
328
|
-
puts("");
|
|
329
|
-
size = 1U << 9;
|
|
330
|
-
printf(" static const code lenfix[%u] = {", size);
|
|
331
|
-
low = 0;
|
|
332
|
-
for (;;) {
|
|
333
|
-
if ((low % 7) == 0) printf("\n ");
|
|
334
|
-
printf("{%u,%u,%d}", (low & 127) == 99 ? 64 : state.lencode[low].op,
|
|
335
|
-
state.lencode[low].bits, state.lencode[low].val);
|
|
336
|
-
if (++low == size) break;
|
|
337
|
-
putchar(',');
|
|
338
|
-
}
|
|
339
|
-
puts("\n };");
|
|
340
|
-
size = 1U << 5;
|
|
341
|
-
printf("\n static const code distfix[%u] = {", size);
|
|
342
|
-
low = 0;
|
|
343
|
-
for (;;) {
|
|
344
|
-
if ((low % 6) == 0) printf("\n ");
|
|
345
|
-
printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
|
|
346
|
-
state.distcode[low].val);
|
|
347
|
-
if (++low == size) break;
|
|
348
|
-
putchar(',');
|
|
349
|
-
}
|
|
350
|
-
puts("\n };");
|
|
351
|
-
}
|
|
352
|
-
#endif /* MAKEFIXED */
|
|
353
|
-
|
|
354
238
|
/*
|
|
355
239
|
Update the window with the last wsize (normally 32K) bytes written before
|
|
356
240
|
returning. If window does not exist yet, create it. This is only called
|
|
@@ -642,12 +526,12 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
642
526
|
if (
|
|
643
527
|
#endif
|
|
644
528
|
((BITS(8) << 8) + (hold >> 8)) % 31) {
|
|
645
|
-
strm->msg = (char *)"incorrect header check";
|
|
529
|
+
strm->msg = (z_const char *)"incorrect header check";
|
|
646
530
|
state->mode = BAD;
|
|
647
531
|
break;
|
|
648
532
|
}
|
|
649
533
|
if (BITS(4) != Z_DEFLATED) {
|
|
650
|
-
strm->msg = (char *)"unknown compression method";
|
|
534
|
+
strm->msg = (z_const char *)"unknown compression method";
|
|
651
535
|
state->mode = BAD;
|
|
652
536
|
break;
|
|
653
537
|
}
|
|
@@ -656,7 +540,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
656
540
|
if (state->wbits == 0)
|
|
657
541
|
state->wbits = len;
|
|
658
542
|
if (len > 15 || len > state->wbits) {
|
|
659
|
-
strm->msg = (char *)"invalid window size";
|
|
543
|
+
strm->msg = (z_const char *)"invalid window size";
|
|
660
544
|
state->mode = BAD;
|
|
661
545
|
break;
|
|
662
546
|
}
|
|
@@ -672,12 +556,12 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
672
556
|
NEEDBITS(16);
|
|
673
557
|
state->flags = (int)(hold);
|
|
674
558
|
if ((state->flags & 0xff) != Z_DEFLATED) {
|
|
675
|
-
strm->msg = (char *)"unknown compression method";
|
|
559
|
+
strm->msg = (z_const char *)"unknown compression method";
|
|
676
560
|
state->mode = BAD;
|
|
677
561
|
break;
|
|
678
562
|
}
|
|
679
563
|
if (state->flags & 0xe000) {
|
|
680
|
-
strm->msg = (char *)"unknown header flags set";
|
|
564
|
+
strm->msg = (z_const char *)"unknown header flags set";
|
|
681
565
|
state->mode = BAD;
|
|
682
566
|
break;
|
|
683
567
|
}
|
|
@@ -793,7 +677,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
793
677
|
if (state->flags & 0x0200) {
|
|
794
678
|
NEEDBITS(16);
|
|
795
679
|
if ((state->wrap & 4) && hold != (state->check & 0xffff)) {
|
|
796
|
-
strm->msg = (char *)"header crc mismatch";
|
|
680
|
+
strm->msg = (z_const char *)"header crc mismatch";
|
|
797
681
|
state->mode = BAD;
|
|
798
682
|
break;
|
|
799
683
|
}
|
|
@@ -840,7 +724,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
840
724
|
state->mode = STORED;
|
|
841
725
|
break;
|
|
842
726
|
case 1: /* fixed block */
|
|
843
|
-
|
|
727
|
+
inflate_fixed(state);
|
|
844
728
|
Tracev((stderr, "inflate: fixed codes block%s\n",
|
|
845
729
|
state->last ? " (last)" : ""));
|
|
846
730
|
state->mode = LEN_; /* decode codes */
|
|
@@ -854,8 +738,8 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
854
738
|
state->last ? " (last)" : ""));
|
|
855
739
|
state->mode = TABLE;
|
|
856
740
|
break;
|
|
857
|
-
|
|
858
|
-
strm->msg = (char *)"invalid block type";
|
|
741
|
+
default:
|
|
742
|
+
strm->msg = (z_const char *)"invalid block type";
|
|
859
743
|
state->mode = BAD;
|
|
860
744
|
}
|
|
861
745
|
DROPBITS(2);
|
|
@@ -864,7 +748,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
864
748
|
BYTEBITS(); /* go to byte boundary */
|
|
865
749
|
NEEDBITS(32);
|
|
866
750
|
if ((hold & 0xffff) != ((hold >> 16) ^ 0xffff)) {
|
|
867
|
-
strm->msg = (char *)"invalid stored block lengths";
|
|
751
|
+
strm->msg = (z_const char *)"invalid stored block lengths";
|
|
868
752
|
state->mode = BAD;
|
|
869
753
|
break;
|
|
870
754
|
}
|
|
@@ -905,7 +789,8 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
905
789
|
DROPBITS(4);
|
|
906
790
|
#ifndef PKZIP_BUG_WORKAROUND
|
|
907
791
|
if (state->nlen > 286 || state->ndist > 30) {
|
|
908
|
-
strm->msg = (char *)
|
|
792
|
+
strm->msg = (z_const char *)
|
|
793
|
+
"too many length or distance symbols";
|
|
909
794
|
state->mode = BAD;
|
|
910
795
|
break;
|
|
911
796
|
}
|
|
@@ -923,12 +808,12 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
923
808
|
while (state->have < 19)
|
|
924
809
|
state->lens[order[state->have++]] = 0;
|
|
925
810
|
state->next = state->codes;
|
|
926
|
-
state->lencode = (const code FAR *)(state->next);
|
|
811
|
+
state->lencode = state->distcode = (const code FAR *)(state->next);
|
|
927
812
|
state->lenbits = 7;
|
|
928
813
|
ret = inflate_table(CODES, state->lens, 19, &(state->next),
|
|
929
814
|
&(state->lenbits), state->work);
|
|
930
815
|
if (ret) {
|
|
931
|
-
strm->msg = (char *)"invalid code lengths set";
|
|
816
|
+
strm->msg = (z_const char *)"invalid code lengths set";
|
|
932
817
|
state->mode = BAD;
|
|
933
818
|
break;
|
|
934
819
|
}
|
|
@@ -952,7 +837,8 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
952
837
|
NEEDBITS(here.bits + 2);
|
|
953
838
|
DROPBITS(here.bits);
|
|
954
839
|
if (state->have == 0) {
|
|
955
|
-
strm->msg = (char *)
|
|
840
|
+
strm->msg = (z_const char *)
|
|
841
|
+
"invalid bit length repeat";
|
|
956
842
|
state->mode = BAD;
|
|
957
843
|
break;
|
|
958
844
|
}
|
|
@@ -975,7 +861,8 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
975
861
|
DROPBITS(7);
|
|
976
862
|
}
|
|
977
863
|
if (state->have + copy > state->nlen + state->ndist) {
|
|
978
|
-
strm->msg = (char *)
|
|
864
|
+
strm->msg = (z_const char *)
|
|
865
|
+
"invalid bit length repeat";
|
|
979
866
|
state->mode = BAD;
|
|
980
867
|
break;
|
|
981
868
|
}
|
|
@@ -989,7 +876,8 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
989
876
|
|
|
990
877
|
/* check for end-of-block code (better have one) */
|
|
991
878
|
if (state->lens[256] == 0) {
|
|
992
|
-
strm->msg = (char *)
|
|
879
|
+
strm->msg = (z_const char *)
|
|
880
|
+
"invalid code -- missing end-of-block";
|
|
993
881
|
state->mode = BAD;
|
|
994
882
|
break;
|
|
995
883
|
}
|
|
@@ -1003,7 +891,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1003
891
|
ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
|
|
1004
892
|
&(state->lenbits), state->work);
|
|
1005
893
|
if (ret) {
|
|
1006
|
-
strm->msg = (char *)"invalid literal/lengths set";
|
|
894
|
+
strm->msg = (z_const char *)"invalid literal/lengths set";
|
|
1007
895
|
state->mode = BAD;
|
|
1008
896
|
break;
|
|
1009
897
|
}
|
|
@@ -1012,7 +900,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1012
900
|
ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
|
|
1013
901
|
&(state->next), &(state->distbits), state->work);
|
|
1014
902
|
if (ret) {
|
|
1015
|
-
strm->msg = (char *)"invalid distances set";
|
|
903
|
+
strm->msg = (z_const char *)"invalid distances set";
|
|
1016
904
|
state->mode = BAD;
|
|
1017
905
|
break;
|
|
1018
906
|
}
|
|
@@ -1066,7 +954,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1066
954
|
break;
|
|
1067
955
|
}
|
|
1068
956
|
if (here.op & 64) {
|
|
1069
|
-
strm->msg = (char *)"invalid literal/length code";
|
|
957
|
+
strm->msg = (z_const char *)"invalid literal/length code";
|
|
1070
958
|
state->mode = BAD;
|
|
1071
959
|
break;
|
|
1072
960
|
}
|
|
@@ -1104,7 +992,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1104
992
|
DROPBITS(here.bits);
|
|
1105
993
|
state->back += here.bits;
|
|
1106
994
|
if (here.op & 64) {
|
|
1107
|
-
strm->msg = (char *)"invalid distance code";
|
|
995
|
+
strm->msg = (z_const char *)"invalid distance code";
|
|
1108
996
|
state->mode = BAD;
|
|
1109
997
|
break;
|
|
1110
998
|
}
|
|
@@ -1121,7 +1009,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1121
1009
|
}
|
|
1122
1010
|
#ifdef INFLATE_STRICT
|
|
1123
1011
|
if (state->offset > state->dmax) {
|
|
1124
|
-
strm->msg = (char *)"invalid distance too far back";
|
|
1012
|
+
strm->msg = (z_const char *)"invalid distance too far back";
|
|
1125
1013
|
state->mode = BAD;
|
|
1126
1014
|
break;
|
|
1127
1015
|
}
|
|
@@ -1136,7 +1024,8 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1136
1024
|
copy = state->offset - copy;
|
|
1137
1025
|
if (copy > state->whave) {
|
|
1138
1026
|
if (state->sane) {
|
|
1139
|
-
strm->msg = (char *)
|
|
1027
|
+
strm->msg = (z_const char *)
|
|
1028
|
+
"invalid distance too far back";
|
|
1140
1029
|
state->mode = BAD;
|
|
1141
1030
|
break;
|
|
1142
1031
|
}
|
|
@@ -1195,7 +1084,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1195
1084
|
state->flags ? hold :
|
|
1196
1085
|
#endif
|
|
1197
1086
|
ZSWAP32(hold)) != state->check) {
|
|
1198
|
-
strm->msg = (char *)"incorrect data check";
|
|
1087
|
+
strm->msg = (z_const char *)"incorrect data check";
|
|
1199
1088
|
state->mode = BAD;
|
|
1200
1089
|
break;
|
|
1201
1090
|
}
|
|
@@ -1209,7 +1098,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
|
|
|
1209
1098
|
if (state->wrap && state->flags) {
|
|
1210
1099
|
NEEDBITS(32);
|
|
1211
1100
|
if ((state->wrap & 4) && hold != (state->total & 0xffffffff)) {
|
|
1212
|
-
strm->msg = (char *)"incorrect length check";
|
|
1101
|
+
strm->msg = (z_const char *)"incorrect length check";
|
|
1213
1102
|
state->mode = BAD;
|
|
1214
1103
|
break;
|
|
1215
1104
|
}
|
|
@@ -1440,7 +1329,6 @@ int ZEXPORT inflateCopy(z_streamp dest, z_streamp source) {
|
|
|
1440
1329
|
struct inflate_state FAR *state;
|
|
1441
1330
|
struct inflate_state FAR *copy;
|
|
1442
1331
|
unsigned char FAR *window;
|
|
1443
|
-
unsigned wsize;
|
|
1444
1332
|
|
|
1445
1333
|
/* check input */
|
|
1446
1334
|
if (inflateStateCheck(source) || dest == Z_NULL)
|
|
@@ -1451,6 +1339,7 @@ int ZEXPORT inflateCopy(z_streamp dest, z_streamp source) {
|
|
|
1451
1339
|
copy = (struct inflate_state FAR *)
|
|
1452
1340
|
ZALLOC(source, 1, sizeof(struct inflate_state));
|
|
1453
1341
|
if (copy == Z_NULL) return Z_MEM_ERROR;
|
|
1342
|
+
zmemzero(copy, sizeof(struct inflate_state));
|
|
1454
1343
|
window = Z_NULL;
|
|
1455
1344
|
if (state->window != Z_NULL) {
|
|
1456
1345
|
window = (unsigned char FAR *)
|
|
@@ -1462,8 +1351,8 @@ int ZEXPORT inflateCopy(z_streamp dest, z_streamp source) {
|
|
|
1462
1351
|
}
|
|
1463
1352
|
|
|
1464
1353
|
/* copy state */
|
|
1465
|
-
zmemcpy(
|
|
1466
|
-
zmemcpy(
|
|
1354
|
+
zmemcpy(dest, source, sizeof(z_stream));
|
|
1355
|
+
zmemcpy(copy, state, sizeof(struct inflate_state));
|
|
1467
1356
|
copy->strm = dest;
|
|
1468
1357
|
if (state->lencode >= state->codes &&
|
|
1469
1358
|
state->lencode <= state->codes + ENOUGH - 1) {
|
|
@@ -1471,10 +1360,8 @@ int ZEXPORT inflateCopy(z_streamp dest, z_streamp source) {
|
|
|
1471
1360
|
copy->distcode = copy->codes + (state->distcode - state->codes);
|
|
1472
1361
|
}
|
|
1473
1362
|
copy->next = copy->codes + (state->next - state->codes);
|
|
1474
|
-
if (window != Z_NULL)
|
|
1475
|
-
|
|
1476
|
-
zmemcpy(window, state->window, wsize);
|
|
1477
|
-
}
|
|
1363
|
+
if (window != Z_NULL)
|
|
1364
|
+
zmemcpy(window, state->window, state->whave);
|
|
1478
1365
|
copy->window = window;
|
|
1479
1366
|
dest->state = (struct internal_state FAR *)copy;
|
|
1480
1367
|
return Z_OK;
|
data/third_party/zlib/inflate.h
CHANGED
|
@@ -100,7 +100,7 @@ struct inflate_state {
|
|
|
100
100
|
unsigned char FAR *window; /* allocated sliding window, if needed */
|
|
101
101
|
/* bit accumulator */
|
|
102
102
|
unsigned long hold; /* input bit accumulator */
|
|
103
|
-
unsigned bits; /* number of bits in
|
|
103
|
+
unsigned bits; /* number of bits in hold */
|
|
104
104
|
/* for string and stored block copying */
|
|
105
105
|
unsigned length; /* literal or length of data to copy */
|
|
106
106
|
unsigned offset; /* distance back to copy string from */
|
data/third_party/zlib/inftrees.c
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
/* inftrees.c -- generate Huffman trees for efficient decoding
|
|
2
|
-
* Copyright (C) 1995-
|
|
2
|
+
* Copyright (C) 1995-2026 Mark Adler
|
|
3
3
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
#ifdef MAKEFIXED
|
|
7
|
+
# ifndef BUILDFIXED
|
|
8
|
+
# define BUILDFIXED
|
|
9
|
+
# endif
|
|
10
|
+
#endif
|
|
11
|
+
#ifdef BUILDFIXED
|
|
12
|
+
# define Z_ONCE
|
|
13
|
+
#endif
|
|
14
|
+
|
|
6
15
|
#include "zutil.h"
|
|
7
16
|
#include "inftrees.h"
|
|
17
|
+
#include "inflate.h"
|
|
18
|
+
|
|
19
|
+
#ifndef NULL
|
|
20
|
+
# define NULL 0
|
|
21
|
+
#endif
|
|
8
22
|
|
|
9
23
|
#define MAXBITS 15
|
|
10
24
|
|
|
11
25
|
const char inflate_copyright[] =
|
|
12
|
-
" inflate 1.3.
|
|
26
|
+
" inflate 1.3.2 Copyright 1995-2026 Mark Adler ";
|
|
13
27
|
/*
|
|
14
28
|
If you use the zlib library in a product, an acknowledgment is welcome
|
|
15
29
|
in the documentation of your product. If for some reason you cannot
|
|
@@ -47,9 +61,9 @@ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
|
|
|
47
61
|
unsigned mask; /* mask for low root bits */
|
|
48
62
|
code here; /* table entry for duplication */
|
|
49
63
|
code FAR *next; /* next available space in table */
|
|
50
|
-
const unsigned short FAR *base;
|
|
51
|
-
const unsigned short FAR *extra;
|
|
52
|
-
unsigned match;
|
|
64
|
+
const unsigned short FAR *base = NULL; /* base value table to use */
|
|
65
|
+
const unsigned short FAR *extra = NULL; /* extra bits table to use */
|
|
66
|
+
unsigned match = 0; /* use base and extra for symbol >= match */
|
|
53
67
|
unsigned short count[MAXBITS+1]; /* number of codes of each length */
|
|
54
68
|
unsigned short offs[MAXBITS+1]; /* offsets in table for each length */
|
|
55
69
|
static const unsigned short lbase[31] = { /* Length codes 257..285 base */
|
|
@@ -57,7 +71,7 @@ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
|
|
|
57
71
|
35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
|
|
58
72
|
static const unsigned short lext[31] = { /* Length codes 257..285 extra */
|
|
59
73
|
16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
|
|
60
|
-
19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16,
|
|
74
|
+
19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 199, 75};
|
|
61
75
|
static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
|
|
62
76
|
1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
|
|
63
77
|
257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
|
|
@@ -175,7 +189,6 @@ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
|
|
|
175
189
|
/* set up for code type */
|
|
176
190
|
switch (type) {
|
|
177
191
|
case CODES:
|
|
178
|
-
base = extra = work; /* dummy value--not used */
|
|
179
192
|
match = 20;
|
|
180
193
|
break;
|
|
181
194
|
case LENS:
|
|
@@ -183,10 +196,9 @@ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
|
|
|
183
196
|
extra = lext;
|
|
184
197
|
match = 257;
|
|
185
198
|
break;
|
|
186
|
-
|
|
199
|
+
case DISTS:
|
|
187
200
|
base = dbase;
|
|
188
201
|
extra = dext;
|
|
189
|
-
match = 0;
|
|
190
202
|
}
|
|
191
203
|
|
|
192
204
|
/* initialize state for loop */
|
|
@@ -297,3 +309,116 @@ int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
|
|
|
297
309
|
*bits = root;
|
|
298
310
|
return 0;
|
|
299
311
|
}
|
|
312
|
+
|
|
313
|
+
#ifdef BUILDFIXED
|
|
314
|
+
/*
|
|
315
|
+
If this is compiled with BUILDFIXED defined, and if inflate will be used in
|
|
316
|
+
multiple threads, and if atomics are not available, then inflate() must be
|
|
317
|
+
called with a fixed block (e.g. 0x03 0x00) to initialize the tables and must
|
|
318
|
+
return before any other threads are allowed to call inflate.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
static code *lenfix, *distfix;
|
|
322
|
+
static code fixed[544];
|
|
323
|
+
|
|
324
|
+
/* State for z_once(). */
|
|
325
|
+
local z_once_t built = Z_ONCE_INIT;
|
|
326
|
+
|
|
327
|
+
local void buildtables(void) {
|
|
328
|
+
unsigned sym, bits;
|
|
329
|
+
static code *next;
|
|
330
|
+
unsigned short lens[288], work[288];
|
|
331
|
+
|
|
332
|
+
/* literal/length table */
|
|
333
|
+
sym = 0;
|
|
334
|
+
while (sym < 144) lens[sym++] = 8;
|
|
335
|
+
while (sym < 256) lens[sym++] = 9;
|
|
336
|
+
while (sym < 280) lens[sym++] = 7;
|
|
337
|
+
while (sym < 288) lens[sym++] = 8;
|
|
338
|
+
next = fixed;
|
|
339
|
+
lenfix = next;
|
|
340
|
+
bits = 9;
|
|
341
|
+
inflate_table(LENS, lens, 288, &(next), &(bits), work);
|
|
342
|
+
|
|
343
|
+
/* distance table */
|
|
344
|
+
sym = 0;
|
|
345
|
+
while (sym < 32) lens[sym++] = 5;
|
|
346
|
+
distfix = next;
|
|
347
|
+
bits = 5;
|
|
348
|
+
inflate_table(DISTS, lens, 32, &(next), &(bits), work);
|
|
349
|
+
}
|
|
350
|
+
#else /* !BUILDFIXED */
|
|
351
|
+
# include "inffixed.h"
|
|
352
|
+
#endif /* BUILDFIXED */
|
|
353
|
+
|
|
354
|
+
/*
|
|
355
|
+
Return state with length and distance decoding tables and index sizes set to
|
|
356
|
+
fixed code decoding. Normally this returns fixed tables from inffixed.h.
|
|
357
|
+
If BUILDFIXED is defined, then instead this routine builds the tables the
|
|
358
|
+
first time it's called, and returns those tables the first time and
|
|
359
|
+
thereafter. This reduces the size of the code by about 2K bytes, in
|
|
360
|
+
exchange for a little execution time. However, BUILDFIXED should not be
|
|
361
|
+
used for threaded applications if atomics are not available, as it will
|
|
362
|
+
not be thread-safe.
|
|
363
|
+
*/
|
|
364
|
+
void inflate_fixed(struct inflate_state FAR *state) {
|
|
365
|
+
#ifdef BUILDFIXED
|
|
366
|
+
z_once(&built, buildtables);
|
|
367
|
+
#endif /* BUILDFIXED */
|
|
368
|
+
state->lencode = lenfix;
|
|
369
|
+
state->lenbits = 9;
|
|
370
|
+
state->distcode = distfix;
|
|
371
|
+
state->distbits = 5;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
#ifdef MAKEFIXED
|
|
375
|
+
#include <stdio.h>
|
|
376
|
+
|
|
377
|
+
/*
|
|
378
|
+
Write out the inffixed.h that will be #include'd above. Defining MAKEFIXED
|
|
379
|
+
also defines BUILDFIXED, so the tables are built on the fly. main() writes
|
|
380
|
+
those tables to stdout, which would directed to inffixed.h. Compile this
|
|
381
|
+
along with zutil.c:
|
|
382
|
+
|
|
383
|
+
cc -DMAKEFIXED -o fix inftrees.c zutil.c
|
|
384
|
+
./fix > inffixed.h
|
|
385
|
+
*/
|
|
386
|
+
int main(void) {
|
|
387
|
+
unsigned low, size;
|
|
388
|
+
struct inflate_state state;
|
|
389
|
+
|
|
390
|
+
inflate_fixed(&state);
|
|
391
|
+
puts("/* inffixed.h -- table for decoding fixed codes");
|
|
392
|
+
puts(" * Generated automatically by makefixed().");
|
|
393
|
+
puts(" */");
|
|
394
|
+
puts("");
|
|
395
|
+
puts("/* WARNING: this file should *not* be used by applications.");
|
|
396
|
+
puts(" It is part of the implementation of this library and is");
|
|
397
|
+
puts(" subject to change. Applications should only use zlib.h.");
|
|
398
|
+
puts(" */");
|
|
399
|
+
puts("");
|
|
400
|
+
size = 1U << 9;
|
|
401
|
+
printf("static const code lenfix[%u] = {", size);
|
|
402
|
+
low = 0;
|
|
403
|
+
for (;;) {
|
|
404
|
+
if ((low % 7) == 0) printf("\n ");
|
|
405
|
+
printf("{%u,%u,%d}", (low & 127) == 99 ? 64 : state.lencode[low].op,
|
|
406
|
+
state.lencode[low].bits, state.lencode[low].val);
|
|
407
|
+
if (++low == size) break;
|
|
408
|
+
putchar(',');
|
|
409
|
+
}
|
|
410
|
+
puts("\n};");
|
|
411
|
+
size = 1U << 5;
|
|
412
|
+
printf("\nstatic const code distfix[%u] = {", size);
|
|
413
|
+
low = 0;
|
|
414
|
+
for (;;) {
|
|
415
|
+
if ((low % 6) == 0) printf("\n ");
|
|
416
|
+
printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
|
|
417
|
+
state.distcode[low].val);
|
|
418
|
+
if (++low == size) break;
|
|
419
|
+
putchar(',');
|
|
420
|
+
}
|
|
421
|
+
puts("\n};");
|
|
422
|
+
return 0;
|
|
423
|
+
}
|
|
424
|
+
#endif /* MAKEFIXED */
|
data/third_party/zlib/inftrees.h
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* inftrees.h -- header to use inftrees.c
|
|
2
|
-
* Copyright (C) 1995-
|
|
2
|
+
* Copyright (C) 1995-2026 Mark Adler
|
|
3
3
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -60,3 +60,5 @@ typedef enum {
|
|
|
60
60
|
int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens,
|
|
61
61
|
unsigned codes, code FAR * FAR *table,
|
|
62
62
|
unsigned FAR *bits, unsigned short FAR *work);
|
|
63
|
+
struct inflate_state;
|
|
64
|
+
void ZLIB_INTERNAL inflate_fixed(struct inflate_state FAR *state);
|