Ticket #21347: id3lib-vbr-overflow.patch

File id3lib-vbr-overflow.patch, 504 bytes (added by macports@…, 15 years ago)

Patch to prevent overflow with certain vbr files

  • mp3_parse.cpp

    old new  
    465465  // from http://www.xingtech.com/developer/mp3/
    466466
    467467  const size_t VBR_HEADER_MIN_SIZE = 8;     // "xing" + flags are fixed
    468   const size_t VBR_HEADER_MAX_SIZE = 116;   // frames, bytes, toc and scale are optional
     468  const size_t VBR_HEADER_MAX_SIZE = 120;   // frames, bytes, toc and scale are optional
    469469
    470470  if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE)
    471471  {