Re: [FFmpeg-devel] [PATCH] avcodec/hevc/hevcdec: Don't add to null pointer

2025-01-29 Thread Vitaly Buka via ffmpeg-devel
Hello, Would it be possible to merge this patch? Thanks, Vitaly ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subje

Re: [FFmpeg-devel] [PATCH 2/2] configure: Use -fno-sanitize-recover

2025-01-17 Thread Vitaly Buka via ffmpeg-devel
On Fri, Jan 17, 2025 at 3:12 PM James Almer wrote: > On 1/17/2025 7:53 PM, Vitaly Buka via ffmpeg-devel wrote: > > My confusion here is that it looks like ffmpeg developers care about UB, > I > > see from time to time large cleanups, but there are a bunch of unfixed >

Re: [FFmpeg-devel] [PATCH 2/2] configure: Use -fno-sanitize-recover

2025-01-17 Thread Vitaly Buka via ffmpeg-devel
19:12, Vitaly Buka via ffmpeg-devel wrote: > > UBSAN by default is just prints a mesage and > > moves on. This hides a few UBs in fate-suite. > > > > Signed-off-by: Vitaly Buka > > --- > > configure | 4 ++-- > > libavcodec/aacen

Re: [FFmpeg-devel] [PATCH 1/2] .gitignore: ignore fate-suite

2025-01-16 Thread Vitaly Buka via ffmpeg-devel
On Thu, Jan 16, 2025 at 11:12 AM Vitaly Buka wrote: > Signed-off-by: Vitaly Buka > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index 9cfc78b414..6fcbddad3c 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -43,

[FFmpeg-devel] [PATCH] avcodec/hevc/hevcdec: Don't add to null pointer

2025-01-16 Thread Vitaly Buka via ffmpeg-devel
`POS(1,` and `POS(2,` may trigger UBSAN report: "runtime error: applying non-zero offset 304 to null pointer" Looks like values are not used without `chroma_format_idc`, so maybe there is no other issues than the UB. Can't reproduce with "fate". Signed-off-by: Vitaly B

Re: [FFmpeg-devel] [PATCH 2/2] configure: Use -fno-sanitize-recover

2025-01-16 Thread Vitaly Buka via ffmpeg-devel
I assume "recover" mode is there unintentionally. "-fno-sanitize-recover" helps to keep the code clean. On Thu, Jan 16, 2025 at 11:13 AM Vitaly Buka wrote: > UBSAN by default is just prints a mesage and > moves on. This hides a few UBs in fate-suite. >

[FFmpeg-devel] [PATCH 2/2] configure: Use -fno-sanitize-recover

2025-01-16 Thread Vitaly Buka via ffmpeg-devel
UBSAN by default is just prints a mesage and moves on. This hides a few UBs in fate-suite. Signed-off-by: Vitaly Buka --- configure | 4 ++-- libavcodec/aacenc_pred.c | 1 + libavcodec/ffv1dec.c | 1 + libavcodec/ffv1enc_template.c | 1 + libavcodec/get_bits.h

[FFmpeg-devel] [PATCH 1/2] .gitignore: ignore fate-suite

2025-01-16 Thread Vitaly Buka via ffmpeg-devel
Signed-off-by: Vitaly Buka --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9cfc78b414..6fcbddad3c 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ /tools/python/__pycache__/ /libavcodec/vulkan/*.c /libavfilter/vulkan/*.c +/fate-suite

[FFmpeg-devel] [PATCH] mpeg4videoenc: Don't crash with -fsanitize=bounds

2020-04-21 Thread Vitaly Buka
Also the patch makes this code consistent with mpeg4videodec.c --- libavcodec/mpeg4videoenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c index f6a5992df7..2cd5a8c015 100644 --- a/libavcodec/mpeg4videoenc.c +++ b/l

Re: [FFmpeg-devel] [PATCH] Fix signed integer overflow in mov_write_single_packet Detected with clang and -fsanitize=signed-integer-overflow

2017-10-28 Thread Vitaly Buka
ping On Fri, Oct 6, 2017 at 4:20 PM, Vitaly Buka wrote: > Signed-off-by: Vitaly Buka > --- > libavformat/movenc.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/movenc.c b/libavformat/movenc.c > index 2838286141..e70500ae2c 100644 > --- a/liba

[FFmpeg-devel] [PATCH] Fix signed integer overflow in mov_write_single_packet Detected with clang and -fsanitize=signed-integer-overflow

2017-10-06 Thread Vitaly Buka
Signed-off-by: Vitaly Buka --- libavformat/movenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 2838286141..e70500ae2c 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5354,6 +5354,10 @@ static int

Re: [FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-22 Thread Vitaly Buka
What else can I do yo make it accepted? On Sun, Aug 20, 2017 at 11:56 AM, Vitaly Buka wrote: > Signed integer overflow is undefined behavior. > Detected with clang and -fsanitize=signed-integer-overflow > > Signed-off-by: Vitaly Buka > --- > libavcodec/utils.c| 2

[FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-20 Thread Vitaly Buka
Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka --- libavcodec/utils.c| 2 +- libavformat/aviobuf.c | 2 ++ libavformat/mov.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a

[FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-20 Thread Vitaly Buka
Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka --- libavcodec/utils.c| 2 +- libavformat/aviobuf.c | 2 ++ libavformat/mov.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a

Re: [FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-20 Thread Vitaly Buka
Looks like libavcodec/ has more LL or ll than INT64_C. Should I update the patch? On Sat, Aug 19, 2017 at 11:35 PM, Hendrik Leppkes wrote: > On Sun, Aug 20, 2017 at 3:19 AM, Vitaly Buka > wrote: > > Signed integer overflow is undefined behavior. > > Detected with clang and

[FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-19 Thread Vitaly Buka
Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka --- libavcodec/utils.c| 2 +- libavformat/aviobuf.c | 3 +++ libavformat/mov.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a

[FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-19 Thread Vitaly Buka
Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka --- libavcodec/utils.c| 2 +- libavformat/aviobuf.c | 2 ++ libavformat/mov.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a

Re: [FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-18 Thread Vitaly Buka
en Hoyos wrote: > 2017-08-18 8:14 GMT+02:00 Vitaly Buka >: > > Signed integer overflow is undefined behavior. > > Detected with clang and -fsanitize=signed-integer-overflow > > > --- a/libavformat/mov.c > > +++ b/libavformat/mov.c > > @@ -5572,7 +5572,7 @@ st

Re: [FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-18 Thread Vitaly Buka
On Fri, Aug 18, 2017 at 1:11 AM, Tomas Härdin wrote: > On 2017-08-18 08:14, Vitaly Buka wrote: > >> Signed integer overflow is undefined behavior. >> Detected with clang and -fsanitize=signed-integer-overflow >> >> Signed-off-by: Vitaly Buka >>

[FFmpeg-devel] [PATCH] Fix signed integer overflows

2017-08-17 Thread Vitaly Buka
Signed integer overflow is undefined behavior. Detected with clang and -fsanitize=signed-integer-overflow Signed-off-by: Vitaly Buka --- libavcodec/utils.c| 2 +- libavformat/aviobuf.c | 4 +++- libavformat/mov.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a