[asterisk-bugs] [JIRA] (ASTERISK-27580) [patch] lpc10: Array may be uninitialized.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Fri Jan 12 07:15:39 CST 2018


Alexander Traud created ASTERISK-27580:
------------------------------------------

             Summary: [patch] lpc10: Array may be uninitialized.
                 Key: ASTERISK-27580
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27580
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Codecs/codec_lpc10
    Affects Versions: 15.2.0
            Reporter: Alexander Traud
            Severity: Minor
         Attachments: lpc10_array_init.patch

{{./configure && make}} and Ubuntu 14.04 LTS (GCC 4.8.2), Ubuntu 16.04 LTS (GCC 5.3.1), Ubuntu 18.04 LTS (GCC 7.2) report:{code}irc2pc.c:145:12: warning: 'temp[9]' may be used uninitialized in this function [-Wmaybe-uninitialized]
      pc[j] = temp[j - 1];
      ~~~~~~^~~~~~~~~~~~~
irc2pc.c:145:12: warning: 'temp[8]' may be used uninitialized in this function [-Wmaybe-uninitialized]
irc2pc.c:145:12: warning: 'temp[7]' may be used uninitialized in this function [-Wmaybe-uninitialized]{code}This does not happen, when optimization is turned off. This does not happen in the alternative compiler _clang_.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list