Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
imagemagick
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
imagemagick
Merge requests
!27
Backport v2024 <- v2025pre: Update from debian/bookworm
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Backport v2024 <- v2025pre: Update from debian/bookworm
apertis/v2025pre
into
apertis/v2024-updates
Overview
0
Commits
3
Pipelines
3
Changes
24
Merged
Dylan Aïssi
requested to merge
apertis/v2025pre
into
apertis/v2024-updates
4 months ago
Overview
0
Commits
3
Pipelines
3
Changes
24
Expand
Backport of
!26 (merged)
👍
0
👎
0
Merge request reports
Compare
apertis/v2024-updates
apertis/v2024-updates (base)
and
latest version
latest version
ded951ad
3 commits,
4 months ago
24 files
+
889
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
24
Search (e.g. *.vue) (Ctrl+P)
debian/patches/0066-CVE-2023-34151-properly-cast-double-to-size_t.patch
0 → 100644
+
29
−
0
Options
From: Cristy <urban-warrior@imagemagick.org>
Date: Tue, 23 Apr 2024 18:19:24 -0400
Subject: CVE-2023-34151: properly cast double to size_t
bug: https://github.com/ImageMagick/ImageMagick/issues/6341
bug-debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070340
forgot to cast double to unsigned int
origin: https://github.com/ImageMagick/ImageMagick6/commit/be15ac962dea19536be1009d157639030fc42be9.patch
---
coders/mvg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/coders/mvg.c b/coders/mvg.c
index 2d503e1..d8e793e 100644
--- a/coders/mvg.c
+++ b/coders/mvg.c
@@ -191,8 +191,8 @@
static Image *ReadMVGImage(const ImageInfo *image_info,ExceptionInfo *exception)
96.0;
draw_info->affine.sy=image->y_resolution == 0.0 ? 1.0 : image->y_resolution/
96.0;
- image->columns=(size_t) (draw_info->affine.sx*image->columns);
- image->rows=(size_t) (draw_info->affine.sy*image->rows);
+ image->columns=CastDoubleToUnsigned(draw_info->affine.sx*image->columns);
+ image->rows=CastDoubleToUnsigned(draw_info->affine.sy*image->rows);
status=SetImageExtent(image,image->columns,image->rows);
if (status == MagickFalse)
{
Loading