~quadrispro/cmus/trunk

  • Committer: Gregory Petrosyan
  • Date: 2012-11-13 18:36:27 UTC
  • Revision ID: git-v1:2b3144f69d49d41572d63ecc8d467abafc86de90
lib: fix segfault caused by player-prev

On Tue, Nov 13, 2012 at 4:48 PM, Philipp Hartwig <ph@phhart.de> wrote:
> with git HEAD and an empty ~/.cmus, the following steps produce a segfault for
> me:
>
> First
>  set repeat=true
>  set aaa_mode=album
>
> Then add some album, play the first track and execute player-prev. The track
> selection should wrap around to the last track of the album, but instead cmus
> crashes.

Fix it by replacing bad line of code with the obviously correct one.

Reported-by: Philipp Hartwig <ph@phhart.de>
Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
Filename Latest Rev Last Changed Committer Comment Size
..
contrib 539 18 years ago Timo Hirvonen Add zsh completion for cmus-remote Diff
data 462 18 years ago Timo Hirvonen Move data files (rc, themes) to data/ Diff
Doc 397 18 years ago Timo Hirvonen Add cmus-remote(1) man page Diff
scripts 1 19 years ago Initial commit Diff
.gitignore 1107 14 years ago Gregory Petrosyan gitignore : add backup files *~ Signed-off-by: Xa 177 bytes Diff Download File
aac.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 12.6 KB Diff Download File
aac.h 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 1.4 KB Diff Download File
alsa.c 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 8.6 KB Diff Download File
ao.c 1345 13 years ago Gregory Petrosyan ao: allow compilation with libao < 1.0.0 5.8 KB Diff Download File
ape.c 1339 13 years ago Gregory Petrosyan more off_t correctness 5.4 KB Diff Download File
ape.h 1307 13 years ago Gregory Petrosyan cleanup: replace <inttypes.h> by <stdint.h> intty 1.5 KB Diff Download File
arts.c 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 2.9 KB Diff Download File
AUTHORS 1118 13 years ago Gregory Petrosyan Add RoarAudio output plugin Signed-off-by: Gregor 1.3 KB Diff Download File
browser.c 1394 12 years ago Gregory Petrosyan browser: add '../' entries to playlists Suggested 10 KB Diff Download File
browser.h 1308 13 years ago Gregory Petrosyan cleanup: move unused header includes from header t 1.4 KB Diff Download File
buffer.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 4.2 KB Diff Download File
buffer.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.1 KB Diff Download File
cache.c 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 10.8 KB Diff Download File
cache.h 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 1.2 KB Diff Download File
cdio.c 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 12.7 KB Diff Download File
channelmap.c 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 1.9 KB Diff Download File
channelmap.h 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 2.5 KB Diff Download File
cmdline.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 4.6 KB Diff Download File
cmdline.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.6 KB Diff Download File
File cmus-status-display 1094.1.3 14 years ago Gregory Petrosyan replace insecure use of /tmp in cmus cmus shouldn 1 KB Diff Download File
cmus.c 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 7.8 KB Diff Download File
cmus.h 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 2.8 KB Diff Download File
command_mode.c 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 57.9 KB Diff Download File
command_mode.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.7 KB Diff Download File
comment.c 1401 12 years ago Gregory Petrosyan comment: extend the heuristic for 'Various Artists 5.8 KB Diff Download File
comment.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.4 KB Diff Download File
compiler.h 1300 13 years ago Gregory Petrosyan compiler.h: fix warning when compiling with -pedan 2.3 KB Diff Download File
File configure 1397 12 years ago Gregory Petrosyan Revert "configure: disable FFMPEG plugin by defaul 12.1 KB Diff Download File
convert.c 1403 11 years ago Gregory Petrosyan Add 'icecast_default_charset' option to allow cmus 2.8 KB Diff Download File
convert.h 1403 11 years ago Gregory Petrosyan Add 'icecast_default_charset' option to allow cmus 1.1 KB Diff Download File
COPYING 1284 13 years ago Gregory Petrosyan update COPYING download from http://www.gnu.org/l 17.6 KB Diff Download File
cue.c 1378 12 years ago Gregory Petrosyan Initial CUE sheets support When adding a file, ch 8 KB Diff Download File
cue_utils.c 1404 11 years ago Gregory Petrosyan cue: add "filename.ext.cue" to the checked paths 2.1 KB Diff Download File
cue_utils.h 1378 12 years ago Gregory Petrosyan Initial CUE sheets support When adding a file, ch 1.1 KB Diff Download File
debug.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.4 KB Diff Download File
debug.h 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 1.3 KB Diff Download File
discid.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 3.4 KB Diff Download File
discid.h 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 1 KB Diff Download File
editable.c 1384 12 years ago Gregory Petrosyan editable: better datastructure The rbtree of edit 8.9 KB Diff Download File
editable.h 1384 12 years ago Gregory Petrosyan editable: better datastructure The rbtree of edit 2.6 KB Diff Download File
expr.c 1388 12 years ago Gregory Petrosyan Add "media" to sort, filter and format options Wi 19.7 KB Diff Download File
expr.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.8 KB Diff Download File
ffmpeg.c 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 14.9 KB Diff Download File
file.c 1336 13 years ago Gregory Petrosyan fix infinite loop when adding certain mp3 files R 3.4 KB Diff Download File
file.h 1308 13 years ago Gregory Petrosyan cleanup: move unused header includes from header t 1.4 KB Diff Download File
filters.c 1365 12 years ago Gregory Petrosyan allow win-activate (<enter>) to change the current 9.4 KB Diff Download File
filters.h 1305 13 years ago Gregory Petrosyan cleanup: remove unused header includes 2.1 KB Diff Download File
flac.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 13.8 KB Diff Download File
format_print.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 10.2 KB Diff Download File
format_print.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.1 KB Diff Download File
gbuf.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.6 KB Diff Download File
gbuf.h 1306 13 years ago Gregory Petrosyan cleanup: better (more accurate) header includes 1.6 KB Diff Download File
glob.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 4.8 KB Diff Download File
glob.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 947 bytes Diff Download File
help.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 7.3 KB Diff Download File
help.h 1305 13 years ago Gregory Petrosyan cleanup: remove unused header includes 1.7 KB Diff Download File
history.c 1412 11 years ago Gregory Petrosyan Atomically rewrite cmus config files on save This 4.8 KB Diff Download File
history.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.3 KB Diff Download File
http.c 1327 13 years ago Gregory Petrosyan simplify dns lookup code Simplify and generalize, 10 KB Diff Download File
http.h 1306 13 years ago Gregory Petrosyan cleanup: better (more accurate) header includes 1.7 KB Diff Download File
id3.c 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 24.8 KB Diff Download File
id3.h 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 1.6 KB Diff Download File
input.c 1403 11 years ago Gregory Petrosyan Add 'icecast_default_charset' option to allow cmus 20.7 KB Diff Download File
input.h 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 2.3 KB Diff Download File
ip.h 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 3 KB Diff Download File
iter.h 1306 13 years ago Gregory Petrosyan cleanup: better (more accurate) header includes 4.3 KB Diff Download File
job.c 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 7.9 KB Diff Download File
job.h 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 1.2 KB Diff Download File
keys.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 16.2 KB Diff Download File
keys.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.5 KB Diff Download File
keyval.c 1303 13 years ago Gregory Petrosyan portability: replace xnew0(struct keyval, _) with 2.6 KB Diff Download File
keyval.h 1303 13 years ago Gregory Petrosyan portability: replace xnew0(struct keyval, _) with 1.4 KB Diff Download File
lib.c 1414 11 years ago Gregory Petrosyan lib: fix segfault caused by player-prev On Tue, N 15 KB Diff Download File
lib.h 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 4.6 KB Diff Download File
list.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 9.2 KB Diff Download File
load_dir.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.3 KB Diff Download File
load_dir.h 1293 13 years ago Gregory Petrosyan tab-complete commands which take program paths co 2 KB Diff Download File
locking.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1 KB Diff Download File
locking.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1003 bytes Diff Download File
mad.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 6.3 KB Diff Download File
main.c 1327 13 years ago Gregory Petrosyan simplify dns lookup code Simplify and generalize, 8.8 KB Diff Download File
Makefile 1413 11 years ago Gregory Petrosyan cmus 2.5.0 Signed-off-by: Gregory Petrosyan <greg 7 KB Diff Download File
mergesort.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.8 KB Diff Download File
mergesort.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 911 bytes Diff Download File
mikmod.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 4 KB Diff Download File
misc.c 1294 13 years ago Gregory Petrosyan expand '~' for options which receive filenames op 5.2 KB Diff Download File
misc.h 1294 13 years ago Gregory Petrosyan expand '~' for options which receive filenames op 1.4 KB Diff Download File
mixer.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.2 KB Diff Download File
mixer_alsa.c 1299 13 years ago Gregory Petrosyan portability: replace alsa alloca usage by malloc 5.5 KB Diff Download File
mixer_oss.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 5.4 KB Diff Download File
mixer_sun.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 6.5 KB Diff Download File
modplug.c 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 5.6 KB Diff Download File
mp4.c 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 14.6 KB Diff Download File
mpc.c 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 10.4 KB Diff Download File
nomad.c 1344 13 years ago Gregory Petrosyan id3: fix parsing xing for mp3s with CRC protection 22.7 KB Diff Download File
nomad.h 1339 13 years ago Gregory Petrosyan more off_t correctness 2.6 KB Diff Download File
op.h 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 1.8 KB Diff Download File
options.c 1412 11 years ago Gregory Petrosyan Atomically rewrite cmus config files on save This 30.8 KB Diff Download File
options.h 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 4.2 KB Diff Download File
oss.c 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 5.5 KB Diff Download File
output.c 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 9.9 KB Diff Download File
output.h 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 1.9 KB Diff Download File
path.c 1377 12 years ago Gregory Petrosyan Move get_extension() to path.c Signed-off-by: Gre 2.7 KB Diff Download File
path.h 1377 12 years ago Gregory Petrosyan Move get_extension() to path.c Signed-off-by: Gre 987 bytes Diff Download File
pcm.c 1307 13 years ago Gregory Petrosyan cleanup: replace <inttypes.h> by <stdint.h> intty 3.8 KB Diff Download File
pcm.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 985 bytes Diff Download File
pl.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 3.3 KB Diff Download File
pl.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.1 KB Diff Download File
play_queue.c 1384 12 years ago Gregory Petrosyan editable: better datastructure The rbtree of edit 1.8 KB Diff Download File
play_queue.h 1384 12 years ago Gregory Petrosyan editable: better datastructure The rbtree of edit 1 KB Diff Download File
player.c 1389 12 years ago Gregory Petrosyan player.c: silence a couple of clang's -Wconversion 30.7 KB Diff Download File
player.h 1329 13 years ago Gregory Petrosyan show current bitrate in status bar Suggested-by: 2.9 KB Diff Download File
prog.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 3 KB Diff Download File
prog.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.4 KB Diff Download File
pulse.c 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 13 KB Diff Download File
rbtree.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 8.2 KB Diff Download File
rbtree.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 6.8 KB Diff Download File
read_wrapper.c 1312 13 years ago Gregory Petrosyan cleanup: read_wrapper.h: move unused header includ 1.6 KB Diff Download File
read_wrapper.h 1312 13 years ago Gregory Petrosyan cleanup: read_wrapper.h: move unused header includ 957 bytes Diff Download File
README 1283 13 years ago Gregory Petrosyan readme: bump copyright Signed-off-by: Gregory Pet 2.4 KB Diff Download File
roar.c 1356 12 years ago Gregory Petrosyan roar.c: clean up a bit Signed-off-by: Gregory Pet 7.2 KB Diff Download File
search.c 1372 12 years ago Gregory Petrosyan Add "wrap_search" option Suggested-by: Anonymous 3.3 KB Diff Download File
search.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.3 KB Diff Download File
search_mode.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 6.4 KB Diff Download File
search_mode.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.1 KB Diff Download File
server.c 1327 13 years ago Gregory Petrosyan simplify dns lookup code Simplify and generalize, 7.9 KB Diff Download File
server.h 1326 13 years ago Gregory Petrosyan fix TCP/IP networking protocol it was not working 1 KB Diff Download File
sf.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.2 KB Diff Download File
spawn.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.2 KB Diff Download File
spawn.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 821 bytes Diff Download File
sun.c 1334 13 years ago Gregory Petrosyan introduce channel mappings for >2 channels, it is 4.7 KB Diff Download File
tabexp.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.5 KB Diff Download File
tabexp.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1019 bytes Diff Download File
tabexp_file.c 1293 13 years ago Gregory Petrosyan tab-complete commands which take program paths co 4.5 KB Diff Download File
tabexp_file.h 1293 13 years ago Gregory Petrosyan tab-complete commands which take program paths co 1008 bytes Diff Download File
track.c 1384 12 years ago Gregory Petrosyan editable: better datastructure The rbtree of edit 8.4 KB Diff Download File
track.h 1384 12 years ago Gregory Petrosyan editable: better datastructure The rbtree of edit 3.3 KB Diff Download File
track_info.c 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 6.4 KB Diff Download File
track_info.h 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 4.3 KB Diff Download File
tree.c 1398 12 years ago Gregory Petrosyan Add support for "albumsort" tag Is used to sort a 28.5 KB Diff Download File
u_collate.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.8 KB Diff Download File
u_collate.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 2.3 KB Diff Download File
uchar.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 13.6 KB Diff Download File
uchar.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 6.3 KB Diff Download File
ui_curses.c 1409 11 years ago Gregory Petrosyan Add option to skip initial metadata loading When 52.6 KB Diff Download File
ui_curses.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.7 KB Diff Download File
unidecomp.h 1352 12 years ago Gregory Petrosyan Map unicode punctation/quotation characters to ASC 40.1 KB Diff Download File
utils.h 1399 12 years ago Gregory Petrosyan Do not allow to add ".." from the browser view Ad 4.4 KB Diff Download File
vorbis.c 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 9.7 KB Diff Download File
wav.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 9.2 KB Diff Download File
waveout.c 1395 12 years ago Gregory Petrosyan waveout: fix compilation warning / error For me t 6.6 KB Diff Download File
wavpack.c 1348 13 years ago Gregory Petrosyan add cdio input plugin Based on cdda.c from XMMS2. 9.5 KB Diff Download File
window.c 1410 11 years ago Gregory Petrosyan win_set_sel respects scroll_offset 8.4 KB Diff Download File
window.h 1405 11 years ago Gregory Petrosyan Add commands to goto the top/middle/bottom of the 3.1 KB Diff Download File
worker.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 4.1 KB Diff Download File
worker.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1.3 KB Diff Download File
xmalloc.c 1315 13 years ago Gregory Petrosyan xmalloc: use native strndup if available - use na 1.1 KB Diff Download File
xmalloc.h 1396 12 years ago Gregory Petrosyan configure: add better check for ffmpeg It turns o 2.1 KB Diff Download File
xstrjoin.c 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 1 KB Diff Download File
xstrjoin.h 1285 13 years ago Gregory Petrosyan update copyright notice * add copying permission 822 bytes Diff Download File