Skip to content
Snippets Groups Projects
Commit ec1f55ee authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

mkv: Ensure we don't use an EbmlDummy element for something it's not


Reported by: Zhen Zhou, NSFOCUS Security

(cherry picked from commit 89093b8c)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent a7f577ec
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ enum
#define MKVD_TIMECODESCALE 1000000
#define MKV_IS_ID( el, C ) ( el != NULL && (el->operator const EbmlId&()) == (C::ClassInfos.ClassId()) )
#define MKV_IS_ID( el, C ) ( el != NULL && (el->operator const EbmlId&()) == (C::ClassInfos.ClassId()) && !el->IsDummy() )
#define MKV_CHECKED_PTR_DECL( name, type, src ) type * name = MKV_IS_ID(src, type) ? static_cast<type*>(src) : NULL
#define MKV_CHECKED_PTR_DECL_CONST( name, type, src ) const type * name = MKV_IS_ID(src, type) ? static_cast<const type*>(src) : NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment