[FFmpeg-user] compiler warnings current snapshot

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Jan 15 04:24:32 EET 2018


2018-01-15 3:10 GMT+01:00 Reindl Harald <h.reindl at thelounge.net>:
> in current snapshot there are tons of "arning: '__builtin___snprintf_chk'
> output may be truncated before the last format character
> [-Wformat-truncation=]" warnings

Did you look at any of them?
See also below.

> In file included from src/libavutil/common.h:491:0,
>                  from src/libavutil/avutil.h:296,
>                  from src/libavutil/opt.h:31,
>                  from src/libavcodec/alac.c:51:
> src/libavcodec/alac.c: In function 'allocate_buffers':
> src/libavutil/internal.h:142:9: warning: argument 1 value
> '18446744073709551552' exceeds maximum object size 9223372036854775807
> [-Walloc-size-larger-than=]
>      p = av_malloc(size);\

How can this happen?

Compilers do not have less bugs than FFmpeg, and these warnings
tend to be particularly buggy.
(Yes, I prefer to spend my time on your mails than on the gcc
bug tracker.)

Carl Eugen


More information about the ffmpeg-user mailing list