Bug 59822 - Potentially uninitialized variable in iconv.c apr_iconv_open()
Summary: Potentially uninitialized variable in iconv.c apr_iconv_open()
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:46 UTC by Marc Stern
Modified: 2016-07-08 19:54 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:46:34 UTC
In apr_iconv_open(), the variable 'data' may be uninitialized on line 97.

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++)