[vlc-commits] codec: atsc a65: don't expect null terminated strings
Francois Cartegnie
git at videolan.org
Wed Nov 22 13:28:23 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 13:14:02 2017 +0100| [4523786e48364d4d9b5bb3b69e596058160b8ae9] | committer: Francois Cartegnie
codec: atsc a65: don't expect null terminated strings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4523786e48364d4d9b5bb3b69e596058160b8ae9
---
modules/codec/atsc_a65.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/atsc_a65.c b/modules/codec/atsc_a65.c
index 08174d95f0..70cfe835eb 100644
--- a/modules/codec/atsc_a65.c
+++ b/modules/codec/atsc_a65.c
@@ -102,7 +102,7 @@ static char *enlarge_to16( const uint8_t *p_src, size_t i_src, uint8_t i_prefix
{
memset( psz_new, i_prefix, i_src * 2 );
psz_new[ i_src * 2 ] = 0;
- while( *p_src )
+ while( i_src-- )
{
psz_new[1] = p_src[0];
p_src++;
More information about the vlc-commits
mailing list