unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8278: possibly-uninitialized variable in sound.c's wav_play
@ 2011-03-18  6:41 Paul Eggert
  0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 2011-03-18  6:41 UTC (permalink / raw)
  To: 8278

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-18  6:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18  6:41 bug#8278: possibly-uninitialized variable in sound.c's wav_play Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).