You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/07/07 11:40:24 UTC

[Bug 59820] New: Potentially uninitialized variable in server/mpm/winnt/service.c

https://bz.apache.org/bugzilla/show_bug.cgi?id=59820

            Bug ID: 59820
           Summary: Potentially uninitialized variable in
                    server/mpm/winnt/service.c
           Product: Apache httpd-2
           Version: 2.4.23
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mpm_winnt
          Assignee: bugs@httpd.apache.org
          Reporter: marc.stern@approach.be

In mpm_service_install(), the variables 'launch_cmd_w' & 'display_name_w' may
be uninitialized on line 835.

1. There could be a real problem
2. In case the flows ensure that it is initialized, it should be explicit
because a modification could break this
3. It generates a warning on some compilers
4. Safe compilers options may prevent the build (ex: /SDL in Visual C++)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59820] Potentially uninitialized variable in server/mpm/winnt/service.c

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59820

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
In fact no, this can't happen, because the initialization and the use of these
variables is guarded by:

#if APR_HAS_UNICODE_FS
        IF_WIN_OS_IS_UNICODE

If I've miss read something, do not hesitate to re-open and élaborate.

Anyway, thanks for the report (and sorry for the long delay)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org