Bug 59818 - Potentially uninitialized variable in apr_thread_pool.c trim_idle_threads()
Summary: Potentially uninitialized variable in apr_thread_pool.c trim_idle_threads()
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-iconv (show other bugs)
Version: 1.5.2
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 11:25 UTC by Marc Stern
Modified: 2016-07-08 19:55 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Stern 2016-07-07 11:25:21 UTC
In trim_idle_threads(), the variable 'tail' may be uninitialized on line 849.

1. The flows actually ensure that it is initialized but it's not explicit
2. It generates a warning on some compilers
3. Safe compilers options may prevent the build (ex: /SDL in Visual C++)