[FFmpeg-cvslog] avcodec/cbs_av1: Avoid shift overflow

2024-06-14 Thread Michael Niedermayer
ffmpeg | branch: release/4.3 | Michael Niedermayer  | 
Wed May  1 21:44:33 2024 +0200| [682b002d1538ee4246f1cf5356441fd8399bb86d] | 
committer: Michael Niedermayer

avcodec/cbs_av1: Avoid shift overflow

Fixes: CID1465488 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer 
(cherry picked from commit d7924a4f60f2088de1e6790345caba929eb97030)
Signed-off-by: Michael Niedermayer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=682b002d1538ee4246f1cf5356441fd8399bb86d
---

 libavcodec/cbs_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 0abcba9c60..0adf83f770 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -383,7 +383,7 @@ static int cbs_av1_write_increment(CodedBitstreamContext 
*ctx, PutBitContext *pb
 }
 
 if (len > 0)
-put_bits(pbc, len, (1 << len) - 1 - (value != range_max));
+put_bits(pbc, len, (1U << len) - 1 - (value != range_max));
 
 return 0;
 }

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-cvslog] avcodec/cbs_av1: Avoid shift overflow

2024-06-13 Thread Michael Niedermayer
ffmpeg | branch: release/5.1 | Michael Niedermayer  | 
Wed May  1 21:44:33 2024 +0200| [ed6b5d616439f4ca2c7075c05b514d0fa00cad85] | 
committer: Michael Niedermayer

avcodec/cbs_av1: Avoid shift overflow

Fixes: CID1465488 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer 
(cherry picked from commit d7924a4f60f2088de1e6790345caba929eb97030)
Signed-off-by: Michael Niedermayer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed6b5d616439f4ca2c7075c05b514d0fa00cad85
---

 libavcodec/cbs_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 1229480567..6913bc6781 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -379,7 +379,7 @@ static int cbs_av1_write_increment(CodedBitstreamContext 
*ctx, PutBitContext *pb
 }
 
 if (len > 0)
-put_bits(pbc, len, (1 << len) - 1 - (value != range_max));
+put_bits(pbc, len, (1U << len) - 1 - (value != range_max));
 
 return 0;
 }

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-cvslog] avcodec/cbs_av1: Avoid shift overflow

2024-05-24 Thread Michael Niedermayer
ffmpeg | branch: release/6.1 | Michael Niedermayer  | 
Wed May  1 21:44:33 2024 +0200| [bc08dfdf5d9fa98e62bb2080f81fb80192cb2e58] | 
committer: Michael Niedermayer

avcodec/cbs_av1: Avoid shift overflow

Fixes: CID1465488 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer 
(cherry picked from commit d7924a4f60f2088de1e6790345caba929eb97030)
Signed-off-by: Michael Niedermayer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc08dfdf5d9fa98e62bb2080f81fb80192cb2e58
---

 libavcodec/cbs_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 1d9ac5ab44..fb82996022 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -301,7 +301,7 @@ static int cbs_av1_write_increment(CodedBitstreamContext 
*ctx, PutBitContext *pb
 return AVERROR(ENOSPC);
 
 if (len > 0)
-put_bits(pbc, len, (1 << len) - 1 - (value != range_max));
+put_bits(pbc, len, (1U << len) - 1 - (value != range_max));
 
 CBS_TRACE_WRITE_END_NO_SUBSCRIPTS();
 

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-cvslog] avcodec/cbs_av1: Avoid shift overflow

2024-05-22 Thread Michael Niedermayer
ffmpeg | branch: release/7.0 | Michael Niedermayer  | 
Wed May  1 21:44:33 2024 +0200| [559dd6f68af7041268a4ac4bda4cbfc935f1740d] | 
committer: Michael Niedermayer

avcodec/cbs_av1: Avoid shift overflow

Fixes: CID1465488 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer 
(cherry picked from commit d7924a4f60f2088de1e6790345caba929eb97030)
Signed-off-by: Michael Niedermayer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=559dd6f68af7041268a4ac4bda4cbfc935f1740d
---

 libavcodec/cbs_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 1d9ac5ab44..fb82996022 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -301,7 +301,7 @@ static int cbs_av1_write_increment(CodedBitstreamContext 
*ctx, PutBitContext *pb
 return AVERROR(ENOSPC);
 
 if (len > 0)
-put_bits(pbc, len, (1 << len) - 1 - (value != range_max));
+put_bits(pbc, len, (1U << len) - 1 - (value != range_max));
 
 CBS_TRACE_WRITE_END_NO_SUBSCRIPTS();
 

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-cvslog] avcodec/cbs_av1: Avoid shift overflow

2024-05-09 Thread Michael Niedermayer
ffmpeg | branch: master | Michael Niedermayer  | Wed 
May  1 21:44:33 2024 +0200| [d7924a4f60f2088de1e6790345caba929eb97030] | 
committer: Michael Niedermayer

avcodec/cbs_av1: Avoid shift overflow

Fixes: CID1465488 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7924a4f60f2088de1e6790345caba929eb97030
---

 libavcodec/cbs_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 1d9ac5ab44..fb82996022 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -301,7 +301,7 @@ static int cbs_av1_write_increment(CodedBitstreamContext 
*ctx, PutBitContext *pb
 return AVERROR(ENOSPC);
 
 if (len > 0)
-put_bits(pbc, len, (1 << len) - 1 - (value != range_max));
+put_bits(pbc, len, (1U << len) - 1 - (value != range_max));
 
 CBS_TRACE_WRITE_END_NO_SUBSCRIPTS();
 

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".