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

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Apr 14 17:00:42 UTC 2022



Hugo Beauzée-Luyssen pushed to branch 3.0.x at VideoLAN / VLC


Commits:
b6a50574 by Francois Cartegnie at 2022-04-14T16:05:39+00:00
meta_engine: fix junk at end or raw unterminated ID3 text

(cherry picked from commit 4f74c5ca37117cab4071df392c47611317779b48)

- - - - -


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/b6a50574c6266ba315ce8eda8aad3c13fc4d0022

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b6a50574c6266ba315ce8eda8aad3c13fc4d0022
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