JakeChampion opened a new pull request, #12478: URL: https://github.com/apache/trafficserver/pull/12478
The compress plugin was experiencing crashes due to signed/unsigned type mismatches when comparing compression output lengths: ``` [ET_NET 4] ERROR: <InkAPI.cc:250 (TSError)> [/trafficserver/plugins/compress/compress.cc:507] [brotli_transform_finish] ERROR: brotli-transform: output lengths don't match (-2102735855, 2192231441) Fatal: /trafficserver/src/api/InkIOCoreAPI.cc:356: failed assertion `nbytes >= 0` traffic_server: received signal 6 (Aborted) ``` The issue occurred when comparing data->downstream_length (int, 32-bit signed) with compression library output counters (unsigned types). Large compression outputs caused integer overflow when casting unsigned values to signed types, resulting in the assertion failure. Fixed by: - Cast downstream_length to match each compression library's native type - Correct printf format specifiers (%lu for uLong, %zu for size_t) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
