Bug 59817 - Potentially uninitialized variable in iconv_ces_euc.c apr_iconv_euc_convert_to_ucs()
Summary: Potentially uninitialized variable in iconv_ces_euc.c apr_iconv_euc_convert_t...
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-iconv (show other bugs)
Version: 1.5.2
Hardware: All All
: P2 critical (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 11:21 UTC by Marc Stern
Modified: 2019-01-11 06:00 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:21:13 UTC
In apr_iconv_euc_convert_to_ucs(), the variable 'ptr' may be uninitialized on line 177.

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