[FFmpeg-cvslog] avcodec/h264_direct: Fix overflow in POC comparission

2019-05-10 Thread Michael Niedermayer
ffmpeg | branch: release/3.2 | Michael Niedermayer  | 
Thu Feb 14 00:05:34 2019 +0100| [57739859028d13229d34347adfa5bdaa73fbc840] | 
committer: Michael Niedermayer

avcodec/h264_direct: Fix overflow in POC comparission

Fixes: runtime error: signed integer overflow: 2147421862 - -33624063 cannot be 
represented in type 'int'
Fixes: 
12885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5733516975800320

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer 
(cherry picked from commit 5ccf296e74725bc8bdfbfe500d0482daa200b6f3)
Signed-off-by: Michael Niedermayer 

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

 libavcodec/h264_direct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
index cbb84665b3..1fe902e9ff 100644
--- a/libavcodec/h264_direct.c
+++ b/libavcodec/h264_direct.c
@@ -142,8 +142,8 @@ void ff_h264_direct_ref_list_init(const H264Context *const 
h, H264SliceContext *
 av_log(h->avctx, AV_LOG_ERROR, "co located POCs unavailable\n");
 sl->col_parity = 1;
 } else
-sl->col_parity = (FFABS(col_poc[0] - cur_poc) >=
-  FFABS(col_poc[1] - cur_poc));
+sl->col_parity = (FFABS(col_poc[0] - (int64_t)cur_poc) >=
+  FFABS(col_poc[1] - (int64_t)cur_poc));
 ref1sidx =
 sidx = sl->col_parity;
 // FL -> FL & differ parity

___
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/h264_direct: Fix overflow in POC comparission

2019-03-28 Thread Michael Niedermayer
ffmpeg | branch: release/3.4 | Michael Niedermayer  | 
Thu Feb 14 00:05:34 2019 +0100| [8ddad9f9cdac4bf05a455fe5bb3efdab5957d1e4] | 
committer: Michael Niedermayer

avcodec/h264_direct: Fix overflow in POC comparission

Fixes: runtime error: signed integer overflow: 2147421862 - -33624063 cannot be 
represented in type 'int'
Fixes: 
12885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5733516975800320

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer 
(cherry picked from commit 5ccf296e74725bc8bdfbfe500d0482daa200b6f3)
Signed-off-by: Michael Niedermayer 

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

 libavcodec/h264_direct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
index a7a107c8c2..3825996762 100644
--- a/libavcodec/h264_direct.c
+++ b/libavcodec/h264_direct.c
@@ -156,8 +156,8 @@ void ff_h264_direct_ref_list_init(const H264Context *const 
h, H264SliceContext *
 av_log(h->avctx, AV_LOG_ERROR, "co located POCs unavailable\n");
 sl->col_parity = 1;
 } else
-sl->col_parity = (FFABS(col_poc[0] - cur_poc) >=
-  FFABS(col_poc[1] - cur_poc));
+sl->col_parity = (FFABS(col_poc[0] - (int64_t)cur_poc) >=
+  FFABS(col_poc[1] - (int64_t)cur_poc));
 ref1sidx =
 sidx = sl->col_parity;
 // FL -> FL & differ parity

___
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/h264_direct: Fix overflow in POC comparission

2019-03-21 Thread Michael Niedermayer
ffmpeg | branch: release/4.0 | Michael Niedermayer  | 
Thu Feb 14 00:05:34 2019 +0100| [5f52e2c420e0f166d78b6a5d4e592c1483b5aad3] | 
committer: Michael Niedermayer

avcodec/h264_direct: Fix overflow in POC comparission

Fixes: runtime error: signed integer overflow: 2147421862 - -33624063 cannot be 
represented in type 'int'
Fixes: 
12885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5733516975800320

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer 
(cherry picked from commit 5ccf296e74725bc8bdfbfe500d0482daa200b6f3)
Signed-off-by: Michael Niedermayer 

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

 libavcodec/h264_direct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
index ec9fca0350..a01d823e7a 100644
--- a/libavcodec/h264_direct.c
+++ b/libavcodec/h264_direct.c
@@ -156,8 +156,8 @@ void ff_h264_direct_ref_list_init(const H264Context *const 
h, H264SliceContext *
 av_log(h->avctx, AV_LOG_ERROR, "co located POCs unavailable\n");
 sl->col_parity = 1;
 } else
-sl->col_parity = (FFABS(col_poc[0] - cur_poc) >=
-  FFABS(col_poc[1] - cur_poc));
+sl->col_parity = (FFABS(col_poc[0] - (int64_t)cur_poc) >=
+  FFABS(col_poc[1] - (int64_t)cur_poc));
 ref1sidx =
 sidx = sl->col_parity;
 // FL -> FL & differ parity

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


[FFmpeg-cvslog] avcodec/h264_direct: Fix overflow in POC comparission

2019-03-13 Thread Michael Niedermayer
ffmpeg | branch: release/4.1 | Michael Niedermayer  | 
Thu Feb 14 00:05:34 2019 +0100| [9495228df0288e61f9fa8ebb8ba86c14223aa949] | 
committer: Michael Niedermayer

avcodec/h264_direct: Fix overflow in POC comparission

Fixes: runtime error: signed integer overflow: 2147421862 - -33624063 cannot be 
represented in type 'int'
Fixes: 
12885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5733516975800320

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer 
(cherry picked from commit 5ccf296e74725bc8bdfbfe500d0482daa200b6f3)
Signed-off-by: Michael Niedermayer 

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

 libavcodec/h264_direct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
index ec9fca0350..a01d823e7a 100644
--- a/libavcodec/h264_direct.c
+++ b/libavcodec/h264_direct.c
@@ -156,8 +156,8 @@ void ff_h264_direct_ref_list_init(const H264Context *const 
h, H264SliceContext *
 av_log(h->avctx, AV_LOG_ERROR, "co located POCs unavailable\n");
 sl->col_parity = 1;
 } else
-sl->col_parity = (FFABS(col_poc[0] - cur_poc) >=
-  FFABS(col_poc[1] - cur_poc));
+sl->col_parity = (FFABS(col_poc[0] - (int64_t)cur_poc) >=
+  FFABS(col_poc[1] - (int64_t)cur_poc));
 ref1sidx =
 sidx = sl->col_parity;
 // FL -> FL & differ parity

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


[FFmpeg-cvslog] avcodec/h264_direct: Fix overflow in POC comparission

2019-02-20 Thread Michael Niedermayer
ffmpeg | branch: master | Michael Niedermayer  | Thu 
Feb 14 00:05:34 2019 +0100| [5ccf296e74725bc8bdfbfe500d0482daa200b6f3] | 
committer: Michael Niedermayer

avcodec/h264_direct: Fix overflow in POC comparission

Fixes: runtime error: signed integer overflow: 2147421862 - -33624063 cannot be 
represented in type 'int'
Fixes: 
12885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5733516975800320

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer 

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

 libavcodec/h264_direct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
index ec9fca0350..a01d823e7a 100644
--- a/libavcodec/h264_direct.c
+++ b/libavcodec/h264_direct.c
@@ -156,8 +156,8 @@ void ff_h264_direct_ref_list_init(const H264Context *const 
h, H264SliceContext *
 av_log(h->avctx, AV_LOG_ERROR, "co located POCs unavailable\n");
 sl->col_parity = 1;
 } else
-sl->col_parity = (FFABS(col_poc[0] - cur_poc) >=
-  FFABS(col_poc[1] - cur_poc));
+sl->col_parity = (FFABS(col_poc[0] - (int64_t)cur_poc) >=
+  FFABS(col_poc[1] - (int64_t)cur_poc));
 ref1sidx =
 sidx = sl->col_parity;
 // FL -> FL & differ parity

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