This commit is contained in:
Cristy 2023-08-13 18:51:02 -04:00
parent 1c7a0f63db
commit 98d4a7247d
2 changed files with 6 additions and 6 deletions

View file

@ -1519,7 +1519,7 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file,
(double) dataset,(double) record);
length=(size_t) (GetStringInfoDatum(profile)[i++] << 8);
length|=GetStringInfoDatum(profile)[i++];
length=MagickMin(length,profile_length-i);
length=MagickMin(length,profile_length-(size_t) i);
attribute=(char *) NULL;
if (~length >= (MagickPathExtent-1))
attribute=(char *) AcquireQuantumMemory(length+MagickPathExtent,

View file

@ -241,7 +241,7 @@ MagickExport MagickBooleanType DuplexTransferImageViewIterator(
status=MagickTrue;
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
height=source->extent.height-(size_t) source->extent.y;
#pragma omp parallel for schedule(static) shared(progress,status) \
magick_number_threads(source_image,destination_image,height,1)
#endif
@ -554,7 +554,7 @@ MagickExport MagickBooleanType GetImageViewIterator(ImageView *source,
status=MagickTrue;
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
height=source->extent.height-(size_t) source->extent.y;
#pragma omp parallel for schedule(static) shared(progress,status) \
magick_number_threads(source_image,source_image,height,1)
#endif
@ -901,7 +901,7 @@ MagickExport MagickBooleanType SetImageViewIterator(ImageView *destination,
status=MagickTrue;
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=destination->extent.height-destination->extent.y;
height=destination->extent.height-(size_t) destination->extent.y;
#pragma omp parallel for schedule(static) shared(progress,status) \
magick_number_threads(destination_image,destination_image,height,1)
#endif
@ -1030,7 +1030,7 @@ MagickExport MagickBooleanType TransferImageViewIterator(ImageView *source,
status=MagickTrue;
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
height=source->extent.height-(size_t) source->extent.y;
#pragma omp parallel for schedule(static) shared(progress,status) \
magick_number_threads(source_image,destination_image,height,1)
#endif
@ -1162,7 +1162,7 @@ MagickExport MagickBooleanType UpdateImageViewIterator(ImageView *source,
status=MagickTrue;
progress=0;
#if defined(MAGICKCORE_OPENMP_SUPPORT)
height=source->extent.height-source->extent.y;
height=source->extent.height-(size_t) source->extent.y;
#pragma omp parallel for schedule(static) shared(progress,status) \
magick_number_threads(source_image,source_image,height,1)
#endif