diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:11:29 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:11:29 +0000 |
commit | 8f19e3926566d3cdbb6578dc2b5f80e8b96eb2fb (patch) | |
tree | 84963b53db4f011d94b3908e520d971e552ba462 /gimp-CVE-2022-32990.patch | |
parent | ab01ef3595b68a226145d5485e85382b61a9f8cf (diff) |
automatic import of gimpopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'gimp-CVE-2022-32990.patch')
-rw-r--r-- | gimp-CVE-2022-32990.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gimp-CVE-2022-32990.patch b/gimp-CVE-2022-32990.patch new file mode 100644 index 0000000..24e1515 --- /dev/null +++ b/gimp-CVE-2022-32990.patch @@ -0,0 +1,31 @@ +From 22af0bcfe67c1c86381f33975ca7fdbde6b36b39 Mon Sep 17 00:00:00 2001 +From: Jacob Boerema <jgboerema@gmail.com> +Date: Sun, 5 Jun 2022 15:38:24 -0400 +Subject: [PATCH] app: fix #8230 crash in gimp_layer_invalidate_boundary when + channel is NULL + +gimp_channel_is_empty returns FALSE if channel is NULL. This causes +gimp_layer_invalidate_boundary to crash if the mask channel is NULL. + +With a NULL channel gimp_channel_is_empty should return TRUE, just like +the similar gimp_image_is_empty does, because returning FALSE here +suggests we have a non empty channel. +--- + app/core/gimpchannel.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c +index 7b6a9851ae..502821ba58 100644 +--- a/app/core/gimpchannel.c ++++ b/app/core/gimpchannel.c +@@ -1827,7 +1827,7 @@ gimp_channel_boundary (GimpChannel *channel, + gboolean + gimp_channel_is_empty (GimpChannel *channel) + { +- g_return_val_if_fail (GIMP_IS_CHANNEL (channel), FALSE); ++ g_return_val_if_fail (GIMP_IS_CHANNEL (channel), TRUE); + + return GIMP_CHANNEL_GET_CLASS (channel)->is_empty (channel); + } +-- +GitLab |