28 lines
880 B
Diff
28 lines
880 B
Diff
|
|
From 548bc2942ab160e852811bdb0499b5e226aa0d54 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Michael Niedermayer <michael@niedermayer.cc>
|
||
|
|
Date: Thu, 4 Jul 2024 15:03:12 +0800
|
||
|
|
Subject: [PATCH] CVE-2021-28429
|
||
|
|
|
||
|
|
---
|
||
|
|
libavutil/timecode.c | 4 ++--
|
||
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/libavutil/timecode.c b/libavutil/timecode.c
|
||
|
|
index 60077ba..e34092f 100644
|
||
|
|
--- a/libavutil/timecode.c
|
||
|
|
+++ b/libavutil/timecode.c
|
||
|
|
@@ -96,8 +96,8 @@ char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum)
|
||
|
|
}
|
||
|
|
ff = framenum % fps;
|
||
|
|
ss = framenum / fps % 60;
|
||
|
|
- mm = framenum / (fps*60) % 60;
|
||
|
|
- hh = framenum / (fps*3600);
|
||
|
|
+ mm = framenum / (fps*60LL) % 60;
|
||
|
|
+ hh = framenum / (fps*3600LL);
|
||
|
|
if (tc->flags & AV_TIMECODE_FLAG_24HOURSMAX)
|
||
|
|
hh = hh % 24;
|
||
|
|
snprintf(buf, AV_TIMECODE_STR_SIZE, "%s%02d:%02d:%02d%c%02d",
|
||
|
|
--
|
||
|
|
2.43.0
|
||
|
|
|