Skip to content

Commit

Permalink
catch evil tags being hidden by id3v2.4's unsynchronization scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Oct 19, 2021
1 parent 863d42a commit 376f1c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion id3v2.c
Expand Up @@ -239,8 +239,10 @@ void *ID3_readf(const char *fname, size_t *tagsize)
pad = size; /* check semantics of tag */
size = calcsize(buf, size);

if( rh.ver == 4 && size > 0 ) /* v2.4: just ignore the global UNSYNC */
if( rh.ver == 4 && size > 0 ) { /* v2.4: ignore the global UNSYNC */
size = unsync_frames_v2_4(buf, size);
size = calcsize(buf, size);
}

if(tagsize) *tagsize = size;

Expand Down

0 comments on commit 376f1c7

Please sign in to comment.