You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "bryancall (via GitHub)" <gi...@apache.org> on 2026/03/25 23:34:48 UTC

[PR] Initialize uninitialized pointer and scalar members in QUIC and tscpp classes [trafficserver]

bryancall opened a new pull request, #13023:
URL: https://github.com/apache/trafficserver/pull/13023

   ## Summary
   
   Add default member initializers for pointer, scalar, and enum members
   that Coverity flagged as uninitialized in QUIC transport and C++ plugin
   API classes:
   
   - `QUICStreamError::stream` → `{nullptr}`
   - `QUICSentPacketInfo` fields: `packet_number`, `ack_eliciting`, `in_flight`, `sent_bytes`, `time_sent`, `type`, `pn_space`
   - `QUICSentPacketInfo::FrameInfo::_generator` → `{nullptr}`
   - `QUICTransferProgressProviderSA::_adapter` → `{nullptr}`
   - `InterceptPlugin::state_` → `{nullptr}`
   - `AsyncTimer::state_` → `{nullptr}`
   
   These are all simple in-class brace initializers with zero behavioral
   change — every construction path already assigns these members, but
   Coverity correctly notes that between base-class initialization and the
   constructor body they are indeterminate.
   
   ## Test plan
   
   - [x] Full build passes (macOS, default preset, ninja)
   - [x] All pre-commit hooks pass (clang-format, yapf, cmake-format, whitespace, line endings)
   - [ ] CI


-- 
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: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Initialize uninitialized pointer and scalar members in QUIC and tscpp classes [trafficserver]

Posted by "bryancall (via GitHub)" <gi...@apache.org>.
bryancall merged PR #13023:
URL: https://github.com/apache/trafficserver/pull/13023


-- 
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: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org