Menu

#4 libid3tag segfaults rendering v1 tags

closed-fixed
libid3tag (8)
5
2003-06-27
2002-09-28
No

libid3tag segfaults when rendering a V1 tag with a TCON
frame with zero strings (ie,
fields[1]->stringlist.nstrings == 0). The attached
patch fixes my problem.

Here is also the backtrace:

#0 0x40029dda in id3_ucs4_getnumber (ucs4=0x0) at
ucs4.c:221
221 number = 10 * number + (*ucs4++ - '0');
(gdb) ba
#0 0x40029dda in id3_ucs4_getnumber (ucs4=0x0) at
ucs4.c:221
#1 0x4002eabf in v1_render (tag=0x8058ec8,
buffer=0xbffff08b "") at tag.c:671
#2 0x4002eb62 in id3_tag_render (tag=0x8058ec8,
buffer=0xbffff00c "TAGIn The Beginning", ' '
<repeats 14 times>, "Mike Oldfield", ' ' <repeats 17
times>, "The Songs Of Distant Earth", ' ' <repeats 36
times>) at tag.c:699

/martin hedenfalk

Discussion

  • Martin Hedenfalk

    Patch to libid3tag

     
  • Rob Leslie

    Rob Leslie - 2003-06-27

    Logged In: YES
    user_id=42487

    This should be fixed in 0.15.0b.

     
  • Rob Leslie

    Rob Leslie - 2003-06-27
    • labels: --> libid3tag
    • assigned_to: nobody --> verement
    • status: open --> closed-fixed
     

Log in to post a comment.