emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#8278: closed (possibly-uninitialized variable in


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#8278: closed (possibly-uninitialized variable in sound.c's wav_play)
Date: Wed, 23 Mar 2011 22:07:06 +0000

Your message dated Wed, 23 Mar 2011 15:06:46 -0700
with message-id <address@hidden>
and subject line fix merged to trunk
has caused the GNU bug report #8278,
regarding possibly-uninitialized variable in sound.c's wav_play
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
8278: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8278
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]