diff options
author | Dan Sanders <sandersd@google.com> | 2019-04-18 17:12:14 -0700 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-04-19 13:22:54 -0300 |
commit | fac761dae92791af3d1ae05479e423fc9a8e7704 (patch) | |
tree | 2fe7f39a3c9303dc149b8e6ebaeda61f29cfd5cd /libavformat/apetag.c | |
parent | e750dc9de61b4534776f500e22d32a07c6425231 (diff) | |
download | ffmpeg-fac761dae92791af3d1ae05479e423fc9a8e7704.tar.gz |
avformat/apetag: tag values are unsigned
Fixes: UBSan runtime error
Found-by: Clusterfuzz
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/apetag.c')
-rw-r--r-- | libavformat/apetag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/apetag.c b/libavformat/apetag.c index cdc602e1a9..8cb3f4a23a 100644 --- a/libavformat/apetag.c +++ b/libavformat/apetag.c @@ -29,7 +29,7 @@ #include "apetag.h" #include "internal.h" -#define APE_TAG_FLAG_CONTAINS_HEADER (1 << 31) +#define APE_TAG_FLAG_CONTAINS_HEADER (1U << 31) #define APE_TAG_FLAG_LACKS_FOOTER (1 << 30) #define APE_TAG_FLAG_IS_HEADER (1 << 29) #define APE_TAG_FLAG_IS_BINARY (1 << 1) |