James Zern
c696aadf69
ALPHInit: move assignment closer to first use
...
This fixes a spurious unsigned integer overflow with invalid content:
```
src/dec/alpha_dec.c:61:44: runtime error: unsigned integer overflow: 0 -
1 cannot be represented in type 'size_t' (aka 'unsigned long')
```
Bug: 498965803, 498966235, 498966511, 498967090
Change-Id: I350d9144d0c1e4e35286e9e1ca68a574ff6f86a1
2026-04-02 14:49:09 -07:00
Vincent Rabaud
d52b9ee34d
Be consistent with the includes in non-src folders.
...
BUG: 470992419
Change-Id: I55618205da7dcfe17d96a7c3ee69d924a63d1acf
2025-12-23 16:54:48 +01:00
Philippe Antoine
fdc81cebda
fuzz: add allocations failures injections
...
nallocfuzz comes from https://github.com/catenacyber/nallocfuzz
Change-Id: Ia5be1ffd91cccca135927f0f43da04abc8194d27
2025-08-26 21:20:12 +02:00
clang-format
44257cb826
apply clang-format
...
(Debian clang-format version 19.1.7 (3+build4)) with `--style=Google`.
Manual changes:
* clang-format disabled around macros with stringification (mostly
assembly)
* some inline assembly strings were adjusted to avoid awkward line
breaks
* trailing commas, `//` or suffixes (`ull`) added to help array
formatting
* thread_utils.c: parameter comments were changed to the more common
/*...=*/ style to improve formatting
The automatically generated code under swig/ was skipped.
Bug: 433996651
Change-Id: Iea3f24160d78d2a2653971cdf13fa932e47ff1b3
2025-07-31 14:53:58 -07:00
Vincent Rabaud
4f200de591
Switch public fuzz tests to fuzztest.
...
Change-Id: I75afb65058690585bbf2671c27d6a99a87bcaab7
2024-06-05 14:08:27 +02:00
Yannis Guyon
713982b883
Limit animdecoder_fuzzer to 320MB
...
Change-Id: Ic139ea870b98c58a2ecf46e81844f647fa0d2aba
2024-02-15 10:16:54 +00:00
James Zern
c5bc36243a
fuzzer/*: normalize src/ includes
...
this uses the format introduced to some files in:
cc3577e9 fuzzer/*: use src/ based include paths
Change-Id: I9b5cbeadbb9d54d1e89f474a6e479a5eb3175ed7
2021-07-28 13:32:19 -07:00
Pascal Massimino
8df77fb1b1
animdecoder_fuzzer: fix memory leak
...
BUG=oss-fuzz:28978
Change-Id: I7b3a495c02b4b03f367d732af5acb02856f8bead
2020-12-26 12:26:41 +01:00
James Zern
6325882327
animdecoder_fuzzer: validate canvas size
...
avoids some OOMs due to extreme resolutions
BUG=oss-fuzz:28658
Change-Id: I60b5fb3d7a7d17694a89237d521b851b0897e9fb
2020-12-18 11:18:11 -08:00
James Zern
443db47d91
add animdecoder_fuzzer.cc
...
Bug: webp:409
Change-Id: Iade1e6b1288faad9076f72c21c1bde5a6bbfc7e0
2020-10-14 19:44:19 -07:00