Opened 5 years ago

#13112 new Bugs

uninitialized pointer fields in asio epoll_reactor

Reported by: ben@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.66.0 Severity: Problem
Keywords: Cc:

Description

https://github.com/boostorg/asio/blob/develop/include/boost/asio/detail/impl/epoll_reactor.ipp

This was found by a Coverity scan. I can't see a fix for this in the pipeline at all on the latest version. Details from the Coverity scan are below:

627epoll_reactor::descriptor_state::descriptor_state()
628  : operation(&epoll_reactor::descriptor_state::do_complete)
629{
   
5. uninit_member: Non-static class member next_ is not initialized in this constructor nor in any functions that it calls.
   
7. uninit_member: Non-static class member prev_ is not initialized in this constructor nor in any functions that it calls.
   
9. uninit_member: Non-static class member reactor_ is not initialized in this constructor nor in any functions that it calls.
   
11. uninit_member: Non-static class member descriptor_ is not initialized in this constructor nor in any functions that it calls.
   
13. uninit_member: Non-static class member registered_events_ is not initialized in this constructor nor in any functions that it calls.
   
CID 256705: Uninitialized pointer field (UNINIT_CTOR)15. uninit_member: Non-static class member shutdown_ is not initialized in this constructor nor in any functions that it calls.
630}


Change History (0)

Note: See TracTickets for help on using tickets.