webp-sh / webp_server_go

Go version of WebP Server. A tool that will serve your JPG/PNG/BMP/SVGs as WebP/AVIF format with compression, on-the-fly.
https://docs.webp.sh
GNU General Public License v3.0
1.83k stars 175 forks source link

Allow convert on abnormal image #212

Closed n0vad3v closed 1 year ago

n0vad3v commented 1 year ago

Possible fix for https://github.com/webp-sh/webp_server_go/issues/211

But we might need more tests since FailOnError is set to true.

Similar issue: https://github.com/lovell/sharp/issues/2032

github-actions[bot] commented 1 year ago

ghcr.io/webp-sh/webp_server_go (debian 11.7)
============================================
Total: 3 (HIGH: 3, CRITICAL: 0)

┌───────────────┬───────────────┬──────────┬───────────────────┬───────────────────┬───────────────────────────────────────────┐
│    Library    │ Vulnerability │ Severity │ Installed Version │   Fixed Version   │                   Title                   │
├───────────────┼───────────────┼──────────┼───────────────────┼───────────────────┼───────────────────────────────────────────┤
│ libwebp6      │ CVE-2023-1999 │ HIGH     │ 0.6.1-2.1         │ 0.6.1-2.1+deb11u1 │ Double-free in libwebp                    │
│               │               │          │                   │                   │ https://avd.aquasec.com/nvd/cve-2023-1999 │
├───────────────┤               │          │                   │                   │                                           │
│ libwebpdemux2 │               │          │                   │                   │                                           │
│               │               │          │                   │                   │                                           │
├───────────────┤               │          │                   │                   │                                           │
│ libwebpmux3   │               │          │                   │                   │                                           │
│               │               │          │                   │                   │                                           │
└───────────────┴───────────────┴──────────┴───────────────────┴───────────────────┴───────────────────────────────────────────┘
github-actions[bot] commented 1 year ago

ghcr.io/webp-sh/webp_server_go (debian 11.7)
============================================
Total: 3 (HIGH: 3, CRITICAL: 0)

┌───────────────┬───────────────┬──────────┬───────────────────┬───────────────────┬───────────────────────────────────────────┐
│    Library    │ Vulnerability │ Severity │ Installed Version │   Fixed Version   │                   Title                   │
├───────────────┼───────────────┼──────────┼───────────────────┼───────────────────┼───────────────────────────────────────────┤
│ libwebp6      │ CVE-2023-1999 │ HIGH     │ 0.6.1-2.1         │ 0.6.1-2.1+deb11u1 │ Double-free in libwebp                    │
│               │               │          │                   │                   │ https://avd.aquasec.com/nvd/cve-2023-1999 │
├───────────────┤               │          │                   │                   │                                           │
│ libwebpdemux2 │               │          │                   │                   │                                           │
│               │               │          │                   │                   │                                           │
├───────────────┤               │          │                   │                   │                                           │
│ libwebpmux3   │               │          │                   │                   │                                           │
│               │               │          │                   │                   │                                           │
└───────────────┴───────────────┴──────────┴───────────────────┴───────────────────┴───────────────────────────────────────────┘
codecov[bot] commented 1 year ago

Codecov Report

Merging #212 (8742c78) into master (9efead2) will decrease coverage by 1.77%. The diff coverage is 80.93%.

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
- Coverage   83.57%   81.81%   -1.77%     
==========================================
  Files           6        6              
  Lines         542      616      +74     
==========================================
+ Hits          453      504      +51     
- Misses         61       76      +15     
- Partials       28       36       +8     
Impacted Files Coverage Δ
encoder.go 67.03% <68.88%> (-10.11%) :arrow_down:
router.go 93.10% <94.73%> (+3.41%) :arrow_up:
config.go 100.00% <100.00%> (ø)
helper.go 87.89% <100.00%> (-0.87%) :arrow_down:
prefetch.go 100.00% <100.00%> (ø)
webp-server.go 78.12% <100.00%> (+0.95%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 1 year ago

ghcr.io/webp-sh/webp_server_go (debian 11.7)
============================================
Total: 3 (HIGH: 3, CRITICAL: 0)

┌───────────────┬───────────────┬──────────┬───────────────────┬───────────────────┬───────────────────────────────────────────┐
│    Library    │ Vulnerability │ Severity │ Installed Version │   Fixed Version   │                   Title                   │
├───────────────┼───────────────┼──────────┼───────────────────┼───────────────────┼───────────────────────────────────────────┤
│ libwebp6      │ CVE-2023-1999 │ HIGH     │ 0.6.1-2.1         │ 0.6.1-2.1+deb11u1 │ Double-free in libwebp                    │
│               │               │          │                   │                   │ https://avd.aquasec.com/nvd/cve-2023-1999 │
├───────────────┤               │          │                   │                   │                                           │
│ libwebpdemux2 │               │          │                   │                   │                                           │
│               │               │          │                   │                   │                                           │
├───────────────┤               │          │                   │                   │                                           │
│ libwebpmux3   │               │          │                   │                   │                                           │
│               │               │          │                   │                   │                                           │
└───────────────┴───────────────┴──────────┴───────────────────┴───────────────────┴───────────────────────────────────────────┘