259 Commits

Author SHA1 Message Date
Cristy b348fac0c4 https://github.com/ImageMagick/ImageMagick/issues/8690 2026-04-26 12:34:55 -04:00
Dirk Lemstra 603a915c0b Use a consistent order instead. 2026-04-11 11:46:22 +02:00
Ryan Williams bd4a469adb Fix double-free in SVG gradientTransform / transform parsing (#8583)
In `SVGStartElement`, the `gradientTransform` and `transform` attribute
handlers reassign `value` to `tokens[j+1]` inside the inner token-parsing
loop. After the loop, all tokens are freed via `DestroyString()`. The
outer attribute loop then calls `DestroyString(value)`, which double-frees
the already-destroyed token string, causing SIGABRT.

Use a separate `token_value` local variable inside each inner loop instead
of reassigning `value`, so the outer loop's `DestroyString(value)` frees
the original `SVGEscapeString()`-allocated string exactly once.

Add regression test for SVG `gradientTransform` (#8582).

Fixes ImageMagick/ImageMagick#8582

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 09:44:45 -05:00
Dirk Lemstra 2abe65b018 Use the new license url. 2026-01-11 10:16:12 +01:00
Cristy 95eb90d2b1 eliminate compiler exception 2025-07-22 19:18:43 -04:00
Cristy 2d055c2d0e robust significant error detection based on fuzz 2025-07-22 18:57:03 -04:00
Cristy dc59667837 account for epsilon for fuzz comparison 2025-07-22 18:15:28 -04:00
Cristy 544c4fd6f7 account for epsilon when fuzzing 2025-07-22 07:09:50 -04:00
Yukari Hafner 39b3d2c2a1 Fix validation issues in SF3 (#8252)
* Minor change to fix complaint arising from -Werror=implicit-fallthrough

* Don't error when the data on read is short of expectation, exit instead.

* Convert other quantum formats to most suitable equivalents in SF3.

* Re-enable the SF3 validation tests now that they pass.

* Force the cast to make the windows build happy.

* Initialise quantum_info to make the windows build happy.
2025-07-13 15:52:30 -04:00
Cristy 77e3513aa3 wait until more mature before we can robustly validate SF3 2025-07-13 13:15:04 -04:00
Yukari Hafner c38b1e46cf Add support for Simple File Format Family (SF3) images (#8243)
* Start working on SF3 support.

* Finish reading support including multiple layers

* Make the encoder work, too.

* Fill in the CRC32 checksum in the coder.
2025-07-13 12:28:15 -04:00
Cristy 6a3f8ab644 revert 2025-06-28 13:07:47 -04:00
Cristy 31b5056f57 correct FUZZ metric 2025-06-28 11:09:11 -04:00
Cristy 50b0bcb450 create inline pixel colorspace conversion methods 2024-05-25 15:14:59 -04:00
Cristy 255a53c59e use radians macro 2024-02-22 06:38:05 -05:00
Dirk Lemstra 2b541530d7 Added missing includes. 2023-09-12 17:40:48 +02:00
Cristy 17adcaad77 initalize locale 2023-09-11 22:28:50 -04:00
Cristy 7275424444 eliminate compiler warnings 2023-08-05 16:28:09 -04:00
Cristy 2686655566 eliminate compiler warnings 2023-08-03 11:41:12 -04:00
Dirk Lemstra 43aa790ee2 Correct comment. 2023-04-16 09:06:53 +02:00
Dirk Lemstra f85c832c82 Silenced warning. 2023-04-10 16:55:40 +02:00
Dirk Lemstra f0af90e65f Cosmetic 2023-04-01 07:53:27 +02:00
Cristy 71d27ee9c5 uniform copyright 2023-03-30 09:28:12 -04:00
Cristy 28ee7175a4 you can never have too many unit tests 2022-12-28 11:59:20 -05:00
Josh Soref 39ac60a895 Spelling misc (#5787) 2022-11-25 09:59:10 +01:00
Cristy d4be27057b implement suggestions from a static analyzer 2022-11-19 10:16:43 -05:00
Cristy f6282ec88c add magick CLI unit test 2022-07-17 07:59:37 -04:00
Cristy 2d96d8e36c switch to MagickImageCommand() as ConvertImageCommand() will deprecate in the future 2022-07-17 07:40:04 -04:00
Cristy 74964367f9 fix temporary file leak 2022-05-15 16:35:19 -04:00
Cristy 43c4c099f3 system() is not supported under IOS 2021-06-26 08:07:00 -04:00
Cristy 7f651643d0 slight adjustment to D65 illuminant 2021-02-28 11:30:10 -05:00
Cristy f1de77927b cosmetic 2021-02-15 14:26:04 -05:00
Cristy 206e0cedda https://github.com/ImageMagick/ImageMagick/issues/3120 2021-01-14 20:39:43 -05:00
Cristy cdb8542f6b https://github.com/ImageMagick/ImageMagick/issues/3120 2021-01-14 20:23:18 -05:00
Cristy 8d3a3291bd https://github.com/ImageMagick/ImageMagick/issues/3120 2021-01-14 19:40:52 -05:00
Cristy d842011290 update to latest documentation and update copyright year 2021-01-01 14:52:00 -05:00
Cristy 22f66ab218 ... 2020-12-31 11:04:21 -05:00
Cristy da4485731a ... 2020-12-31 10:02:35 -05:00
Cristy f2dc1dd093 register storage class is deprecated 2020-12-28 13:59:26 -05:00
Cristy 544bb9c0a6 ... 2020-03-20 06:41:18 -04:00
Cristy d1e7b76680 https://github.com/ImageMagick/ImageMagick/pull/1798 2019-12-07 19:00:20 -05:00
Cristy ed7fd1726a Build file clean-up @ https://github.com/ImageMagick/ImageMagick/pull/1798 2019-12-07 10:52:28 -05:00
Cristy f775a5cf27 ... 2019-11-26 14:27:47 -05:00
Cristy 68c54ad600 ... 2019-11-18 08:33:36 -05:00
Cristy cafd392ba3 ... 2019-11-17 21:03:03 -05:00
Ramiro Balado 602ee2c216 Implementation of a TIM2 coder (#1571)
* Added ScaleColor4to8 and converse functions

* Implementation mostly done

* Build setup

* reordered processing of clut and pixels

* Added support for Shuffled CLUTs

* Revert "Added ScaleColor4to8 and converse functions"

This reverts commit b0bd8a59cc.

* Added more exceptions thrown when header is incorrect

* created enums and compacted rgb read functions

* Added alpha channel and changed alpha scaling

* Added support for format_type==1

* New define for assigning clut colors

* Changed names to avoid namespace conflicts

* Fixed alpha channel of RGB24 encoding

* Incorporated sanity check into the switch
2019-07-13 09:25:38 -04:00
Cristy 57b308b170 Include missing phrase from copyright 2019-01-19 17:53:40 -05:00
Cristy 4c78a90d98 C++ compliance 2018-12-22 11:40:01 -05:00
Cristy 0da8c56e03 ... 2018-12-09 18:11:23 -05:00
Cristy 252dd2c52b Is it 2019 already? 2018-12-02 09:42:06 -05:00