[vlc-commits] [Git][videolan/vlc][master] meta_engine: fix junk at end or raw unterminated ID3 text

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Tue Apr 12 15:25:18 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
4f74c5ca by Francois Cartegnie at 2022-04-12T12:57:37+00:00
meta_engine: fix junk at end or raw unterminated ID3 text

- - - - -


1 changed file:

- modules/meta_engine/ID3Text.h


Changes:

=====================================
modules/meta_engine/ID3Text.h
=====================================
@@ -47,7 +47,7 @@ static const char * ID3TextConv( const uint8_t *p_buf, size_t i_buf,
                     psz = p_alloc = (char *) malloc( i_buf + 1 );
                     if( p_alloc )
                     {
-                        memcpy( p_alloc, p_buf, i_buf - 1 );
+                        memcpy( p_alloc, p_buf, i_buf );
                         p_alloc[i_buf] = '\0';
                     }
                 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4f74c5ca37117cab4071df392c47611317779b48

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4f74c5ca37117cab4071df392c47611317779b48
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list