Package: audacious-plugins
Version: 2.4.4-1
Severity: important
Tags: patch
The m3u loader segfaults when loading m3us, at least if the file doesn't
end with a line break.
Patch attached.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages audacious-plugins depends on:
ii libasound2 1.0.23-3 shared library for ALSA applicatio
ii libatk1.0-0 2.0.0-1 The ATK accessibility toolkit
ii libaudcore1 2.4.4-1 audacious core engine library
ii libavcodec52 5:0.6.2-0.1 library to encode decode multimedi
ii libavformat52 5:0.6.2-0.1 ffmpeg file format library
ii libavutil50 5:0.6.2-0.1 avutil shared libraries - runtime
ii libbinio1ldbl 1.4-14 Binary I/O stream class library
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii libcairo2 1.10.2-6 The Cairo 2D vector graphics libra
ii libcddb2 1.3.2-2 library to access CDDB data - runt
ii libcdio-cdda0 0.81-4 library to read and control digita
ii libcdio10 0.81-4 library to read and control CD-ROM
ii libcue1 1.4.0-1 CUE Sheet Parser Library
ii libcurl3-gnutls 7.21.6-1 Multi-protocol file transfer libra
ii libdbus-1-3 1.4.6-1 simple interprocess messaging syst
ii libdbus-glib-1-2 0.92-1 simple interprocess messaging syst
ii libfaad2 2.7-6 freeware Advanced Audio Decoder -
ii libflac8 1.2.1-3 Free Lossless Audio Codec - runtim
ii libfluidsynth1 1.1.3-3+b1 Real-time MIDI software synthesize
ii libfontconfig1 2.8.0-2.2 generic font configuration library
ii libfreetype6 2.4.4-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.6.0-2 GCC support library
ii libgdk-pixbuf2.0-0 2.23.3-3 GDK Pixbuf library
ii libglib2.0-0 2.28.6-1 The GLib library of C routines
ii libgtk2.0-0 2.24.4-3 The GTK+ graphical user interface
ii libjack0 [libjack-0. 1:0.120.1+svn4142-1 JACK Audio Connection Kit (librari
ii liblircclient0 0.9.0~pre1-1 infra-red remote control support -
ii libmcs1 0.7.1-1.2 Abstraction library to store confi
ii libmms0 0.6.2-2 MMS stream protocol library - shar
ii libmowgli2 0.7.1-1 high performance development frame
ii libmp3lame0 3.98.4-0.0 LAME Ain't an MP3 Encoder
ii libmtp8 1.0.6-2 Media Transfer Protocol (MTP) libr
ii libneon27-gnutls 0.29.5-3 An HTTP and WebDAV client library
ii libnotify4 0.7.1-2 sends desktop notifications to a n
ii libogg0 1.2.0~dfsg-1 Ogg bitstream library
ii libpango1.0-0 1.28.3-6 Layout and rendering of internatio
ii libpulse0 0.9.21-4 PulseAudio client libraries
ii libresid-builder0c2a 2.1.1-8 SID chip emulation class based on
ii libsamplerate0 0.1.7-3 Audio sample rate conversion libra
ii libsdl1.2debian 1.2.14-6.3 Simple DirectMedia Layer
ii libsidplay2 2.1.1-8 SID (MOS 6581) emulation library
ii libsndfile1 1.0.24-1 Library for reading/writing audio
ii libstdc++6 4.6.0-2 The GNU Standard C++ Library v3
ii libusb-0.1-4 2:0.1.12-17 userspace USB programming library
ii libvorbis0a 1.3.2-1 The Vorbis General Audio Compressi
ii libvorbisenc2 1.3.2-1 The Vorbis General Audio Compressi
ii libvorbisfile3 1.3.2-1 The Vorbis General Audio Compressi
ii libwavpack1 4.60.1-1 an audio codec (lossy and lossless
ii libx11-6 2:1.4.3-1 X11 client-side library
ii libxcomposite1 1:0.4.3-1 X11 Composite extension library
ii libxml2 2.7.8.dfsg-2+b1 GNOME XML library
ii libxrender1 1:0.9.6-1 X Rendering Extension client libra
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages audacious-plugins recommends:
ii audacious 2.4.4-1 small and fast audio player which
audacious-plugins suggests no packages.
-- no debconf information
diff --git a/src/m3u/.m3u.c.swp b/src/m3u/.m3u.c.swp
index 52fb8b1..ad60cf2 100644
Binary files a/src/m3u/.m3u.c.swp and b/src/m3u/.m3u.c.swp differ
diff --git a/src/m3u/m3u.c b/src/m3u/m3u.c
index 210f49e..729c024 100644
--- a/src/m3u/m3u.c
+++ b/src/m3u/m3u.c
@@ -106,6 +106,8 @@ static void playlist_load_m3u (const gchar * path, gint at)
NEXT:
parse = next;
+ if(parse == NULL)
+ break;
}
aud_playlist_entry_insert_batch (aud_playlist_get_active (), at, add, NULL);