News for hackers. Stuff that matters.
Re:Let's write a setjmp by smcameron on Sunday February 12, 2023 @08:37AM (#34762704)
> While some programs/libs (most notably libjpeg) use setjmp/longjmp

Also libpng. What is it with these graphics guys that they can't just return an error code like a normal person?

Re:Let's write a setjmp by duskwuff on Sunday February 12, 2023 @04:02PM (#34766909)
libjpeg is a fairly old library (1991), so it isn't terribly surprising that it doesn't follow modern programming conventions.

libpng is only slightly newer (1995), and may have adopted the pattern from libjpeg.