java-topology/defects/thrift/patch/CLEAN.md
russell@unturf.com 068ebbd29f cpp-systems: tor CLEAN.md updated to note existing patches tor-0001/0002/0003
Scanned bitcoin/dragonfly/tor/transmission/nmap/ceph/allegro5 for additional
CWE-407 defects. All repos found CLEAN beyond previously recorded patches.
Updated tor/CLEAN.md to correctly reference existing tor-0001 through tor-0003.
2026-03-29 19:54:59 -04:00

575 B

CLEAN — Apache Thrift (Java)

Scanned 2026-03-29 for CWE-407 (algorithmic complexity).

Scope

Library: lib/java/src — TBinaryProtocol, TCompactProtocol, TJSONProtocol, partial Thrift comparer, service processor infrastructure.

Findings

partial/PartialThriftComparer — s2.contains()

s2 is cast from parameter Object o2 and the cast target is Set<Object>:

Set<Object> s2 = (Set<Object>) o2;
if (!s2.contains(e1)) { ... }

O(1) set membership. Clean.

Result

CLEAN. No actionable CWE-407 defects found in Apache Thrift (Java library).