Subject: bug#8278: closed (fix merged to trunk)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 23 Mar 2011 22:07:07 +0000

Your bug report

#8278: possibly-uninitialized variable in sound.c's wav_play

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
8278: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8278
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: fix merged to trunk
From: Paul Eggert <[email-masked]>
To: [email-masked], [email-masked], [email-masked], [email-masked], [email-masked], [email-masked], [email-masked], [email-masked]
Date: Wed, 23 Mar 2011 15:06:46 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

I committed a fix to the trunk for this,
as part of a recent merge (bzr 103721).

Subject: possibly-uninitialized variable in sound.c's wav_play
From: Paul Eggert <[email-masked]>
To: [email-masked]
Date: Thu, 17 Mar 2011 23:41:08 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

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