Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to stb_image 2.28 #2464

Merged
merged 1 commit into from Mar 24, 2023
Merged

Upgrade to stb_image 2.28 #2464

merged 1 commit into from Mar 24, 2023

Conversation

ChrisThrasher
Copy link
Member

Description

https://src.fedoraproject.org/rpms/SFML/pull-request/2

Fixes some CVEs in stb_image 2.27

@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

❗ No coverage uploaded for pull request base (2.6.x@6aaf132). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head feee934 differs from pull request most recent head 037fdf5. Consider uploading reports for the commit 037fdf5 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             2.6.x    #2464   +/-   ##
========================================
  Coverage         ?   23.15%           
========================================
  Files            ?      212           
  Lines            ?    18063           
  Branches         ?     4405           
========================================
  Hits             ?     4183           
  Misses           ?    13427           
  Partials         ?      453           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6aaf132...037fdf5. Read the comment docs.

@eXpl0it3r
Copy link
Member

Can you do this for 2.6.x?

@ChrisThrasher ChrisThrasher changed the base branch from master to 2.6.x March 23, 2023 14:53
@ChrisThrasher
Copy link
Member Author

@binary1248 Extended CI is failing because it's trying to run clang-tidy on 2.6.x.

@ChrisThrasher ChrisThrasher merged commit 1bb494f into 2.6.x Mar 24, 2023
58 checks passed
@eXpl0it3r eXpl0it3r deleted the stb_image branch March 24, 2023 08:33
@ChrisThrasher
Copy link
Member Author

For the record, the addition of this PR introduced a new compiler warning that will get trigged if you're using a version of CMake older than 3.24. In 3.24 CMake fixed an issue that caused MSVC to emit warnings on 3rd party code. Without that fix, MSVC will detect and emit and warning about some lossy conversions in stb_image.h.

https://cmake.org/cmake/help/latest/release/3.24.html#generators

The Visual Studio Generators now support SYSTEM headers when using VS 2019 Update 11 or later.

Is this something worth fixing in SFML itself to avoid downstream users having to deal with it? I hope we can use pragmas as a workaround since I think modifying stb_image.h itself it out of the question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants