Package: lletters
Version: 0.1.95+gtk2-3
Severity: normal
Tags: patch

The program sometimes stops responding while playing sounds.

I see this is due to error in parsing .wav header by libqdwav/wav_read.c, like

  wav_len = *(long *)&header[40]

Since long is 8 bytes on amd64 (not 4 as on i386), wav_len becomes incorrect.
I suppose changing (long *) to (uint32_t *) correct this.
And another change to display correct filenames to the console.

Also, when looking through the code, I see other potential bugs
(such as malloc'ed memory not freed, no check for I/O errors, etc).
Could I try to fix all this? but I'm not sure whether it is needed :)




-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lletters depends on:
ii  libc6                         2.11.3-4   Embedded GNU C Library: Shared
lib
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libgtk2.0-0                   2.20.1-2   The GTK+ graphical user interface

ii  lletters-media                0.1.9a-4   GTK letters-learning game for
smal

lletters recommends no packages.

lletters suggests no packages.

-- no debconf information

Attachment: diff
Description: Binary data

Reply via email to