summaryrefslogtreecommitdiff
path: root/libavutil/avsscanf.c
Commit message (Collapse)AuthorAge
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-24
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary avassert.h inclusionsAndreas Rheinhardt2021-07-22
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary mem.h inclusionsAndreas Rheinhardt2021-07-22
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/avsscanf: fix possible overreads when dealing with %c or %sPaul B Mahol2020-12-02
|
* avutil/avsscanf: Add () to avoid integer overflow in scanexp()Michael Niedermayer2020-07-01
| | | | | | | | Fixes: signed integer overflow: 2147483610 + 52 cannot be represented in type 'int' Fixes: 23260/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PBM_fuzzer-5187871274434560 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/avsscanf: do not use long double functionsPaul B Mahol2018-12-15
| | | | Not needed when only double is used.
* avutil/avsscanf: do not use unsupported p suffix for hex variablePaul B Mahol2018-11-22
|
* avutil/avsscanf: use ptrdiff_t instead of off_tPaul B Mahol2018-11-19
|
* lavu/avsscanf: Do not mix declaration and code.Carl Eugen Hoyos2018-11-18
| | | | | | | | Fixes the following warning: libavutil/avsscanf.c: In function 'decfloat': libavutil/avsscanf.c:354:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int bitlim = bits-3*(int)(rp-9); ^~~
* lavu: add locale-independent sscanf implementationPaul B Mahol2018-11-16
Copied and adopted from musl implementation. * converted all 'long double' to 'double' * removed %m support