reuk
e0faa5c255
PNGImageFormat: Avoid crashing when attempting to write an invalid image
...
The default error handler could cause crashes, so we now set up a custom
error handler both when reading and writing PNGs.
The HeapBlock and BitmapData automatic variables have moved, so that
their destructors will still run as expected in the failure case. Note
that it's UB to call longjmp to unwind the stack to the previous setjmp,
if said unwinding would normally cause non-trivial destructors to run.
2025-09-25 18:38:32 +01:00
reuk
518240cd61
Zlib: Fix unknown-symbols errors when building with clang, windows, C++20/23
2025-03-03 14:41:32 +00:00
reuk
209c86c627
Zlib: Update JUCE sources to support new zlib version
2025-02-25 12:47:13 +00:00
Tom Poole
94d98a2b10
Update licensing information
2024-04-16 11:39:35 +01:00
Tom Poole
4153d59e39
Formatting
2023-10-02 15:42:20 +01:00
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible
2023-04-04 19:55:11 +01:00
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4
Update copyright banners
2022-04-04 12:36:32 +01:00
reuk
93ba4d98cf
Fix clang warnings
2022-04-01 16:41:47 +01:00
reuk
31a7c62baf
Windows: Fix and suppress some analysis warnings
...
This fixes warnings that are emitted when building with the `-analyze`
flag enabled.
2021-05-26 15:34:26 +01:00
Tom Poole
ee76137441
Fixed some compiler warnings
2021-04-16 16:44:05 +01:00
jules
a9b5fe3a39
Tweaks for emscripten support
2021-02-08 09:59:46 +00:00
ed
009d685179
Updated all license headers
2020-06-29 08:30:22 +01:00
ed
b57509c4a2
Removed some cross-module relative includes
2020-05-22 16:46:52 +01:00
reuk
51e8450026
Zlib: Make declarations match when including zlib code
2020-05-05 12:28:47 +01:00
reuk
e13901d912
ClangCl: Silence code which warns when building on Windows with Clang
2020-04-27 10:22:06 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
5f348c3040
Warnings: Add warning-wrangling header
2020-04-13 13:16:05 +01:00
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
2020-04-09 15:22:56 +01:00
ed
59a058fdc6
Fixed some warnings flagged up when enabling -Wswitch-enum, -Wswitch-default, -Wredundant-decls, and -Wimplicit-fallthrough
2020-03-09 17:39:28 +00:00
Tom Poole
0e00e83944
Removed some extern "C" declarations from libpng
2019-06-28 15:34:16 +01:00
Tom Poole
1c9cea431d
PNG: Switched to inline libpng linkage to prevent symbol collisions
2019-06-27 17:54:59 +01:00
Tom Poole
7e52198ee1
Updated the internal PNG library
2019-06-25 10:01:36 +01:00
Tom Poole
16dd26649a
Fixed some GCC compiler warnings and removed deprecated functions
2019-06-04 16:48:44 +01:00
jules
6fda0bffca
Fixed some stray zeros that were still being passed as null pointers
2018-10-05 12:15:04 +01:00
jules
369d59f656
Added a template to allow the HeapBlock class to be given signed ints or other types that are not size_t for its size parameters
2017-10-11 12:10:58 +01:00
jules
eda613c6db
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
2017-09-08 08:59:55 +01:00
tpoole
a05362d46b
Projucer: Xcode exporter: Updated to support Xcode 9
2017-07-24 18:00:54 +01:00
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
2017-04-27 14:43:04 +01:00
jules
b90077c85f
Cleaned up some warnings in the PNG code
2016-12-24 09:32:37 +00:00
hogliux
27c353ca3f
Fixed an issue when compiling with newer external png libraries
2016-12-19 15:34:53 +00:00
jules
99ebba4e4c
Workarounds to avoid clashes with stupid 3rd-party headers that rely on defining a macro called "check"
2015-12-07 19:31:05 +00:00
hogliux
c17c4ec43b
Fix Android build errors in libpng and libflac
2015-09-16 09:57:50 +01:00
jules
5cef7c8e79
Reworked the PNG loader
2015-09-11 09:48:51 +01:00
jules
9c13257da2
Added flag JUCE_EXCEPTIONS_DISABLED to detect compiling with exceptions turned off, and removed internal exception use from a few places in the codebase.
2015-09-06 15:42:34 +01:00
hogliux
c7b8e77031
Update copyright notice
2015-07-22 15:59:34 +01:00
jules
6f6d0d201d
Avoided a couple of obscure gcc warnings
2014-09-06 09:26:54 +01:00
jules
fc772941d6
Fixed some pedantic warnings.
2013-09-16 18:47:28 +01:00
jules
03c2801f3f
Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3
2013-06-13 13:17:12 +01:00
jules
bf3cb2e29b
Avoided some strict compiler warnings.
2013-04-04 16:47:33 +01:00
jules
536bfddef4
Made PNG loader ignore warnings.
2013-04-03 20:41:09 +01:00
jules
9ba2079603
update of libpng to 1.6.1
2013-04-03 16:31:22 +01:00
jules
6b6c4a3eab
Minor clean-ups.
2013-04-02 11:52:52 +01:00
jules
a54d8f8098
Minor clean-ups.
2013-03-29 09:27:50 +00:00
jules
bfd9350bed
Changed some types from int to size_t where appropriate. Fixed a CoreMidi build problem in 64-bit mode.
2013-02-24 15:49:06 +00:00
jules
dbaa9b9cc1
Prevented zlib headers messing-up use of the fdopen() function.
2012-10-31 10:03:20 +00:00
jules
6b1654e1d2
Fixed some more warnings.
2012-09-24 15:45:25 +01:00
jules
6b679bb46b
New methods in ImageFileFormat for checking file extensions.
2012-08-06 10:48:30 +01:00
jules
d4deecb2f2
Cleaned up a few warnings generated by clang -Wall.
2012-05-09 10:01:56 +01:00
jules
1f95f54089
Purged some warnings.
2012-04-10 10:29:14 +01:00