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 5d3ad4f06e avutil/error: Fix overflow when negating
5d3ad4f06e is described below

commit 5d3ad4f06e936eb6d2cb964cce31afef7bed32d3
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Thu Mar 5 10:51:59 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Mar 6 17:28:00 2026 +0100

    avutil/error: Fix overflow when negating
    
    -INT_MIN is not representable in an int.
    Fixes issue #22388.
    
    Reviewed-by: Sean McGovern <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavutil/error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/error.c b/libavutil/error.c
index 333d75e4ac..2c9f0028bd 100644
--- a/libavutil/error.c
+++ b/libavutil/error.c
@@ -140,7 +140,7 @@ int av_strerror(int errnum, char *errbuf, size_t 
errbuf_size)
         }
     }
 #if HAVE_STRERROR_R
-    int ret = AVERROR(strerror_r(AVUNERROR(errnum), errbuf, errbuf_size));
+    int ret = AVERROR(strerror_r(AVUNERROR((unsigned)errnum), errbuf, 
errbuf_size));
 #else
     int ret = -1;
 #endif

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to