libid3tag-0.15.1b-id3v2-endless-loop.patch 284 B

123456789101112
  1. --- utf16.c.old 2005-01-07 12:35:28.622883237 +0100
  2. +++ utf16.c 2005-01-07 12:35:36.603673548 +0100
  3. @@ -250,6 +250,8 @@
  4. id3_ucs4_t *ucs4;
  5. end = *ptr + (length & ~1);
  6. + if (end == *ptr)
  7. + return 0;
  8. utf16 = malloc((length / 2 + 1) * sizeof(*utf16));
  9. if (utf16 == 0)