Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 828
    • Issues 828
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #26078
Closed
Open
Created May 11, 2018 by George Kadianakis@asnContributor

CID 1435546: Error handling issues (CHECKED_RETURN)

Got a new coverity report today:

*** CID 1435546:  Error handling issues  (CHECKED_RETURN)
/src/common/compat_libevent.c: 286 in periodic_timer_disable()
280      * If the timer is already disabled, this function does nothing.
281      */
282     void
283     periodic_timer_disable(periodic_timer_t *timer)
284     {
285       tor_assert(timer);
>>>     CID 1435546:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "event_del" without checking return value (as is done elsewhere 4 out of 5 times).
286       event_del(timer->ev);
287     }
288     
289     /** Stop and free a periodic timer */
290     void
291     periodic_timer_free_(periodic_timer_t *timer)

Seems to be related to legacy/trac#26063 (moved).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking