--- Begin Message ---
Subject: |
possibly-uninitialized variable in sound.c's wav_play |
Date: |
Thu, 17 Mar 2011 23:41:08 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 |
In the Emacs trunk, src/sound.c's wav_play function can
use an uninitialized variable 'nbytes' if it reads
a file whose header->data_length field is zero.
I plan to work around this by initializing nbytes to 0.
(This problem was discovered by using gcc -Wuninitialized.)
--- End Message ---
--- Begin Message ---
Subject: |
fix merged to trunk |
Date: |
Wed, 23 Mar 2011 15:06:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 |
I committed a fix to the trunk for this,
as part of a recent merge (bzr 103721).
--- End Message ---