Apache Thrift
This report summarizes scanner evidence for apache/thrift, a C++ project with 10,961 GitHub stars. SynthScan examined 379,325 lines of code across 1960 source files, recording 1507 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 4.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1359 finding(s).
Are imports declared and package/API names verified? 55 finding(s).
Are wrappers, guards, and repeated structures necessary? 451 finding(s).
Which changes need focused human review? 1507 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1507 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # | COMMENT |
| LOW | appveyor.yml | 1 | # | COMMENT |
| LOW | appveyor.yml | 81 | # PROFILE_CLASS: CYGWIN | COMMENT |
| LOW | appveyor.yml | 101 | # type: zip | COMMENT |
| LOW | bootstrap.sh | 1 | #!/bin/sh | COMMENT |
| LOW | .travis.yml | 1 | # | COMMENT |
| LOW | .travis.yml | 101 | - SCRIPT="sca.sh" | COMMENT |
| LOW | tutorial/py.twisted/PythonServer.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/py.twisted/PythonClient.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/py/PythonServer.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/py/PythonClient.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/dart/build.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tutorial/dart/server/pubspec.yaml | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/dart/server/bin/main.dart | 1 | /// Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/dart/console_client/pubspec.yaml | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/dart/console_client/bin/main.dart | 1 | /// Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/dart/client/pubspec.yaml | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/dart/client/web/client.dart | 1 | /// Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/haxe/make_all.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tutorial/perl/PerlClient.pl | 1 | #!/usr/bin/env perl | COMMENT |
| LOW | tutorial/perl/PerlServer.pl | 1 | #!/usr/bin/env perl | COMMENT |
| LOW | tutorial/netstd/build.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tutorial/netstd/smoketest.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tutorial/netstd/Server/Program.cs | 1 | // Licensed to the Apache Software Foundation(ASF) under one | COMMENT |
| LOW | tutorial/netstd/Server/Properties/AssemblyInfo.cs | 1 | // Licensed to the Apache Software Foundation(ASF) under one | COMMENT |
| LOW | tutorial/netstd/Client/Program.cs | 1 | // Licensed to the Apache Software Foundation(ASF) under one | COMMENT |
| LOW | tutorial/netstd/Client/Properties/AssemblyInfo.cs | 1 | // Licensed to the Apache Software Foundation(ASF) under one | COMMENT |
| LOW | tutorial/netstd/Interfaces/GlobalSuppressions.cs | 1 | // Licensed to the Apache Software Foundation(ASF) under one | COMMENT |
| LOW | tutorial/netstd/Interfaces/Properties/AssemblyInfo.cs | 1 | // Licensed to the Apache Software Foundation(ASF) under one | COMMENT |
| LOW | tutorial/rs/src/lib.rs | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/rs/src/bin/tutorial_client.rs | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/rs/src/bin/tutorial_server.rs | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tutorial/c_glib/c_glib_server.c | 21 | #include <signal.h> | COMMENT |
| LOW | tutorial/php/runserver.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/cpp/CppServer.cpp | 21 | #include <thrift/concurrency/ThreadFactory.h> | COMMENT |
| LOW | tutorial/cpp/CMakeLists.txt | 1 | # | COMMENT |
| LOW | tutorial/erl/server.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tutorial/erl/client.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tutorial/py.tornado/PythonServer.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/py.tornado/PythonClient.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tutorial/rb/RubyClient.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | tutorial/rb/RubyServer.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | test/test.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | test/py.twisted/test_suite.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/CMakeLists.txt | 1 | # | COMMENT |
| LOW | test/py/TestSocket.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/util.py | 1 | # | COMMENT |
| LOW | test/py/TestSyntax.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/TSimpleJSONProtocolTest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/TestFrozen.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/TestTypes.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/RunClientServer.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/TestRenderedDoubleConstants.py | 1 | # | COMMENT |
| LOW | test/py/TestClient.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/SerializationTest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/FastbinaryTest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/TestEof.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/TestServer.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | test/py/explicit_module/runtest.sh | 1 | #!/bin/bash | COMMENT |
| LOW | test/py/explicit_module/EnumSerializationTest.py | 1 | #!/usr/bin/env python | COMMENT |
| 867 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/py/TestFrozen.py | 41 | def test_dict_is_hashable_only_after_frozen(self): | CODE |
| LOW | test/py/TestFrozen.py | 47 | def test_struct_with_collection_fields(self): | CODE |
| LOW | test/py/TestFrozen.py | 107 | def test_frozen_exception_with_no_fields(self): | CODE |
| LOW | test/py/TestFrozen.py | 110 | def test_frozen_exception_serialization(self): | CODE |
| LOW | test/py/TestRenderedDoubleConstants.py | 40 | def test_rendered_double_constants(self): | CODE |
| LOW | test/py/TestRenderedDoubleConstants.py | 160 | def test_rendered_double_list(self): | CODE |
| LOW⚡ | test/py/explicit_module/EnumSerializationTest.py | 39 | def serialization_deserialization_struct_enum_test(): | CODE |
| LOW⚡ | test/py/explicit_module/EnumSerializationTest.py | 48 | def serialization_deserialization_struct_enum_as_string_test(): | CODE |
| LOW⚡ | test/py/explicit_module/EnumSerializationTest.py | 57 | def serialization_deserialization_exception_enum_as_string_test(): | CODE |
| LOW⚡ | test/py/explicit_module/EnumSerializationTest.py | 66 | def serialization_deserialization_exception_enum_test(): | CODE |
| LOW | test/crossrunner/report.py | 300 | def _print_unexpected_failure(self): | CODE |
| LOW | test/crossrunner/report.py | 324 | def _print_unexpected_success(self): | CODE |
| LOW⚡ | lib/py/test/test_twisted_frame_size.py | 70 | def test_the_server_closes_a_connection_whose_frame_is_over_the_maximum(self): | CODE |
| LOW⚡ | lib/py/test/test_twisted_frame_size.py | 76 | def test_the_server_waits_for_a_frame_at_the_maximum(self): | CODE |
| LOW⚡ | lib/py/test/test_twisted_frame_size.py | 82 | def test_the_server_still_receives_an_ordinary_frame(self): | CODE |
| LOW⚡ | lib/py/test/test_twisted_frame_size.py | 88 | def test_the_client_closes_a_connection_whose_frame_is_over_the_maximum(self): | CODE |
| LOW⚡ | lib/py/test/test_twisted_frame_size.py | 94 | def test_every_protocol_is_held_to_the_maximum(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 89 | def test_the_default_is_exported(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 93 | def test_protocols_and_factories_default_to_the_limit(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 103 | def test_binary_refuses_a_string_over_the_default_limit(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 108 | def test_compact_refuses_a_string_over_the_default_limit(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 115 | def test_the_default_limit_is_the_boundary(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 124 | def test_an_old_style_message_name_is_bounded(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 130 | def test_an_old_style_message_name_honours_an_explicit_limit(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 135 | def test_an_explicit_limit_still_applies(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 140 | def test_a_string_within_the_limit_still_reads(self): | CODE |
| LOW⚡ | lib/py/test/test_protocol_string_length_limit.py | 144 | def test_none_still_means_no_limit(self): | CODE |
| LOW | lib/py/test/test_protocol_string_length_limit.py | 169 | def test_binary_refuses_a_string_over_the_default_limit(self): | CODE |
| LOW | lib/py/test/test_protocol_string_length_limit.py | 174 | def test_compact_refuses_a_string_over_the_default_limit(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 146 | def test_declared_count_does_not_size_the_allocation(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 160 | def test_short_payload_still_reports_the_truncation(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 167 | def test_small_container_still_decodes(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 202 | def test_immutable_list_is_a_tuple(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 208 | def test_immutable_set_is_a_frozenset(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 274 | def test_immutable_list_is_a_tuple(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 293 | def test_immutable_set_is_a_frozenset(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 381 | def test_descent_stops_at_the_nesting_limit(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 393 | def test_each_level_reserves_a_bounded_amount(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 126 | def test_an_oversized_negotiation_payload_is_refused(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 136 | def test_a_negotiation_payload_within_the_maximum_still_reads(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 145 | def test_an_empty_negotiation_payload_still_reads(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 157 | def test_an_oversized_data_frame_is_refused(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 166 | def test_a_negative_data_frame_length_is_refused(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 175 | def test_a_data_frame_within_the_maximum_still_reads(self): | CODE |
| LOW⚡ | lib/py/test/test_sasl_frame_size.py | 184 | def test_an_empty_data_frame_is_still_accepted(self): | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 119 | def test_after_flushd_write_then_read(self): | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 145 | def test_decompressed_size_limit_exceeded(self): | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 162 | def test_decompressed_size_limit_not_exceeded(self): | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 178 | def test_whole_decompressed_size_limit_can_be_read_in_parts(self): | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 189 | def test_no_data_is_read_once_the_decompressed_size_limit_is_used_up(self): | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 204 | def test_max_decompressed_size_is_validated(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 64 | def test_open_with_none_initial_response(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 81 | def test_open_with_bytes_initial_response(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 95 | def test_open_complete_with_challenge(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 108 | def test_open_complete_without_challenge(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 121 | def test_open_bad_status_raises(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 133 | def test_open_incomplete_after_complete_status_raises(self): | CODE |
| LOW | lib/py/test/test_sasl_transport.py | 146 | def test_open_process_raises_during_complete(self): | CODE |
| LOW | lib/py/test/thrift_TBinaryProtocol.py | 356 | def test_skip_rejects_deeply_nested_struct(self): | CODE |
| LOW | lib/py/test/thrift_TBinaryProtocol.py | 364 | def test_skip_accepts_struct_within_depth_limit(self): | CODE |
| 297 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/py.twisted/test_suite.py | 185 | except TApplicationException: | CODE |
| HIGH | test/py/RunClientServer.py | 115 | except ProcessLookupError: | CODE |
| HIGH | test/py/RunClientServer.py | 108 | except PermissionError: | CODE |
| HIGH | test/py/RunClientServer.py | 230 | except OSError: | CODE |
| HIGH | test/py/TestClient.py | 255 | except TException: | CODE |
| HIGH | test/py/TestServer.py | 320 | except Exception: | CODE |
| HIGH | test/py.tornado/test_suite.py | 217 | except TApplicationException: | CODE |
| HIGH | lib/py/setup.py | 33 | except AttributeError: | CODE |
| HIGH | lib/py/test/test_container_sizing.py | 137 | except Exception: | CODE |
| HIGH | lib/py/test/test_sslsocket.py | 419 | except Exception: | CODE |
| HIGH | lib/py/test/test_sslsocket.py | 511 | except Exception: | CODE |
| HIGH | lib/py/test/test_sslsocket.py | 397 | except Exception: | CODE |
| HIGH | lib/py/test/fuzz/fuzz_common.py | 83 | except Exception: | CODE |
| HIGH | lib/py/test/fuzz/fuzz_common.py | 121 | except Exception: | CODE |
| HIGH | lib/py/src/transport/TSSLSocket.py | 290 | except (ssl.SSLError, socket.error, OSError): | CODE |
| HIGH | lib/py/src/server/TServer.py | 152 | except TTransport.TTransportException: | CODE |
| HIGH | lib/py/src/server/TServer.py | 202 | except TTransport.TTransportException: | CODE |
| HIGH | lib/py/src/server/TServer.py | 103 | except TTransport.TTransportException: | CODE |
| HIGH | lib/py/src/server/TServer.py | 308 | except TTransport.TTransportException: | CODE |
| HIGH | lib/py/src/server/TServer.py | 296 | except TTransport.TTransportException: | CODE |
| HIGH | lib/py/src/server/TProcessPoolServer.py | 85 | except TTransportException: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 116 | ## AI generated content ## | COMMENT |
| HIGH | AGENTS.md | 20 | - **Generative AI output**: The [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) | CODE |
| HIGH | lib/rs/README.md | 59 | The Rust library and auto-generated code target Rust versions 1.65+. The | CODE |
| HIGH | lib/rs/README.md | 218 | Previously, enum variants were uppercased in the auto-generated code. | CODE |
| HIGH | lib/rs/README.md | 271 | All library code, test code and auto-generated code compiles and passes clippy | CODE |
| HIGH | lib/rs/README.md | 275 | * `clippy` with default settings does not output any warnings (includes auto-generated code) | COMMENT |
| HIGH | lib/rs/src/errors.rs | 38 | /// 3. `Application`: errors encountered within auto-generated code | COMMENT |
| HIGH | lib/rs/src/errors.rs | 178 | /// Errors encountered within auto-generated code, or when incoming | COMMENT |
| HIGH | lib/rs/src/errors.rs | 563 | /// Information about errors in auto-generated code or in user-implemented | COMMENT |
| HIGH | lib/rs/src/errors.rs | 606 | /// Auto-generated code failed unexpectedly. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/py/TestSocket.py | 40 | except Exception: | CODE |
| LOW | test/py/TestSocket.py | 54 | except Exception: | CODE |
| LOW | test/py/TestSocket.py | 68 | except Exception: | CODE |
| LOW | test/py/RunClientServer.py | 225 | except Exception as exc: | CODE |
| LOW | test/py/TestClient.py | 297 | except Exception as e: | CODE |
| LOW | test/py/TestServer.py | 320 | except Exception: | CODE |
| LOW | test/crossrunner/run.py | 126 | except Exception: | CODE |
| LOW | test/crossrunner/run.py | 260 | except Exception: | CODE |
| LOW | test/crossrunner/run.py | 265 | except Exception: | CODE |
| LOW | test/crossrunner/report.py | 192 | except Exception as ex: | CODE |
| LOW | test/features/string_limit.py | 73 | except Exception: | CODE |
| LOW | test/features/container_limit.py | 83 | except Exception: | CODE |
| LOW | contrib/zeromq/TZmqServer.py | 41 | except Exception: | CODE |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 62 | except Exception: | CODE |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 72 | except Exception: | CODE |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 83 | except Exception: | CODE |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 94 | except Exception: | CODE |
| MEDIUM | lib/py/setup.py | 151 | print("An error occurred while trying to compile with the C extension enabled") | CODE |
| LOW | lib/py/test/thrift_TCompactProtocol.py | 301 | except Exception as e: | CODE |
| MEDIUM | lib/py/test/thrift_TCompactProtocol.py | 225 | def test_TCompactProtocol_write_read(self): | CODE |
| LOW | lib/py/test/test_container_sizing.py | 137 | except Exception: | CODE |
| LOW | lib/py/test/thrift_TZlibTransport.py | 90 | except Exception as e: | CODE |
| LOW | lib/py/test/thrift_TBinaryProtocol.py | 295 | except Exception as e: | CODE |
| LOW | lib/py/test/thrift_TBinaryProtocol.py | 335 | except Exception as e: | CODE |
| MEDIUM | lib/py/test/thrift_TBinaryProtocol.py | 208 | def setUp(self): | CODE |
| LOW⚡ | lib/py/test/test_sslsocket.py | 419 | except Exception: | CODE |
| LOW | lib/py/test/test_sslsocket.py | 85 | except Exception: | CODE |
| LOW | lib/py/test/test_sslsocket.py | 397 | except Exception: | CODE |
| LOW | lib/py/test/test_sslsocket.py | 506 | except Exception: | CODE |
| LOW | lib/py/test/test_sslsocket.py | 511 | except Exception: | CODE |
| LOW | lib/py/test/fuzz/fuzz_common.py | 83 | except Exception: | CODE |
| LOW | lib/py/test/fuzz/fuzz_common.py | 121 | except Exception: | CODE |
| LOW | lib/py/src/TTornado.py | 223 | except Exception: | CODE |
| MEDIUM | lib/py/src/TTornado.py | 61 | def _lock_context(self): | CODE |
| LOW | lib/py/src/transport/TTransport.py | 189 | except Exception as e: | CODE |
| MEDIUM | lib/py/src/transport/TTransport.py | 186 | def write(self, buf): | CODE |
| LOW | lib/py/src/transport/TSSLSocket.py | 311 | except Exception as ex: | CODE |
| LOW | lib/py/src/transport/TSSLSocket.py | 334 | except Exception as ex: | CODE |
| LOW | lib/py/src/transport/TSSLSocket.py | 438 | except Exception: | CODE |
| MEDIUM | lib/py/src/transport/TSSLSocket.py | 286 | def close(self): | CODE |
| LOW | lib/py/src/server/TServer.py | 105 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 132 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 154 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 181 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 204 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 218 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 229 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TServer.py | 298 | except Exception as e: | CODE |
| LOW | lib/py/src/server/TServer.py | 310 | except Exception as x: | CODE |
| MEDIUM | lib/py/src/server/TServer.py | 251 | def try_close(file): | CODE |
| LOW | lib/py/src/server/TProcessPoolServer.py | 72 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TProcessPoolServer.py | 87 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TProcessPoolServer.py | 108 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TProcessPoolServer.py | 119 | except Exception as x: | CODE |
| LOW | lib/py/src/server/TNonblockingServer.py | 61 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/py/TestSyntax.py | 23 | CODE | |
| LOW | test/py/TestSyntax.py | 24 | CODE | |
| LOW | test/py/explicit_module/EnumSerializationTest.py | 22 | CODE | |
| LOW | test/crossrunner/__init__.py | 20 | CODE | |
| LOW | test/crossrunner/__init__.py | 21 | CODE | |
| LOW | test/crossrunner/__init__.py | 21 | CODE | |
| LOW | test/crossrunner/__init__.py | 22 | CODE | |
| LOW | test/crossrunner/__init__.py | 23 | CODE | |
| LOW | test/crossrunner/__init__.py | 23 | CODE | |
| LOW | test/features/util.py | 23 | CODE | |
| LOW | test/features/string_limit.py | 26 | CODE | |
| LOW | test/features/theader_binary.py | 27 | CODE | |
| LOW | test/features/container_limit.py | 26 | CODE | |
| LOW | contrib/async-test/test-leaf.py | 24 | CODE | |
| LOW | contrib/async-test/test-leaf.py | 25 | CODE | |
| LOW | contrib/zeromq/TZmqClient.py | 19 | CODE | |
| LOW | contrib/fb303/py/setup.py | 22 | CODE | |
| LOW | contrib/fb303/py/setup.py | 24 | CODE | |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 26 | CODE | |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 32 | CODE | |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 33 | CODE | |
| LOW | lib/py/test/test_twisted_frame_size.py | 33 | CODE | |
| LOW | lib/py/test/test_protocol_string_length_limit.py | 34 | CODE | |
| LOW | lib/py/test/thrift_TCompactProtocol.py | 20 | CODE | |
| LOW | lib/py/test/test_container_sizing.py | 35 | CODE | |
| LOW | lib/py/test/test_sasl_frame_size.py | 37 | CODE | |
| LOW | lib/py/test/thrift_TZlibTransport.py | 24 | CODE | |
| LOW | lib/py/test/thrift_TBinaryProtocol.py | 24 | CODE | |
| LOW | lib/py/test/thrift_TBinaryProtocol.py | 210 | CODE | |
| LOW | lib/py/test/test_immutable_exception.py | 195 | CODE | |
| LOW | lib/py/test/test_socket.py | 26 | CODE | |
| LOW | lib/py/test/test_http_server_content_length.py | 35 | CODE | |
| LOW | lib/py/test/test_recursion_depth.py | 34 | CODE | |
| LOW | lib/py/test/test_recursion_depth.py | 166 | CODE | |
| LOW | lib/py/test/test_recursion_depth.py | 388 | CODE | |
| LOW | lib/py/test/thrift_THeaderProtocol.py | 23 | CODE | |
| LOW | lib/py/test/test_http_server_body_size.py | 35 | CODE | |
| LOW | lib/py/test/thrift_json.py | 22 | CODE | |
| LOW | lib/py/test/thrift_TNonblockingServer.py | 28 | CODE | |
| LOW | lib/py/test/test_nonblocking_server_select_progress.py | 38 | CODE | |
| LOW | lib/py/test/test_sslsocket.py | 34 | CODE | |
| LOW | lib/py/test/test_nonblocking_server_read_buffer.py | 31 | CODE | |
| LOW | lib/py/test/test_framed_frame_size.py | 36 | CODE | |
| LOW | lib/py/test/thrift_transport.py | 25 | CODE | |
| LOW | lib/py/test/test_nonblocking_server_frame_size.py | 34 | CODE | |
| LOW | lib/py/test/test_tornado_frame_size.py | 34 | CODE | |
| LOW | lib/py/test/thrift_TSerializer.py | 29 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tutorial/py.twisted/PythonServer.py | 52 | CODE | |
| LOW | tutorial/py/PythonServer.py | 49 | CODE | |
| LOW | tutorial/py.tornado/PythonServer.py | 50 | CODE | |
| LOW | test/py/RunClientServer.py | 148 | CODE | |
| LOW | test/py/RunClientServer.py | 289 | CODE | |
| LOW | test/py/TestClient.py | 458 | CODE | |
| LOW | test/py/TestClient.py | 38 | CODE | |
| LOW | test/crossrunner/collect.py | 58 | CODE | |
| LOW | test/crossrunner/collect.py | 85 | CODE | |
| LOW | test/crossrunner/collect.py | 66 | CODE | |
| LOW | test/crossrunner/run.py | 154 | CODE | |
| LOW | test/crossrunner/run.py | 85 | CODE | |
| LOW | test/crossrunner/run.py | 115 | CODE | |
| LOW | test/crossrunner/run.py | 157 | CODE | |
| LOW | test/crossrunner/report.py | 423 | CODE | |
| LOW | contrib/fb303/py/fb303_scripts/fb303_simple_mgmt.py | 112 | CODE | |
| LOW | lib/py/test/thrift_TCompactProtocol.py | 38 | CODE | |
| LOW | lib/py/test/thrift_TCompactProtocol.py | 121 | CODE | |
| LOW | lib/py/test/test_container_sizing.py | 146 | CODE | |
| LOW | lib/py/test/test_container_sizing.py | 381 | CODE | |
| LOW | lib/py/test/test_socket.py | 62 | CODE | |
| LOW | lib/py/test/test_compiler/test_keyword_escape.py | 66 | CODE | |
| LOW | lib/py/test/fuzz/fuzz_common.py | 26 | CODE | |
| LOW | lib/py/src/TRecursive.py | 28 | CODE | |
| LOW | lib/py/src/TTornado.py | 205 | CODE | |
| LOW | lib/py/src/Thrift.py | 113 | CODE | |
| LOW | lib/py/src/Thrift.py | 139 | CODE | |
| LOW | lib/py/src/transport/TTransport.py | 422 | CODE | |
| LOW | lib/py/src/transport/TTwisted.py | 154 | CODE | |
| LOW | lib/py/src/transport/THttpClient.py | 37 | CODE | |
| LOW | lib/py/src/server/TServer.py | 250 | CODE | |
| LOW | lib/py/src/server/TNonblockingServer.py | 135 | CODE | |
| LOW | lib/py/src/server/TNonblockingServer.py | 338 | CODE | |
| LOW | lib/py/src/server/TNonblockingServer.py | 378 | CODE | |
| LOW | lib/py/src/protocol/TJSONProtocol.py | 279 | CODE | |
| LOW | lib/py/src/protocol/TProtocol.py | 436 | CODE | |
| LOW | lib/py/src/protocol/TProtocol.py | 209 | CODE | |
| LOW | lib/py/src/protocol/TProtocol.py | 343 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …/src/main/java/org/apache/thrift/partial/Validate.java | 223 | org.apache.commons.lang3.Validate.isTrue(expression, format, args); | CODE |
| CRITICAL | …/src/main/java/org/apache/thrift/partial/Validate.java | 227 | org.apache.commons.lang3.Validate.validState(expression, format, args); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/fb303/py/fb303_scripts/__init__.py | 20 | __all__ = ['fb303_simple_mgmt'] | CODE |
| LOW | lib/py/src/__init__.py | 20 | __all__ = ['Thrift', 'TSCons'] | CODE |
| LOW | lib/py/src/TTornado.py | 33 | __all__ = ['TTornadoServer', 'TTornadoStreamTransport'] | CODE |
| LOW | lib/py/src/TTornado.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/transport/TSSLSocket.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/transport/__init__.py | 20 | __all__ = ['TTransport', 'TSocket', 'THttpClient', 'TZlibTransport'] | CODE |
| LOW | lib/py/src/transport/TSocket.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/transport/sslcompat.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/server/__init__.py | 20 | __all__ = ['TServer', 'TNonblockingServer'] | CODE |
| LOW | lib/py/src/server/TServer.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/server/TProcessPoolServer.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/server/TNonblockingServer.py | 40 | __all__ = ['TNonblockingServer'] | CODE |
| LOW | lib/py/src/server/TNonblockingServer.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | lib/py/src/protocol/TJSONProtocol.py | 28 | __all__ = ['TJSONProtocol', | CODE |
| LOW | lib/py/src/protocol/__init__.py | 20 | __all__ = ['fastbinary', 'TBase', 'TBinaryProtocol', 'TCompactProtocol', | CODE |
| LOW | lib/py/src/protocol/TCompactProtocol.py | 25 | __all__ = ['TCompactProtocol', 'TCompactProtocolFactory'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tutorial/py/PythonClient.py | 46 | # Create a client to use the protocol encoder | COMMENT |
| MEDIUM | lib/py/test/fuzz/fuzz_common.py | 75 | # Create a memory buffer with the fuzzed data | COMMENT |
| MEDIUM | lib/py/test/fuzz/fuzz_common.py | 105 | # Create a memory buffer with the fuzzed data | COMMENT |
| MEDIUM | lib/rb/spec/header_transport_spec.rb | 526 | # Create a framed binary message | COMMENT |
| MEDIUM | lib/rb/spec/header_transport_spec.rb | 539 | # Create an unframed binary message (version word first) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | compiler/cpp/test/compiler/exception_doc_test.py | 59 | self.assertIn("second line uses a < b && c > d", content) | CODE |
| HIGH⚡ | compiler/cpp/test/compiler/exception_doc_test.py | 69 | self.assertIn("second line uses a < b && c > d", content) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/Rebus/ServiceImpl/Both.cs | 31 | // specific containers (one per Thrift service) to leverage Rebus' handler routing | COMMENT |
| MEDIUM | contrib/transport-sample/client/client.cpp | 4 | // Quick n Dirty example, may not have very robust error handling | COMMENT |
| MEDIUM | .github/workflows/build.yml | 468 | # lib/javame has no build harness -- no Makefile.am, no configure.ac | COMMENT |
| MEDIUM | .github/workflows/build.yml | 648 | # The harness throws and Sys.exit(1)s on a failed assertion, so a failing | COMMENT |
| LOW | lib/py/src/transport/THeaderTransport.py | 179 | # if we've determined this is an unframed client, just pass the read | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/py/test/test_compiler/test_keyword_escape.py | 49 | # Check if we're in the source tree with built compiler | COMMENT |
| LOW | lib/netstd/runfuzzer.sh | 30 | # Check if a fuzzer name and type were provided | COMMENT |
| LOW | lib/rb/lib/thrift/protocol/json_protocol.rb | 277 | # Check if regular character, backslash escaped, or JSON escaped | COMMENT |
| LOW | lib/rb/lib/thrift/protocol/json_protocol.rb | 694 | # Check if we hit the end of the list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/cpp/src/thrift/transport/TBufferTransports.h | 811 | // Don't forget to update constrctors, initCommon, and swap if | COMMENT |
| LOW | lib/cpp/src/thrift/async/TEvhttpServer.cpp | 75 | // Don't forget to unregister before destorying this TEvhttpServer. | COMMENT |
| MEDIUM | lib/rb/ext/extconf.rb | 36 | # with other gems. To explicitly export symbols you can use RUBY_FUNC_EXPORTED | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/netstd/buildfuzzers.sh | 89 | # Step 1: Generate C# code from FuzzTest.thrift | COMMENT |
| LOW | lib/netstd/buildfuzzers.sh | 103 | # Step 2: Build all fuzzer projects | COMMENT |
| LOW | lib/netstd/buildfuzzers.sh | 131 | # Step 3: Instrument the assemblies | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/netstd/buildfuzzers.sh | 89 | # Step 1: Generate C# code from FuzzTest.thrift | COMMENT |
| LOW | lib/netstd/buildfuzzers.sh | 103 | # Step 2: Build all fuzzer projects | COMMENT |
| LOW | lib/netstd/buildfuzzers.sh | 131 | # Step 3: Instrument the assemblies | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/go/test/tests/header_zlib_test.go | 117 | const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do | CODE |
| LOW | lib/go/test/tests/header_zlib_test.go | 117 | const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do | CODE |
| LOW | lib/go/thrift/binary_protocol_test.go | 37 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sit amet | CODE |
| LOW | lib/go/thrift/binary_protocol_test.go | 37 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sit amet | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/audit/thrift_audit_test.pl | 258 | # ----------------------------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …td/Tests/Thrift.Tests/Collections/TCollectionsTests.cs | 32 | //TODO: Add tests for IEnumerable with objects and primitive values inside | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/rb/lib/thrift/protocol/header_protocol.rb | 29 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/py/src/transport/TZlibTransport.py | 206 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/py/src/protocol/TCompactProtocol.py | 39 | def helper(func): | CODE |