[Home]

Summary:ASTERISK-27768: [patch] app_voicemail: Two variables may be uninitialized.
Reporter:Alexander Traud (traud)Labels:patch
Date Opened:2018-03-23 07:17:59Date Closed:2020-01-14 12:28:28.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:15.3.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_voicemail_init.patch
Description:{{./configure && make}} and Gentoo Linux 17.0 (GCC 6.4.0) reports:
{code}warning: 'new' may be used uninitialized in this function [-Wmaybe-uninitialized]
warning: 'old' may be used uninitialized in this function [-Wmaybe-uninitialized]{code}This does not happen, when optimization is level 2 or lower, like off. This does not happen in the alternative compiler _clang_ or GCC 7. It is just GCC 6 with (Asterisk's default of) -O3.

Although the attached path fixes this, I am not happy with it. Therefore, it is not planned to submit that patch for review. Perhaps one day, I find the time to investigate what GCC is doing exactly. Especially because that happens only at -O3 and higher. -O2 and lower, everything is fine.

ASTERISK-27580 is similar because that happens at -O3 only as well. However on this platform, ASTERISK-27580 does not happen at all. Go figure!
Comments:By: Asterisk Team (asteriskteam) 2018-03-23 07:18:00.045-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Sean Bright (seanbright) 2020-01-14 12:28:28.741-0600

This code does not appear to exist anymore in supported versions. If you feel this was closed in error, you can re-open the ticket by commenting.