This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 106616f13d avformat/mov: tighten sample count value in mov_read_sdtp
106616f13d is described below
commit 106616f13d6f5fc1cbab905d47e971787fc8f255
Author: James Almer <[email protected]>
AuthorDate: Sat Mar 14 15:15:07 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Wed Mar 18 20:34:33 2026 -0300
avformat/mov: tighten sample count value in mov_read_sdtp
sc->sample_count and sc->sdtp_count are both unsigned ints.
Fixes Coverity issue CID 168634.
Signed-off-by: James Almer <[email protected]>
---
libavformat/mov.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9e1aca1b78..9cfba7d1c1 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3680,7 +3680,8 @@ static int mov_read_sdtp(MOVContext *c, AVIOContext *pb,
MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
- int64_t i, entries;
+ unsigned int i;
+ int64_t entries;
if (c->fc->nb_streams < 1)
return 0;
@@ -3699,7 +3700,7 @@ static int mov_read_sdtp(MOVContext *c, AVIOContext *pb,
MOVAtom atom)
av_freep(&sc->sdtp_data);
sc->sdtp_count = 0;
- if (entries < 0 || entries > SIZE_MAX)
+ if (entries < 0 || entries > UINT_MAX)
return AVERROR(ERANGE);
sc->sdtp_data = av_malloc(entries);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]