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


Commits:
e0dc6167 by Alexandre Janniaux at 2021-12-15T15:04:21+00:00
hxxx_sei: fix memory leak on error

- - - - -


1 changed file:

- modules/packetizer/hxxx_sei.c


Changes:

=====================================
modules/packetizer/hxxx_sei.c
=====================================
@@ -109,7 +109,10 @@ void HxxxParseSEI(const uint8_t *p_buf, size_t i_buf,
                     p_t35[i_t35] = bs_read( &s, 8 );
 
                 if( bs_error( &s ) )
+                {
+                    free( p_t35 );
                     break;
+                }
 
                 /* TS 101 154 Auxiliary Data and H264/AVC video */
                 if( i_t35 > 4 && p_t35[0] == 0xb5 /* United States */ )



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

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


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to