Skip to content

Conversation

@Processor228
Copy link

@Processor228 Processor228 commented Dec 3, 2025

Additionally, throw exceptions directly, instead of handling errors by longjumps.

Longjumps lead to segfaults under compiler optimizations.

Besides, setjmp setups always ended up throwing
exceptions, so why not throwing them right away instead?

Description

A fix for issue #774, case when png reader ends up in infinite loop.

References

issue #774

Tasklist

  • Add test case(s)
  • Ensure all CI builds pass
  • Review and approve

Additionally, throw exceptions directly, instead of handling
errors by longjumps.

Longjumps lead to segfaults under compiler optimizations.

Besides, setjmp setups always ended up throwing
exceptions, so why not throwing them right away instead?
@Processor228 Processor228 force-pushed the fix-reading-png-images branch from 343816c to 8dc4f65 Compare December 3, 2025 19:36
Copy link
Member

@mloskot mloskot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I'm not libpng expert, I'm inclined to approve it. The setjmp always been itching me too :) Thanks!
If not objections arrive in couple of days, this will be merged.

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.97%. Comparing base (06c421a) to head (6281653).
⚠️ Report is 28 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #780      +/-   ##
===========================================
- Coverage    82.34%   81.97%   -0.38%     
===========================================
  Files          117      117              
  Lines         5726     5353     -373     
===========================================
- Hits          4715     4388     -327     
+ Misses        1011      965      -46     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mloskot mloskot merged commit 50e0b5b into boostorg:develop Dec 5, 2025
33 of 35 checks passed
@mloskot
Copy link
Member

mloskot commented Dec 5, 2025

Thank you @Processor228 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants