aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/apetag.c
diff options
context:
space:
mode:
authorDan Sanders <sandersd@google.com>2019-04-18 17:12:14 -0700
committerJames Almer <jamrial@gmail.com>2019-04-19 13:22:54 -0300
commitfac761dae92791af3d1ae05479e423fc9a8e7704 (patch)
tree2fe7f39a3c9303dc149b8e6ebaeda61f29cfd5cd /libavformat/apetag.c
parente750dc9de61b4534776f500e22d32a07c6425231 (diff)
downloadffmpeg-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.c2
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)