Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-625

Automatically allocated function local variable address overwrites function parameter

XMLWordPrintable

      I went through the cppcheck static analysis report on the current mod_proxy_cluster code base, see cppcheck.log, and among many warnings and style check failures, there was a one outstanding error reported, which set me wondering.

      The error occurs on two places and I'm scratching my head as to whether is is a false positive or not, WDYT?

      Is it O.K. to handle local, function scope, automatically allocated variable this way? To use it's address later in ap_slotmem_do? Couldn't it trigger undefined behaviour and cause some of our rare, hard to reproduce crashes?

      Feel free to pick up any other pertinent messages from the log.

            gzaronik@redhat.com George Zaronikas
            mbabacek1@redhat.com Michal Karm
            Michal Karm Michal Karm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: