GNU bug report logs - #8278
possibly-uninitialized variable in sound.c's wav_play

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Fri, 18 Mar 2011 06:43:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#8278: closed (fix merged to trunk)
Date: Wed, 23 Mar 2011 22:07:07 +0000
[Message part 1 (text/plain, inline)]
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 8278 <at> debbugs.gnu.org.

-- 
8278: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8278
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 8310-done <at> debbugs.gnu.org, 8318-done <at> debbugs.gnu.org, 
	8306-done <at> debbugs.gnu.org, 8303-done <at> debbugs.gnu.org, 
	8277-done <at> debbugs.gnu.org, 8298-done <at> debbugs.gnu.org, 
	8290-done <at> debbugs.gnu.org, 8278-done <at> debbugs.gnu.org
Subject: fix merged to trunk
Date: Wed, 23 Mar 2011 15:06:46 -0700
I committed a fix to the trunk for this,
as part of a recent merge (bzr 103721).

[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: possibly-uninitialized variable in sound.c's wav_play
Date: Thu, 17 Mar 2011 23:41:08 -0700
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.)



This bug report was last modified 14 years and 120 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.