Mageia Bugzilla – Attachment 7741 Details for
Bug 17714
graphicsmagick new security issues CVE-2015-8808, CVE-2016-2317, CVE-2016-2318, CVE-2016-5118, CVE-2016-524[01]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch for CVE-2016-2318 that applies to Cauldron only
GraphicsMagick-1.3.23-CVE-2016-2318.patch (text/plain), 100.10 KB, created by
Nicolas Salguero
on 2016-05-04 15:07:46 CEST
(
hide
)
Description:
Patch for CVE-2016-2318 that applies to Cauldron only
Filename:
MIME Type:
Creator:
Nicolas Salguero
Created:
2016-05-04 15:07:46 CEST
Size:
100.10 KB
patch
obsolete
># HG changeset patch ># User Bob Friesenhahn <bfriesen@GraphicsMagick.org> ># Date 1462059123 18000 ># Sat Apr 30 18:32:03 2016 -0500 ># Node ID e797bb0aec31941c454e6f764f9589d3b1843547 ># Parent 9ba30629488e95a5b796db9af13aab979e09c139 >DrawImage(): Make SVG path and other primitive parsing more robust. >Fixes SEGV when reading files provided by CVE-2016-2318 test cases. >Fixes CVE-2016-2318 completely. > >diff -r 9ba30629488e -r e797bb0aec31 locale/C.mgk >--- a/locale/C.mgk Sat Apr 30 18:31:06 2016 -0500 >+++ b/locale/C.mgk Sat Apr 30 18:32:03 2016 -0500 >@@ -622,6 +622,15 @@ > <Message name="TooManyCoordinates"> > too many coordinates > </Message> >+ <Message name="FloatValueConversionError"> >+ text value does not convert to float >+ </Message> >+ <Message name="IntegerValueConversionError"> >+ text value does not convert to integer >+ </Message> >+ <Message name="VectorPathTruncated"> >+ vector path truncated >+ </Message> > </Error> > <FatalError> > <Message name="Default"> >diff -r 9ba30629488e -r e797bb0aec31 magick/locale_c.h >--- a/magick/locale_c.h Sat Apr 30 18:31:06 2016 -0500 >+++ b/magick/locale_c.h Sat Apr 30 18:32:03 2016 -0500 >@@ -3,7 +3,7 @@ > > extern MagickExport const char *GetLocaleMessageFromID(const int); > >-#define MAX_LOCALE_MSGS 544 >+#define MAX_LOCALE_MSGS 547 > > #define MGK_BlobErrorUnableToCreateBlob 1 > #define MGK_BlobErrorUnableToObtainOffset 2 >@@ -191,364 +191,367 @@ > #define MGK_DelegateFatalErrorDefault 184 > #define MGK_DelegateWarningDefault 185 > #define MGK_DrawErrorAlreadyPushingPatternDefinition 186 >-#define MGK_DrawErrorNonconformingDrawingPrimitiveDefinition 187 >-#define MGK_DrawErrorTooManyCoordinates 188 >-#define MGK_DrawErrorUnableToPrint 189 >-#define MGK_DrawErrorUnbalancedGraphicContextPushPop 190 >-#define MGK_DrawFatalErrorDefault 191 >-#define MGK_DrawWarningNotARelativeURL 192 >-#define MGK_DrawWarningNotCurrentlyPushingPatternDefinition 193 >-#define MGK_DrawWarningURLNotFound 194 >-#define MGK_FileOpenErrorUnableToCreateTemporaryFile 195 >-#define MGK_FileOpenErrorUnableToOpenFile 196 >-#define MGK_FileOpenErrorUnableToWriteFile 197 >-#define MGK_FileOpenFatalErrorDefault 198 >-#define MGK_FileOpenWarningDefault 199 >-#define MGK_ImageErrorAngleIsDiscontinuous 200 >-#define MGK_ImageErrorColorspaceColorProfileMismatch 201 >-#define MGK_ImageErrorImageColorspaceDiffers 202 >-#define MGK_ImageErrorImageColorspaceMismatch 203 >-#define MGK_ImageErrorImageDifferenceExceedsLimit 204 >-#define MGK_ImageErrorImageDoesNotContainResolution 205 >-#define MGK_ImageErrorImageOpacityDiffers 206 >-#define MGK_ImageErrorImageSequenceIsRequired 207 >-#define MGK_ImageErrorImageSizeDiffers 208 >-#define MGK_ImageErrorInvalidColormapIndex 209 >-#define MGK_ImageErrorLeftAndRightImageSizesDiffer 210 >-#define MGK_ImageErrorNoImagesWereFound 211 >-#define MGK_ImageErrorNoImagesWereLoaded 212 >-#define MGK_ImageErrorNoLocaleImageAttribute 213 >-#define MGK_ImageErrorTooManyClusters 214 >-#define MGK_ImageErrorUnableToAppendImage 215 >-#define MGK_ImageErrorUnableToAssignProfile 216 >-#define MGK_ImageErrorUnableToAverageImage 217 >-#define MGK_ImageErrorUnableToCoalesceImage 218 >-#define MGK_ImageErrorUnableToCompareImages 219 >-#define MGK_ImageErrorUnableToCreateImageMosaic 220 >-#define MGK_ImageErrorUnableToCreateStereoImage 221 >-#define MGK_ImageErrorUnableToDeconstructImageSequence 222 >-#define MGK_ImageErrorUnableToFlattenImage 223 >-#define MGK_ImageErrorUnableToGetClipMask 224 >-#define MGK_ImageErrorUnableToHandleImageChannel 225 >-#define MGK_ImageErrorUnableToResizeImage 226 >-#define MGK_ImageErrorUnableToSegmentImage 227 >-#define MGK_ImageErrorUnableToSetClipMask 228 >-#define MGK_ImageErrorUnableToShearImage 229 >-#define MGK_ImageErrorWidthOrHeightExceedsLimit 230 >-#define MGK_ImageFatalErrorUnableToPersistKey 231 >-#define MGK_ImageWarningDefault 232 >-#define MGK_MissingDelegateErrorDPSLibraryIsNotAvailable 233 >-#define MGK_MissingDelegateErrorFPXLibraryIsNotAvailable 234 >-#define MGK_MissingDelegateErrorFreeTypeLibraryIsNotAvailable 235 >-#define MGK_MissingDelegateErrorJPEGLibraryIsNotAvailable 236 >-#define MGK_MissingDelegateErrorLCMSLibraryIsNotAvailable 237 >-#define MGK_MissingDelegateErrorLZWEncodingNotEnabled 238 >-#define MGK_MissingDelegateErrorNoDecodeDelegateForThisImageFormat 239 >-#define MGK_MissingDelegateErrorNoEncodeDelegateForThisImageFormat 240 >-#define MGK_MissingDelegateErrorTIFFLibraryIsNotAvailable 241 >-#define MGK_MissingDelegateErrorXMLLibraryIsNotAvailable 242 >-#define MGK_MissingDelegateErrorXWindowLibraryIsNotAvailable 243 >-#define MGK_MissingDelegateErrorZipLibraryIsNotAvailable 244 >-#define MGK_MissingDelegateFatalErrorDefault 245 >-#define MGK_MissingDelegateWarningDefault 246 >-#define MGK_ModuleErrorFailedToCloseModule 247 >-#define MGK_ModuleErrorFailedToFindSymbol 248 >-#define MGK_ModuleErrorUnableToLoadModule 249 >-#define MGK_ModuleErrorUnableToRegisterImageFormat 250 >-#define MGK_ModuleErrorUnrecognizedModule 251 >-#define MGK_ModuleFatalErrorUnableToInitializeModuleLoader 252 >-#define MGK_ModuleWarningDefault 253 >-#define MGK_MonitorErrorDefault 254 >-#define MGK_MonitorFatalErrorDefault 255 >-#define MGK_MonitorFatalErrorUserRequestedTerminationBySignal 256 >-#define MGK_MonitorWarningDefault 257 >-#define MGK_OptionErrorBevelWidthIsNegative 258 >-#define MGK_OptionErrorColorSeparatedImageRequired 259 >-#define MGK_OptionErrorFrameIsLessThanImageSize 260 >-#define MGK_OptionErrorGeometryDimensionsAreZero 261 >-#define MGK_OptionErrorGeometryDoesNotContainImage 262 >-#define MGK_OptionErrorHaldClutImageDimensionsInvalid 263 >-#define MGK_OptionErrorImagesAreNotTheSameSize 264 >-#define MGK_OptionErrorImageSizeMustExceedBevelWidth 265 >-#define MGK_OptionErrorImageSmallerThanKernelWidth 266 >-#define MGK_OptionErrorImageSmallerThanRadius 267 >-#define MGK_OptionErrorImageWidthsOrHeightsDiffer 268 >-#define MGK_OptionErrorInputImagesAlreadySpecified 269 >-#define MGK_OptionErrorInvalidSubimageSpecification 270 >-#define MGK_OptionErrorKernelRadiusIsTooSmall 271 >-#define MGK_OptionErrorKernelWidthMustBeAnOddNumber 272 >-#define MGK_OptionErrorMatrixIsNotSquare 273 >-#define MGK_OptionErrorMatrixOrderOutOfRange 274 >-#define MGK_OptionErrorMissingAnImageFilename 275 >-#define MGK_OptionErrorMissingArgument 276 >-#define MGK_OptionErrorMustSpecifyAnImageName 277 >-#define MGK_OptionErrorMustSpecifyImageSize 278 >-#define MGK_OptionErrorNoBlobDefined 279 >-#define MGK_OptionErrorNoImagesDefined 280 >-#define MGK_OptionErrorNonzeroWidthAndHeightRequired 281 >-#define MGK_OptionErrorNoProfileNameWasGiven 282 >-#define MGK_OptionErrorNullBlobArgument 283 >-#define MGK_OptionErrorReferenceImageRequired 284 >-#define MGK_OptionErrorReferenceIsNotMyType 285 >-#define MGK_OptionErrorRegionAreaExceedsLimit 286 >-#define MGK_OptionErrorRequestDidNotReturnAnImage 287 >-#define MGK_OptionErrorSteganoImageRequired 288 >-#define MGK_OptionErrorStereoImageRequired 289 >-#define MGK_OptionErrorSubimageSpecificationReturnsNoImages 290 >-#define MGK_OptionErrorUnableToAddOrRemoveProfile 291 >-#define MGK_OptionErrorUnableToAverageImageSequence 292 >-#define MGK_OptionErrorUnableToBlurImage 293 >-#define MGK_OptionErrorUnableToChopImage 294 >-#define MGK_OptionErrorUnableToColorMatrixImage 295 >-#define MGK_OptionErrorUnableToConstituteImage 296 >-#define MGK_OptionErrorUnableToConvolveImage 297 >-#define MGK_OptionErrorUnableToEdgeImage 298 >-#define MGK_OptionErrorUnableToEqualizeImage 299 >-#define MGK_OptionErrorUnableToFilterImage 300 >-#define MGK_OptionErrorUnableToFormatImageMetadata 301 >-#define MGK_OptionErrorUnableToFrameImage 302 >-#define MGK_OptionErrorUnableToOilPaintImage 303 >-#define MGK_OptionErrorUnableToPaintImage 304 >-#define MGK_OptionErrorUnableToRaiseImage 305 >-#define MGK_OptionErrorUnableToSharpenImage 306 >-#define MGK_OptionErrorUnableToThresholdImage 307 >-#define MGK_OptionErrorUnableToWaveImage 308 >-#define MGK_OptionErrorUnrecognizedAttribute 309 >-#define MGK_OptionErrorUnrecognizedChannelType 310 >-#define MGK_OptionErrorUnrecognizedColor 311 >-#define MGK_OptionErrorUnrecognizedColormapType 312 >-#define MGK_OptionErrorUnrecognizedColorspace 313 >-#define MGK_OptionErrorUnrecognizedCommand 314 >-#define MGK_OptionErrorUnrecognizedComposeOperator 315 >-#define MGK_OptionErrorUnrecognizedDisposeMethod 316 >-#define MGK_OptionErrorUnrecognizedElement 317 >-#define MGK_OptionErrorUnrecognizedEndianType 318 >-#define MGK_OptionErrorUnrecognizedGravityType 319 >-#define MGK_OptionErrorUnrecognizedHighlightStyle 320 >-#define MGK_OptionErrorUnrecognizedImageCompression 321 >-#define MGK_OptionErrorUnrecognizedImageFilter 322 >-#define MGK_OptionErrorUnrecognizedImageFormat 323 >-#define MGK_OptionErrorUnrecognizedImageMode 324 >-#define MGK_OptionErrorUnrecognizedImageType 325 >-#define MGK_OptionErrorUnrecognizedIntentType 326 >-#define MGK_OptionErrorUnrecognizedInterlaceType 327 >-#define MGK_OptionErrorUnrecognizedListType 328 >-#define MGK_OptionErrorUnrecognizedMetric 329 >-#define MGK_OptionErrorUnrecognizedModeType 330 >-#define MGK_OptionErrorUnrecognizedNoiseType 331 >-#define MGK_OptionErrorUnrecognizedOperator 332 >-#define MGK_OptionErrorUnrecognizedOption 333 >-#define MGK_OptionErrorUnrecognizedPerlMagickMethod 334 >-#define MGK_OptionErrorUnrecognizedPixelMap 335 >-#define MGK_OptionErrorUnrecognizedPreviewType 336 >-#define MGK_OptionErrorUnrecognizedResourceType 337 >-#define MGK_OptionErrorUnrecognizedType 338 >-#define MGK_OptionErrorUnrecognizedUnitsType 339 >-#define MGK_OptionErrorUnrecognizedVirtualPixelMethod 340 >-#define MGK_OptionErrorUnsupportedSamplingFactor 341 >-#define MGK_OptionErrorUsageError 342 >-#define MGK_OptionFatalErrorInvalidColorspaceType 343 >-#define MGK_OptionFatalErrorInvalidEndianType 344 >-#define MGK_OptionFatalErrorInvalidImageType 345 >-#define MGK_OptionFatalErrorInvalidInterlaceType 346 >-#define MGK_OptionFatalErrorMissingAnImageFilename 347 >-#define MGK_OptionFatalErrorMissingArgument 348 >-#define MGK_OptionFatalErrorNoImagesWereLoaded 349 >-#define MGK_OptionFatalErrorOptionLengthExceedsLimit 350 >-#define MGK_OptionFatalErrorRequestDidNotReturnAnImage 351 >-#define MGK_OptionFatalErrorUnableToOpenXServer 352 >-#define MGK_OptionFatalErrorUnableToPersistKey 353 >-#define MGK_OptionFatalErrorUnrecognizedColormapType 354 >-#define MGK_OptionFatalErrorUnrecognizedColorspaceType 355 >-#define MGK_OptionFatalErrorUnrecognizedDisposeMethod 356 >-#define MGK_OptionFatalErrorUnrecognizedEndianType 357 >-#define MGK_OptionFatalErrorUnrecognizedFilterType 358 >-#define MGK_OptionFatalErrorUnrecognizedImageCompressionType 359 >-#define MGK_OptionFatalErrorUnrecognizedImageType 360 >-#define MGK_OptionFatalErrorUnrecognizedInterlaceType 361 >-#define MGK_OptionFatalErrorUnrecognizedOption 362 >-#define MGK_OptionFatalErrorUnrecognizedResourceType 363 >-#define MGK_OptionFatalErrorUnrecognizedVirtualPixelMethod 364 >-#define MGK_OptionWarningUnrecognizedColor 365 >-#define MGK_RegistryErrorImageExpected 366 >-#define MGK_RegistryErrorImageInfoExpected 367 >-#define MGK_RegistryErrorStructureSizeMismatch 368 >-#define MGK_RegistryErrorUnableToGetRegistryID 369 >-#define MGK_RegistryErrorUnableToLocateImage 370 >-#define MGK_RegistryErrorUnableToSetRegistry 371 >-#define MGK_RegistryFatalErrorDefault 372 >-#define MGK_RegistryWarningDefault 373 >-#define MGK_ResourceLimitErrorCacheResourcesExhausted 374 >-#define MGK_ResourceLimitErrorImagePixelHeightLimitExceeded 375 >-#define MGK_ResourceLimitErrorImagePixelLimitExceeded 376 >-#define MGK_ResourceLimitErrorImagePixelWidthLimitExceeded 377 >-#define MGK_ResourceLimitErrorMemoryAllocationFailed 378 >-#define MGK_ResourceLimitErrorNoPixelsDefinedInCache 379 >-#define MGK_ResourceLimitErrorPixelCacheAllocationFailed 380 >-#define MGK_ResourceLimitErrorUnableToAddColorProfile 381 >-#define MGK_ResourceLimitErrorUnableToAddGenericProfile 382 >-#define MGK_ResourceLimitErrorUnableToAddIPTCProfile 383 >-#define MGK_ResourceLimitErrorUnableToAllocateCoefficients 384 >-#define MGK_ResourceLimitErrorUnableToAllocateColormap 385 >-#define MGK_ResourceLimitErrorUnableToAllocateICCProfile 386 >-#define MGK_ResourceLimitErrorUnableToAllocateString 387 >-#define MGK_ResourceLimitErrorUnableToAnnotateImage 388 >-#define MGK_ResourceLimitErrorUnableToAverageImageSequence 389 >-#define MGK_ResourceLimitErrorUnableToCloneDrawingWand 390 >-#define MGK_ResourceLimitErrorUnableToCloneImage 391 >-#define MGK_ResourceLimitErrorUnableToComputeImageSignature 392 >-#define MGK_ResourceLimitErrorUnableToConstituteImage 393 >-#define MGK_ResourceLimitErrorUnableToConvertFont 394 >-#define MGK_ResourceLimitErrorUnableToConvertStringToTokens 395 >-#define MGK_ResourceLimitErrorUnableToCreateColormap 396 >-#define MGK_ResourceLimitErrorUnableToCreateColorTransform 397 >-#define MGK_ResourceLimitErrorUnableToCreateCommandWidget 398 >-#define MGK_ResourceLimitErrorUnableToCreateImageGroup 399 >-#define MGK_ResourceLimitErrorUnableToCreateImageMontage 400 >-#define MGK_ResourceLimitErrorUnableToCreateXWindow 401 >-#define MGK_ResourceLimitErrorUnableToCropImage 402 >-#define MGK_ResourceLimitErrorUnableToDespeckleImage 403 >-#define MGK_ResourceLimitErrorUnableToDetermineImageClass 404 >-#define MGK_ResourceLimitErrorUnableToDetermineTheNumberOfImageColors 405 >-#define MGK_ResourceLimitErrorUnableToDitherImage 406 >-#define MGK_ResourceLimitErrorUnableToDrawOnImage 407 >-#define MGK_ResourceLimitErrorUnableToEdgeImage 408 >-#define MGK_ResourceLimitErrorUnableToEmbossImage 409 >-#define MGK_ResourceLimitErrorUnableToEnhanceImage 410 >-#define MGK_ResourceLimitErrorUnableToFloodfillImage 411 >-#define MGK_ResourceLimitErrorUnableToGammaCorrectImage 412 >-#define MGK_ResourceLimitErrorUnableToGetBestIconSize 413 >-#define MGK_ResourceLimitErrorUnableToGetFromRegistry 414 >-#define MGK_ResourceLimitErrorUnableToGetPackageInfo 415 >-#define MGK_ResourceLimitErrorUnableToLevelImage 416 >-#define MGK_ResourceLimitErrorUnableToMagnifyImage 417 >-#define MGK_ResourceLimitErrorUnableToManageColor 418 >-#define MGK_ResourceLimitErrorUnableToMapImage 419 >-#define MGK_ResourceLimitErrorUnableToMapImageSequence 420 >-#define MGK_ResourceLimitErrorUnableToMedianFilterImage 421 >-#define MGK_ResourceLimitErrorUnableToMotionBlurImage 422 >-#define MGK_ResourceLimitErrorUnableToNoiseFilterImage 423 >-#define MGK_ResourceLimitErrorUnableToNormalizeImage 424 >-#define MGK_ResourceLimitErrorUnableToOpenColorProfile 425 >-#define MGK_ResourceLimitErrorUnableToQuantizeImage 426 >-#define MGK_ResourceLimitErrorUnableToQuantizeImageSequence 427 >-#define MGK_ResourceLimitErrorUnableToReadTextChunk 428 >-#define MGK_ResourceLimitErrorUnableToReadXImage 429 >-#define MGK_ResourceLimitErrorUnableToReadXServerColormap 430 >-#define MGK_ResourceLimitErrorUnableToResizeImage 431 >-#define MGK_ResourceLimitErrorUnableToRotateImage 432 >-#define MGK_ResourceLimitErrorUnableToSampleImage 433 >-#define MGK_ResourceLimitErrorUnableToScaleImage 434 >-#define MGK_ResourceLimitErrorUnableToSelectImage 435 >-#define MGK_ResourceLimitErrorUnableToSharpenImage 436 >-#define MGK_ResourceLimitErrorUnableToShaveImage 437 >-#define MGK_ResourceLimitErrorUnableToShearImage 438 >-#define MGK_ResourceLimitErrorUnableToSortImageColormap 439 >-#define MGK_ResourceLimitErrorUnableToThresholdImage 440 >-#define MGK_ResourceLimitErrorUnableToTransformColorspace 441 >-#define MGK_ResourceLimitFatalErrorMemoryAllocationFailed 442 >-#define MGK_ResourceLimitFatalErrorSemaporeOperationFailed 443 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateAscii85Info 444 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheInfo 445 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheView 446 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateColorInfo 447 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateDashPattern 448 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateDelegateInfo 449 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateDerivatives 450 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawContext 451 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawInfo 452 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawingWand 453 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateGammaMap 454 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateImage 455 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateImagePixels 456 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateLogInfo 457 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateMagicInfo 458 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateMagickInfo 459 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateModuleInfo 460 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateMontageInfo 461 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateQuantizeInfo 462 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateRandomKernel 463 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateRegistryInfo 464 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateSemaphoreInfo 465 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateString 466 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateTypeInfo 467 >-#define MGK_ResourceLimitFatalErrorUnableToAllocateWand 468 >-#define MGK_ResourceLimitFatalErrorUnableToAnimateImageSequence 469 >-#define MGK_ResourceLimitFatalErrorUnableToCloneBlobInfo 470 >-#define MGK_ResourceLimitFatalErrorUnableToCloneCacheInfo 471 >-#define MGK_ResourceLimitFatalErrorUnableToCloneImage 472 >-#define MGK_ResourceLimitFatalErrorUnableToCloneImageInfo 473 >-#define MGK_ResourceLimitFatalErrorUnableToConcatenateString 474 >-#define MGK_ResourceLimitFatalErrorUnableToConvertText 475 >-#define MGK_ResourceLimitFatalErrorUnableToCreateColormap 476 >-#define MGK_ResourceLimitFatalErrorUnableToDestroySemaphore 477 >-#define MGK_ResourceLimitFatalErrorUnableToDisplayImage 478 >-#define MGK_ResourceLimitFatalErrorUnableToEscapeString 479 >-#define MGK_ResourceLimitFatalErrorUnableToInitializeSemaphore 480 >-#define MGK_ResourceLimitFatalErrorUnableToInterpretMSLImage 481 >-#define MGK_ResourceLimitFatalErrorUnableToLockSemaphore 482 >-#define MGK_ResourceLimitFatalErrorUnableToObtainRandomEntropy 483 >-#define MGK_ResourceLimitFatalErrorUnableToUnlockSemaphore 484 >-#define MGK_ResourceLimitWarningMemoryAllocationFailed 485 >-#define MGK_StreamErrorImageDoesNotContainTheStreamGeometry 486 >-#define MGK_StreamErrorNoStreamHandlerIsDefined 487 >-#define MGK_StreamErrorPixelCacheIsNotOpen 488 >-#define MGK_StreamErrorUnableToAcquirePixelStream 489 >-#define MGK_StreamErrorUnableToSetPixelStream 490 >-#define MGK_StreamErrorUnableToSyncPixelStream 491 >-#define MGK_StreamFatalErrorDefault 492 >-#define MGK_StreamWarningDefault 493 >-#define MGK_TypeErrorFontSubstitutionRequired 494 >-#define MGK_TypeErrorUnableToGetTypeMetrics 495 >-#define MGK_TypeErrorUnableToInitializeFreetypeLibrary 496 >-#define MGK_TypeErrorUnableToReadFont 497 >-#define MGK_TypeErrorUnrecognizedFontEncoding 498 >-#define MGK_TypeFatalErrorDefault 499 >-#define MGK_TypeWarningDefault 500 >-#define MGK_WandErrorInvalidColormapIndex 501 >-#define MGK_WandErrorWandAPINotImplemented 502 >-#define MGK_WandErrorWandContainsNoImageIndexs 503 >-#define MGK_WandErrorWandContainsNoImages 504 >-#define MGK_XServerErrorColorIsNotKnownToServer 505 >-#define MGK_XServerErrorNoWindowWithSpecifiedIDExists 506 >-#define MGK_XServerErrorStandardColormapIsNotInitialized 507 >-#define MGK_XServerErrorUnableToConnectToRemoteDisplay 508 >-#define MGK_XServerErrorUnableToCreateBitmap 509 >-#define MGK_XServerErrorUnableToCreateColormap 510 >-#define MGK_XServerErrorUnableToCreatePixmap 511 >-#define MGK_XServerErrorUnableToCreateProperty 512 >-#define MGK_XServerErrorUnableToCreateStandardColormap 513 >-#define MGK_XServerErrorUnableToDisplayImageInfo 514 >-#define MGK_XServerErrorUnableToGetProperty 515 >-#define MGK_XServerErrorUnableToGetStandardColormap 516 >-#define MGK_XServerErrorUnableToGetVisual 517 >-#define MGK_XServerErrorUnableToGrabMouse 518 >-#define MGK_XServerErrorUnableToLoadFont 519 >-#define MGK_XServerErrorUnableToMatchVisualToStandardColormap 520 >-#define MGK_XServerErrorUnableToOpenXServer 521 >-#define MGK_XServerErrorUnableToReadXAttributes 522 >-#define MGK_XServerErrorUnableToReadXWindowImage 523 >-#define MGK_XServerErrorUnrecognizedColormapType 524 >-#define MGK_XServerErrorUnrecognizedGravityType 525 >-#define MGK_XServerErrorUnrecognizedVisualSpecifier 526 >-#define MGK_XServerFatalErrorUnableToAllocateXHints 527 >-#define MGK_XServerFatalErrorUnableToCreateCursor 528 >-#define MGK_XServerFatalErrorUnableToCreateGraphicContext 529 >-#define MGK_XServerFatalErrorUnableToCreateStandardColormap 530 >-#define MGK_XServerFatalErrorUnableToCreateTextProperty 531 >-#define MGK_XServerFatalErrorUnableToCreateXImage 532 >-#define MGK_XServerFatalErrorUnableToCreateXPixmap 533 >-#define MGK_XServerFatalErrorUnableToCreateXWindow 534 >-#define MGK_XServerFatalErrorUnableToDisplayImage 535 >-#define MGK_XServerFatalErrorUnableToDitherImage 536 >-#define MGK_XServerFatalErrorUnableToGetPixelInfo 537 >-#define MGK_XServerFatalErrorUnableToGetVisual 538 >-#define MGK_XServerFatalErrorUnableToLoadFont 539 >-#define MGK_XServerFatalErrorUnableToMakeXWindow 540 >-#define MGK_XServerFatalErrorUnableToOpenXServer 541 >-#define MGK_XServerFatalErrorUnableToViewFonts 542 >-#define MGK_XServerWarningUnableToGetVisual 543 >-#define MGK_XServerWarningUsingDefaultVisual 544 >+#define MGK_DrawErrorFloatValueConversionError 187 >+#define MGK_DrawErrorIntegerValueConversionError 188 >+#define MGK_DrawErrorNonconformingDrawingPrimitiveDefinition 189 >+#define MGK_DrawErrorTooManyCoordinates 190 >+#define MGK_DrawErrorUnableToPrint 191 >+#define MGK_DrawErrorUnbalancedGraphicContextPushPop 192 >+#define MGK_DrawErrorVectorPathTruncated 193 >+#define MGK_DrawFatalErrorDefault 194 >+#define MGK_DrawWarningNotARelativeURL 195 >+#define MGK_DrawWarningNotCurrentlyPushingPatternDefinition 196 >+#define MGK_DrawWarningURLNotFound 197 >+#define MGK_FileOpenErrorUnableToCreateTemporaryFile 198 >+#define MGK_FileOpenErrorUnableToOpenFile 199 >+#define MGK_FileOpenErrorUnableToWriteFile 200 >+#define MGK_FileOpenFatalErrorDefault 201 >+#define MGK_FileOpenWarningDefault 202 >+#define MGK_ImageErrorAngleIsDiscontinuous 203 >+#define MGK_ImageErrorColorspaceColorProfileMismatch 204 >+#define MGK_ImageErrorImageColorspaceDiffers 205 >+#define MGK_ImageErrorImageColorspaceMismatch 206 >+#define MGK_ImageErrorImageDifferenceExceedsLimit 207 >+#define MGK_ImageErrorImageDoesNotContainResolution 208 >+#define MGK_ImageErrorImageOpacityDiffers 209 >+#define MGK_ImageErrorImageSequenceIsRequired 210 >+#define MGK_ImageErrorImageSizeDiffers 211 >+#define MGK_ImageErrorInvalidColormapIndex 212 >+#define MGK_ImageErrorLeftAndRightImageSizesDiffer 213 >+#define MGK_ImageErrorNoImagesWereFound 214 >+#define MGK_ImageErrorNoImagesWereLoaded 215 >+#define MGK_ImageErrorNoLocaleImageAttribute 216 >+#define MGK_ImageErrorTooManyClusters 217 >+#define MGK_ImageErrorUnableToAppendImage 218 >+#define MGK_ImageErrorUnableToAssignProfile 219 >+#define MGK_ImageErrorUnableToAverageImage 220 >+#define MGK_ImageErrorUnableToCoalesceImage 221 >+#define MGK_ImageErrorUnableToCompareImages 222 >+#define MGK_ImageErrorUnableToCreateImageMosaic 223 >+#define MGK_ImageErrorUnableToCreateStereoImage 224 >+#define MGK_ImageErrorUnableToDeconstructImageSequence 225 >+#define MGK_ImageErrorUnableToFlattenImage 226 >+#define MGK_ImageErrorUnableToGetClipMask 227 >+#define MGK_ImageErrorUnableToHandleImageChannel 228 >+#define MGK_ImageErrorUnableToResizeImage 229 >+#define MGK_ImageErrorUnableToSegmentImage 230 >+#define MGK_ImageErrorUnableToSetClipMask 231 >+#define MGK_ImageErrorUnableToShearImage 232 >+#define MGK_ImageErrorWidthOrHeightExceedsLimit 233 >+#define MGK_ImageFatalErrorUnableToPersistKey 234 >+#define MGK_ImageWarningDefault 235 >+#define MGK_MissingDelegateErrorDPSLibraryIsNotAvailable 236 >+#define MGK_MissingDelegateErrorFPXLibraryIsNotAvailable 237 >+#define MGK_MissingDelegateErrorFreeTypeLibraryIsNotAvailable 238 >+#define MGK_MissingDelegateErrorJPEGLibraryIsNotAvailable 239 >+#define MGK_MissingDelegateErrorLCMSLibraryIsNotAvailable 240 >+#define MGK_MissingDelegateErrorLZWEncodingNotEnabled 241 >+#define MGK_MissingDelegateErrorNoDecodeDelegateForThisImageFormat 242 >+#define MGK_MissingDelegateErrorNoEncodeDelegateForThisImageFormat 243 >+#define MGK_MissingDelegateErrorTIFFLibraryIsNotAvailable 244 >+#define MGK_MissingDelegateErrorXMLLibraryIsNotAvailable 245 >+#define MGK_MissingDelegateErrorXWindowLibraryIsNotAvailable 246 >+#define MGK_MissingDelegateErrorZipLibraryIsNotAvailable 247 >+#define MGK_MissingDelegateFatalErrorDefault 248 >+#define MGK_MissingDelegateWarningDefault 249 >+#define MGK_ModuleErrorFailedToCloseModule 250 >+#define MGK_ModuleErrorFailedToFindSymbol 251 >+#define MGK_ModuleErrorUnableToLoadModule 252 >+#define MGK_ModuleErrorUnableToRegisterImageFormat 253 >+#define MGK_ModuleErrorUnrecognizedModule 254 >+#define MGK_ModuleFatalErrorUnableToInitializeModuleLoader 255 >+#define MGK_ModuleWarningDefault 256 >+#define MGK_MonitorErrorDefault 257 >+#define MGK_MonitorFatalErrorDefault 258 >+#define MGK_MonitorFatalErrorUserRequestedTerminationBySignal 259 >+#define MGK_MonitorWarningDefault 260 >+#define MGK_OptionErrorBevelWidthIsNegative 261 >+#define MGK_OptionErrorColorSeparatedImageRequired 262 >+#define MGK_OptionErrorFrameIsLessThanImageSize 263 >+#define MGK_OptionErrorGeometryDimensionsAreZero 264 >+#define MGK_OptionErrorGeometryDoesNotContainImage 265 >+#define MGK_OptionErrorHaldClutImageDimensionsInvalid 266 >+#define MGK_OptionErrorImagesAreNotTheSameSize 267 >+#define MGK_OptionErrorImageSizeMustExceedBevelWidth 268 >+#define MGK_OptionErrorImageSmallerThanKernelWidth 269 >+#define MGK_OptionErrorImageSmallerThanRadius 270 >+#define MGK_OptionErrorImageWidthsOrHeightsDiffer 271 >+#define MGK_OptionErrorInputImagesAlreadySpecified 272 >+#define MGK_OptionErrorInvalidSubimageSpecification 273 >+#define MGK_OptionErrorKernelRadiusIsTooSmall 274 >+#define MGK_OptionErrorKernelWidthMustBeAnOddNumber 275 >+#define MGK_OptionErrorMatrixIsNotSquare 276 >+#define MGK_OptionErrorMatrixOrderOutOfRange 277 >+#define MGK_OptionErrorMissingAnImageFilename 278 >+#define MGK_OptionErrorMissingArgument 279 >+#define MGK_OptionErrorMustSpecifyAnImageName 280 >+#define MGK_OptionErrorMustSpecifyImageSize 281 >+#define MGK_OptionErrorNoBlobDefined 282 >+#define MGK_OptionErrorNoImagesDefined 283 >+#define MGK_OptionErrorNonzeroWidthAndHeightRequired 284 >+#define MGK_OptionErrorNoProfileNameWasGiven 285 >+#define MGK_OptionErrorNullBlobArgument 286 >+#define MGK_OptionErrorReferenceImageRequired 287 >+#define MGK_OptionErrorReferenceIsNotMyType 288 >+#define MGK_OptionErrorRegionAreaExceedsLimit 289 >+#define MGK_OptionErrorRequestDidNotReturnAnImage 290 >+#define MGK_OptionErrorSteganoImageRequired 291 >+#define MGK_OptionErrorStereoImageRequired 292 >+#define MGK_OptionErrorSubimageSpecificationReturnsNoImages 293 >+#define MGK_OptionErrorUnableToAddOrRemoveProfile 294 >+#define MGK_OptionErrorUnableToAverageImageSequence 295 >+#define MGK_OptionErrorUnableToBlurImage 296 >+#define MGK_OptionErrorUnableToChopImage 297 >+#define MGK_OptionErrorUnableToColorMatrixImage 298 >+#define MGK_OptionErrorUnableToConstituteImage 299 >+#define MGK_OptionErrorUnableToConvolveImage 300 >+#define MGK_OptionErrorUnableToEdgeImage 301 >+#define MGK_OptionErrorUnableToEqualizeImage 302 >+#define MGK_OptionErrorUnableToFilterImage 303 >+#define MGK_OptionErrorUnableToFormatImageMetadata 304 >+#define MGK_OptionErrorUnableToFrameImage 305 >+#define MGK_OptionErrorUnableToOilPaintImage 306 >+#define MGK_OptionErrorUnableToPaintImage 307 >+#define MGK_OptionErrorUnableToRaiseImage 308 >+#define MGK_OptionErrorUnableToSharpenImage 309 >+#define MGK_OptionErrorUnableToThresholdImage 310 >+#define MGK_OptionErrorUnableToWaveImage 311 >+#define MGK_OptionErrorUnrecognizedAttribute 312 >+#define MGK_OptionErrorUnrecognizedChannelType 313 >+#define MGK_OptionErrorUnrecognizedColor 314 >+#define MGK_OptionErrorUnrecognizedColormapType 315 >+#define MGK_OptionErrorUnrecognizedColorspace 316 >+#define MGK_OptionErrorUnrecognizedCommand 317 >+#define MGK_OptionErrorUnrecognizedComposeOperator 318 >+#define MGK_OptionErrorUnrecognizedDisposeMethod 319 >+#define MGK_OptionErrorUnrecognizedElement 320 >+#define MGK_OptionErrorUnrecognizedEndianType 321 >+#define MGK_OptionErrorUnrecognizedGravityType 322 >+#define MGK_OptionErrorUnrecognizedHighlightStyle 323 >+#define MGK_OptionErrorUnrecognizedImageCompression 324 >+#define MGK_OptionErrorUnrecognizedImageFilter 325 >+#define MGK_OptionErrorUnrecognizedImageFormat 326 >+#define MGK_OptionErrorUnrecognizedImageMode 327 >+#define MGK_OptionErrorUnrecognizedImageType 328 >+#define MGK_OptionErrorUnrecognizedIntentType 329 >+#define MGK_OptionErrorUnrecognizedInterlaceType 330 >+#define MGK_OptionErrorUnrecognizedListType 331 >+#define MGK_OptionErrorUnrecognizedMetric 332 >+#define MGK_OptionErrorUnrecognizedModeType 333 >+#define MGK_OptionErrorUnrecognizedNoiseType 334 >+#define MGK_OptionErrorUnrecognizedOperator 335 >+#define MGK_OptionErrorUnrecognizedOption 336 >+#define MGK_OptionErrorUnrecognizedPerlMagickMethod 337 >+#define MGK_OptionErrorUnrecognizedPixelMap 338 >+#define MGK_OptionErrorUnrecognizedPreviewType 339 >+#define MGK_OptionErrorUnrecognizedResourceType 340 >+#define MGK_OptionErrorUnrecognizedType 341 >+#define MGK_OptionErrorUnrecognizedUnitsType 342 >+#define MGK_OptionErrorUnrecognizedVirtualPixelMethod 343 >+#define MGK_OptionErrorUnsupportedSamplingFactor 344 >+#define MGK_OptionErrorUsageError 345 >+#define MGK_OptionFatalErrorInvalidColorspaceType 346 >+#define MGK_OptionFatalErrorInvalidEndianType 347 >+#define MGK_OptionFatalErrorInvalidImageType 348 >+#define MGK_OptionFatalErrorInvalidInterlaceType 349 >+#define MGK_OptionFatalErrorMissingAnImageFilename 350 >+#define MGK_OptionFatalErrorMissingArgument 351 >+#define MGK_OptionFatalErrorNoImagesWereLoaded 352 >+#define MGK_OptionFatalErrorOptionLengthExceedsLimit 353 >+#define MGK_OptionFatalErrorRequestDidNotReturnAnImage 354 >+#define MGK_OptionFatalErrorUnableToOpenXServer 355 >+#define MGK_OptionFatalErrorUnableToPersistKey 356 >+#define MGK_OptionFatalErrorUnrecognizedColormapType 357 >+#define MGK_OptionFatalErrorUnrecognizedColorspaceType 358 >+#define MGK_OptionFatalErrorUnrecognizedDisposeMethod 359 >+#define MGK_OptionFatalErrorUnrecognizedEndianType 360 >+#define MGK_OptionFatalErrorUnrecognizedFilterType 361 >+#define MGK_OptionFatalErrorUnrecognizedImageCompressionType 362 >+#define MGK_OptionFatalErrorUnrecognizedImageType 363 >+#define MGK_OptionFatalErrorUnrecognizedInterlaceType 364 >+#define MGK_OptionFatalErrorUnrecognizedOption 365 >+#define MGK_OptionFatalErrorUnrecognizedResourceType 366 >+#define MGK_OptionFatalErrorUnrecognizedVirtualPixelMethod 367 >+#define MGK_OptionWarningUnrecognizedColor 368 >+#define MGK_RegistryErrorImageExpected 369 >+#define MGK_RegistryErrorImageInfoExpected 370 >+#define MGK_RegistryErrorStructureSizeMismatch 371 >+#define MGK_RegistryErrorUnableToGetRegistryID 372 >+#define MGK_RegistryErrorUnableToLocateImage 373 >+#define MGK_RegistryErrorUnableToSetRegistry 374 >+#define MGK_RegistryFatalErrorDefault 375 >+#define MGK_RegistryWarningDefault 376 >+#define MGK_ResourceLimitErrorCacheResourcesExhausted 377 >+#define MGK_ResourceLimitErrorImagePixelHeightLimitExceeded 378 >+#define MGK_ResourceLimitErrorImagePixelLimitExceeded 379 >+#define MGK_ResourceLimitErrorImagePixelWidthLimitExceeded 380 >+#define MGK_ResourceLimitErrorMemoryAllocationFailed 381 >+#define MGK_ResourceLimitErrorNoPixelsDefinedInCache 382 >+#define MGK_ResourceLimitErrorPixelCacheAllocationFailed 383 >+#define MGK_ResourceLimitErrorUnableToAddColorProfile 384 >+#define MGK_ResourceLimitErrorUnableToAddGenericProfile 385 >+#define MGK_ResourceLimitErrorUnableToAddIPTCProfile 386 >+#define MGK_ResourceLimitErrorUnableToAllocateCoefficients 387 >+#define MGK_ResourceLimitErrorUnableToAllocateColormap 388 >+#define MGK_ResourceLimitErrorUnableToAllocateICCProfile 389 >+#define MGK_ResourceLimitErrorUnableToAllocateString 390 >+#define MGK_ResourceLimitErrorUnableToAnnotateImage 391 >+#define MGK_ResourceLimitErrorUnableToAverageImageSequence 392 >+#define MGK_ResourceLimitErrorUnableToCloneDrawingWand 393 >+#define MGK_ResourceLimitErrorUnableToCloneImage 394 >+#define MGK_ResourceLimitErrorUnableToComputeImageSignature 395 >+#define MGK_ResourceLimitErrorUnableToConstituteImage 396 >+#define MGK_ResourceLimitErrorUnableToConvertFont 397 >+#define MGK_ResourceLimitErrorUnableToConvertStringToTokens 398 >+#define MGK_ResourceLimitErrorUnableToCreateColormap 399 >+#define MGK_ResourceLimitErrorUnableToCreateColorTransform 400 >+#define MGK_ResourceLimitErrorUnableToCreateCommandWidget 401 >+#define MGK_ResourceLimitErrorUnableToCreateImageGroup 402 >+#define MGK_ResourceLimitErrorUnableToCreateImageMontage 403 >+#define MGK_ResourceLimitErrorUnableToCreateXWindow 404 >+#define MGK_ResourceLimitErrorUnableToCropImage 405 >+#define MGK_ResourceLimitErrorUnableToDespeckleImage 406 >+#define MGK_ResourceLimitErrorUnableToDetermineImageClass 407 >+#define MGK_ResourceLimitErrorUnableToDetermineTheNumberOfImageColors 408 >+#define MGK_ResourceLimitErrorUnableToDitherImage 409 >+#define MGK_ResourceLimitErrorUnableToDrawOnImage 410 >+#define MGK_ResourceLimitErrorUnableToEdgeImage 411 >+#define MGK_ResourceLimitErrorUnableToEmbossImage 412 >+#define MGK_ResourceLimitErrorUnableToEnhanceImage 413 >+#define MGK_ResourceLimitErrorUnableToFloodfillImage 414 >+#define MGK_ResourceLimitErrorUnableToGammaCorrectImage 415 >+#define MGK_ResourceLimitErrorUnableToGetBestIconSize 416 >+#define MGK_ResourceLimitErrorUnableToGetFromRegistry 417 >+#define MGK_ResourceLimitErrorUnableToGetPackageInfo 418 >+#define MGK_ResourceLimitErrorUnableToLevelImage 419 >+#define MGK_ResourceLimitErrorUnableToMagnifyImage 420 >+#define MGK_ResourceLimitErrorUnableToManageColor 421 >+#define MGK_ResourceLimitErrorUnableToMapImage 422 >+#define MGK_ResourceLimitErrorUnableToMapImageSequence 423 >+#define MGK_ResourceLimitErrorUnableToMedianFilterImage 424 >+#define MGK_ResourceLimitErrorUnableToMotionBlurImage 425 >+#define MGK_ResourceLimitErrorUnableToNoiseFilterImage 426 >+#define MGK_ResourceLimitErrorUnableToNormalizeImage 427 >+#define MGK_ResourceLimitErrorUnableToOpenColorProfile 428 >+#define MGK_ResourceLimitErrorUnableToQuantizeImage 429 >+#define MGK_ResourceLimitErrorUnableToQuantizeImageSequence 430 >+#define MGK_ResourceLimitErrorUnableToReadTextChunk 431 >+#define MGK_ResourceLimitErrorUnableToReadXImage 432 >+#define MGK_ResourceLimitErrorUnableToReadXServerColormap 433 >+#define MGK_ResourceLimitErrorUnableToResizeImage 434 >+#define MGK_ResourceLimitErrorUnableToRotateImage 435 >+#define MGK_ResourceLimitErrorUnableToSampleImage 436 >+#define MGK_ResourceLimitErrorUnableToScaleImage 437 >+#define MGK_ResourceLimitErrorUnableToSelectImage 438 >+#define MGK_ResourceLimitErrorUnableToSharpenImage 439 >+#define MGK_ResourceLimitErrorUnableToShaveImage 440 >+#define MGK_ResourceLimitErrorUnableToShearImage 441 >+#define MGK_ResourceLimitErrorUnableToSortImageColormap 442 >+#define MGK_ResourceLimitErrorUnableToThresholdImage 443 >+#define MGK_ResourceLimitErrorUnableToTransformColorspace 444 >+#define MGK_ResourceLimitFatalErrorMemoryAllocationFailed 445 >+#define MGK_ResourceLimitFatalErrorSemaporeOperationFailed 446 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateAscii85Info 447 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheInfo 448 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheView 449 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateColorInfo 450 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateDashPattern 451 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateDelegateInfo 452 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateDerivatives 453 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawContext 454 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawInfo 455 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawingWand 456 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateGammaMap 457 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateImage 458 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateImagePixels 459 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateLogInfo 460 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateMagicInfo 461 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateMagickInfo 462 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateModuleInfo 463 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateMontageInfo 464 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateQuantizeInfo 465 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateRandomKernel 466 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateRegistryInfo 467 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateSemaphoreInfo 468 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateString 469 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateTypeInfo 470 >+#define MGK_ResourceLimitFatalErrorUnableToAllocateWand 471 >+#define MGK_ResourceLimitFatalErrorUnableToAnimateImageSequence 472 >+#define MGK_ResourceLimitFatalErrorUnableToCloneBlobInfo 473 >+#define MGK_ResourceLimitFatalErrorUnableToCloneCacheInfo 474 >+#define MGK_ResourceLimitFatalErrorUnableToCloneImage 475 >+#define MGK_ResourceLimitFatalErrorUnableToCloneImageInfo 476 >+#define MGK_ResourceLimitFatalErrorUnableToConcatenateString 477 >+#define MGK_ResourceLimitFatalErrorUnableToConvertText 478 >+#define MGK_ResourceLimitFatalErrorUnableToCreateColormap 479 >+#define MGK_ResourceLimitFatalErrorUnableToDestroySemaphore 480 >+#define MGK_ResourceLimitFatalErrorUnableToDisplayImage 481 >+#define MGK_ResourceLimitFatalErrorUnableToEscapeString 482 >+#define MGK_ResourceLimitFatalErrorUnableToInitializeSemaphore 483 >+#define MGK_ResourceLimitFatalErrorUnableToInterpretMSLImage 484 >+#define MGK_ResourceLimitFatalErrorUnableToLockSemaphore 485 >+#define MGK_ResourceLimitFatalErrorUnableToObtainRandomEntropy 486 >+#define MGK_ResourceLimitFatalErrorUnableToUnlockSemaphore 487 >+#define MGK_ResourceLimitWarningMemoryAllocationFailed 488 >+#define MGK_StreamErrorImageDoesNotContainTheStreamGeometry 489 >+#define MGK_StreamErrorNoStreamHandlerIsDefined 490 >+#define MGK_StreamErrorPixelCacheIsNotOpen 491 >+#define MGK_StreamErrorUnableToAcquirePixelStream 492 >+#define MGK_StreamErrorUnableToSetPixelStream 493 >+#define MGK_StreamErrorUnableToSyncPixelStream 494 >+#define MGK_StreamFatalErrorDefault 495 >+#define MGK_StreamWarningDefault 496 >+#define MGK_TypeErrorFontSubstitutionRequired 497 >+#define MGK_TypeErrorUnableToGetTypeMetrics 498 >+#define MGK_TypeErrorUnableToInitializeFreetypeLibrary 499 >+#define MGK_TypeErrorUnableToReadFont 500 >+#define MGK_TypeErrorUnrecognizedFontEncoding 501 >+#define MGK_TypeFatalErrorDefault 502 >+#define MGK_TypeWarningDefault 503 >+#define MGK_WandErrorInvalidColormapIndex 504 >+#define MGK_WandErrorWandAPINotImplemented 505 >+#define MGK_WandErrorWandContainsNoImageIndexs 506 >+#define MGK_WandErrorWandContainsNoImages 507 >+#define MGK_XServerErrorColorIsNotKnownToServer 508 >+#define MGK_XServerErrorNoWindowWithSpecifiedIDExists 509 >+#define MGK_XServerErrorStandardColormapIsNotInitialized 510 >+#define MGK_XServerErrorUnableToConnectToRemoteDisplay 511 >+#define MGK_XServerErrorUnableToCreateBitmap 512 >+#define MGK_XServerErrorUnableToCreateColormap 513 >+#define MGK_XServerErrorUnableToCreatePixmap 514 >+#define MGK_XServerErrorUnableToCreateProperty 515 >+#define MGK_XServerErrorUnableToCreateStandardColormap 516 >+#define MGK_XServerErrorUnableToDisplayImageInfo 517 >+#define MGK_XServerErrorUnableToGetProperty 518 >+#define MGK_XServerErrorUnableToGetStandardColormap 519 >+#define MGK_XServerErrorUnableToGetVisual 520 >+#define MGK_XServerErrorUnableToGrabMouse 521 >+#define MGK_XServerErrorUnableToLoadFont 522 >+#define MGK_XServerErrorUnableToMatchVisualToStandardColormap 523 >+#define MGK_XServerErrorUnableToOpenXServer 524 >+#define MGK_XServerErrorUnableToReadXAttributes 525 >+#define MGK_XServerErrorUnableToReadXWindowImage 526 >+#define MGK_XServerErrorUnrecognizedColormapType 527 >+#define MGK_XServerErrorUnrecognizedGravityType 528 >+#define MGK_XServerErrorUnrecognizedVisualSpecifier 529 >+#define MGK_XServerFatalErrorUnableToAllocateXHints 530 >+#define MGK_XServerFatalErrorUnableToCreateCursor 531 >+#define MGK_XServerFatalErrorUnableToCreateGraphicContext 532 >+#define MGK_XServerFatalErrorUnableToCreateStandardColormap 533 >+#define MGK_XServerFatalErrorUnableToCreateTextProperty 534 >+#define MGK_XServerFatalErrorUnableToCreateXImage 535 >+#define MGK_XServerFatalErrorUnableToCreateXPixmap 536 >+#define MGK_XServerFatalErrorUnableToCreateXWindow 537 >+#define MGK_XServerFatalErrorUnableToDisplayImage 538 >+#define MGK_XServerFatalErrorUnableToDitherImage 539 >+#define MGK_XServerFatalErrorUnableToGetPixelInfo 540 >+#define MGK_XServerFatalErrorUnableToGetVisual 541 >+#define MGK_XServerFatalErrorUnableToLoadFont 542 >+#define MGK_XServerFatalErrorUnableToMakeXWindow 543 >+#define MGK_XServerFatalErrorUnableToOpenXServer 544 >+#define MGK_XServerFatalErrorUnableToViewFonts 545 >+#define MGK_XServerWarningUnableToGetVisual 546 >+#define MGK_XServerWarningUsingDefaultVisual 547 > > #endif > >@@ -611,43 +614,43 @@ > { "Delegate/FatalError", 183, DelegateFatalError }, > { "Delegate/Warning", 184, DelegateWarning }, > { "Draw/Error", 185, DrawError }, >- { "Draw/FatalError", 190, DrawFatalError }, >- { "Draw/Warning", 191, DrawWarning }, >- { "File/Open/Error", 194, FileOpenError }, >- { "File/Open/FatalError", 197, FileOpenFatalError }, >- { "File/Open/Warning", 198, FileOpenWarning }, >- { "Image/Error", 199, ImageError }, >- { "Image/FatalError", 230, ImageFatalError }, >- { "Image/Warning", 231, ImageWarning }, >- { "Missing/Delegate/Error", 232, MissingDelegateError }, >- { "Missing/Delegate/FatalError", 244, MissingDelegateFatalError }, >- { "Missing/Delegate/Warning", 245, MissingDelegateWarning }, >- { "Module/Error", 246, ModuleError }, >- { "Module/FatalError", 251, ModuleFatalError }, >- { "Module/Warning", 252, ModuleWarning }, >- { "Monitor/Error", 253, MonitorError }, >- { "Monitor/FatalError", 254, MonitorFatalError }, >- { "Monitor/Warning", 256, MonitorWarning }, >- { "Option/Error", 257, OptionError }, >- { "Option/FatalError", 342, OptionFatalError }, >- { "Option/Warning", 364, OptionWarning }, >- { "Registry/Error", 365, RegistryError }, >- { "Registry/FatalError", 371, RegistryFatalError }, >- { "Registry/Warning", 372, RegistryWarning }, >- { "Resource/Limit/Error", 373, ResourceLimitError }, >- { "Resource/Limit/FatalError", 441, ResourceLimitFatalError }, >- { "Resource/Limit/Warning", 484, ResourceLimitWarning }, >- { "Stream/Error", 485, StreamError }, >- { "Stream/FatalError", 491, StreamFatalError }, >- { "Stream/Warning", 492, StreamWarning }, >- { "Type/Error", 493, TypeError }, >- { "Type/FatalError", 498, TypeFatalError }, >- { "Type/Warning", 499, TypeWarning }, >- { "Wand/Error", 500, WandError }, >- { "XServer/Error", 504, XServerError }, >- { "XServer/FatalError", 526, XServerFatalError }, >- { "XServer/Warning", 542, XServerWarning }, >- { 0, 544, UndefinedException } >+ { "Draw/FatalError", 193, DrawFatalError }, >+ { "Draw/Warning", 194, DrawWarning }, >+ { "File/Open/Error", 197, FileOpenError }, >+ { "File/Open/FatalError", 200, FileOpenFatalError }, >+ { "File/Open/Warning", 201, FileOpenWarning }, >+ { "Image/Error", 202, ImageError }, >+ { "Image/FatalError", 233, ImageFatalError }, >+ { "Image/Warning", 234, ImageWarning }, >+ { "Missing/Delegate/Error", 235, MissingDelegateError }, >+ { "Missing/Delegate/FatalError", 247, MissingDelegateFatalError }, >+ { "Missing/Delegate/Warning", 248, MissingDelegateWarning }, >+ { "Module/Error", 249, ModuleError }, >+ { "Module/FatalError", 254, ModuleFatalError }, >+ { "Module/Warning", 255, ModuleWarning }, >+ { "Monitor/Error", 256, MonitorError }, >+ { "Monitor/FatalError", 257, MonitorFatalError }, >+ { "Monitor/Warning", 259, MonitorWarning }, >+ { "Option/Error", 260, OptionError }, >+ { "Option/FatalError", 345, OptionFatalError }, >+ { "Option/Warning", 367, OptionWarning }, >+ { "Registry/Error", 368, RegistryError }, >+ { "Registry/FatalError", 374, RegistryFatalError }, >+ { "Registry/Warning", 375, RegistryWarning }, >+ { "Resource/Limit/Error", 376, ResourceLimitError }, >+ { "Resource/Limit/FatalError", 444, ResourceLimitFatalError }, >+ { "Resource/Limit/Warning", 487, ResourceLimitWarning }, >+ { "Stream/Error", 488, StreamError }, >+ { "Stream/FatalError", 494, StreamFatalError }, >+ { "Stream/Warning", 495, StreamWarning }, >+ { "Type/Error", 496, TypeError }, >+ { "Type/FatalError", 501, TypeFatalError }, >+ { "Type/Warning", 502, TypeWarning }, >+ { "Wand/Error", 503, WandError }, >+ { "XServer/Error", 507, XServerError }, >+ { "XServer/FatalError", 529, XServerFatalError }, >+ { "XServer/Warning", 545, XServerWarning }, >+ { 0, 547, UndefinedException } > }; > #endif > >@@ -846,364 +849,367 @@ > { "Default", 184 }, > { "Default", 185 }, > { "AlreadyPushingPatternDefinition", 186 }, >- { "NonconformingDrawingPrimitiveDefinition", 187 }, >- { "TooManyCoordinates", 188 }, >- { "UnableToPrint", 189 }, >- { "UnbalancedGraphicContextPushPop", 190 }, >- { "Default", 191 }, >- { "NotARelativeURL", 192 }, >- { "NotCurrentlyPushingPatternDefinition", 193 }, >- { "URLNotFound", 194 }, >- { "UnableToCreateTemporaryFile", 195 }, >- { "UnableToOpenFile", 196 }, >- { "UnableToWriteFile", 197 }, >- { "Default", 198 }, >- { "Default", 199 }, >- { "AngleIsDiscontinuous", 200 }, >- { "ColorspaceColorProfileMismatch", 201 }, >- { "ImageColorspaceDiffers", 202 }, >- { "ImageColorspaceMismatch", 203 }, >- { "ImageDifferenceExceedsLimit", 204 }, >- { "ImageDoesNotContainResolution", 205 }, >- { "ImageOpacityDiffers", 206 }, >- { "ImageSequenceIsRequired", 207 }, >- { "ImageSizeDiffers", 208 }, >- { "InvalidColormapIndex", 209 }, >- { "LeftAndRightImageSizesDiffer", 210 }, >- { "NoImagesWereFound", 211 }, >- { "NoImagesWereLoaded", 212 }, >- { "NoLocaleImageAttribute", 213 }, >- { "TooManyClusters", 214 }, >- { "UnableToAppendImage", 215 }, >- { "UnableToAssignProfile", 216 }, >- { "UnableToAverageImage", 217 }, >- { "UnableToCoalesceImage", 218 }, >- { "UnableToCompareImages", 219 }, >- { "UnableToCreateImageMosaic", 220 }, >- { "UnableToCreateStereoImage", 221 }, >- { "UnableToDeconstructImageSequence", 222 }, >- { "UnableToFlattenImage", 223 }, >- { "UnableToGetClipMask", 224 }, >- { "UnableToHandleImageChannel", 225 }, >- { "UnableToResizeImage", 226 }, >- { "UnableToSegmentImage", 227 }, >- { "UnableToSetClipMask", 228 }, >- { "UnableToShearImage", 229 }, >- { "WidthOrHeightExceedsLimit", 230 }, >- { "UnableToPersistKey", 231 }, >- { "Default", 232 }, >- { "DPSLibraryIsNotAvailable", 233 }, >- { "FPXLibraryIsNotAvailable", 234 }, >- { "FreeTypeLibraryIsNotAvailable", 235 }, >- { "JPEGLibraryIsNotAvailable", 236 }, >- { "LCMSLibraryIsNotAvailable", 237 }, >- { "LZWEncodingNotEnabled", 238 }, >- { "NoDecodeDelegateForThisImageFormat", 239 }, >- { "NoEncodeDelegateForThisImageFormat", 240 }, >- { "TIFFLibraryIsNotAvailable", 241 }, >- { "XMLLibraryIsNotAvailable", 242 }, >- { "XWindowLibraryIsNotAvailable", 243 }, >- { "ZipLibraryIsNotAvailable", 244 }, >- { "Default", 245 }, >- { "Default", 246 }, >- { "FailedToCloseModule", 247 }, >- { "FailedToFindSymbol", 248 }, >- { "UnableToLoadModule", 249 }, >- { "UnableToRegisterImageFormat", 250 }, >- { "UnrecognizedModule", 251 }, >- { "UnableToInitializeModuleLoader", 252 }, >- { "Default", 253 }, >- { "Default", 254 }, >- { "Default", 255 }, >- { "UserRequestedTerminationBySignal", 256 }, >+ { "FloatValueConversionError", 187 }, >+ { "IntegerValueConversionError", 188 }, >+ { "NonconformingDrawingPrimitiveDefinition", 189 }, >+ { "TooManyCoordinates", 190 }, >+ { "UnableToPrint", 191 }, >+ { "UnbalancedGraphicContextPushPop", 192 }, >+ { "VectorPathTruncated", 193 }, >+ { "Default", 194 }, >+ { "NotARelativeURL", 195 }, >+ { "NotCurrentlyPushingPatternDefinition", 196 }, >+ { "URLNotFound", 197 }, >+ { "UnableToCreateTemporaryFile", 198 }, >+ { "UnableToOpenFile", 199 }, >+ { "UnableToWriteFile", 200 }, >+ { "Default", 201 }, >+ { "Default", 202 }, >+ { "AngleIsDiscontinuous", 203 }, >+ { "ColorspaceColorProfileMismatch", 204 }, >+ { "ImageColorspaceDiffers", 205 }, >+ { "ImageColorspaceMismatch", 206 }, >+ { "ImageDifferenceExceedsLimit", 207 }, >+ { "ImageDoesNotContainResolution", 208 }, >+ { "ImageOpacityDiffers", 209 }, >+ { "ImageSequenceIsRequired", 210 }, >+ { "ImageSizeDiffers", 211 }, >+ { "InvalidColormapIndex", 212 }, >+ { "LeftAndRightImageSizesDiffer", 213 }, >+ { "NoImagesWereFound", 214 }, >+ { "NoImagesWereLoaded", 215 }, >+ { "NoLocaleImageAttribute", 216 }, >+ { "TooManyClusters", 217 }, >+ { "UnableToAppendImage", 218 }, >+ { "UnableToAssignProfile", 219 }, >+ { "UnableToAverageImage", 220 }, >+ { "UnableToCoalesceImage", 221 }, >+ { "UnableToCompareImages", 222 }, >+ { "UnableToCreateImageMosaic", 223 }, >+ { "UnableToCreateStereoImage", 224 }, >+ { "UnableToDeconstructImageSequence", 225 }, >+ { "UnableToFlattenImage", 226 }, >+ { "UnableToGetClipMask", 227 }, >+ { "UnableToHandleImageChannel", 228 }, >+ { "UnableToResizeImage", 229 }, >+ { "UnableToSegmentImage", 230 }, >+ { "UnableToSetClipMask", 231 }, >+ { "UnableToShearImage", 232 }, >+ { "WidthOrHeightExceedsLimit", 233 }, >+ { "UnableToPersistKey", 234 }, >+ { "Default", 235 }, >+ { "DPSLibraryIsNotAvailable", 236 }, >+ { "FPXLibraryIsNotAvailable", 237 }, >+ { "FreeTypeLibraryIsNotAvailable", 238 }, >+ { "JPEGLibraryIsNotAvailable", 239 }, >+ { "LCMSLibraryIsNotAvailable", 240 }, >+ { "LZWEncodingNotEnabled", 241 }, >+ { "NoDecodeDelegateForThisImageFormat", 242 }, >+ { "NoEncodeDelegateForThisImageFormat", 243 }, >+ { "TIFFLibraryIsNotAvailable", 244 }, >+ { "XMLLibraryIsNotAvailable", 245 }, >+ { "XWindowLibraryIsNotAvailable", 246 }, >+ { "ZipLibraryIsNotAvailable", 247 }, >+ { "Default", 248 }, >+ { "Default", 249 }, >+ { "FailedToCloseModule", 250 }, >+ { "FailedToFindSymbol", 251 }, >+ { "UnableToLoadModule", 252 }, >+ { "UnableToRegisterImageFormat", 253 }, >+ { "UnrecognizedModule", 254 }, >+ { "UnableToInitializeModuleLoader", 255 }, >+ { "Default", 256 }, > { "Default", 257 }, >- { "BevelWidthIsNegative", 258 }, >- { "ColorSeparatedImageRequired", 259 }, >- { "FrameIsLessThanImageSize", 260 }, >- { "GeometryDimensionsAreZero", 261 }, >- { "GeometryDoesNotContainImage", 262 }, >- { "HaldClutImageDimensionsInvalid", 263 }, >- { "ImagesAreNotTheSameSize", 264 }, >- { "ImageSizeMustExceedBevelWidth", 265 }, >- { "ImageSmallerThanKernelWidth", 266 }, >- { "ImageSmallerThanRadius", 267 }, >- { "ImageWidthsOrHeightsDiffer", 268 }, >- { "InputImagesAlreadySpecified", 269 }, >- { "InvalidSubimageSpecification", 270 }, >- { "KernelRadiusIsTooSmall", 271 }, >- { "KernelWidthMustBeAnOddNumber", 272 }, >- { "MatrixIsNotSquare", 273 }, >- { "MatrixOrderOutOfRange", 274 }, >- { "MissingAnImageFilename", 275 }, >- { "MissingArgument", 276 }, >- { "MustSpecifyAnImageName", 277 }, >- { "MustSpecifyImageSize", 278 }, >- { "NoBlobDefined", 279 }, >- { "NoImagesDefined", 280 }, >- { "NonzeroWidthAndHeightRequired", 281 }, >- { "NoProfileNameWasGiven", 282 }, >- { "NullBlobArgument", 283 }, >- { "ReferenceImageRequired", 284 }, >- { "ReferenceIsNotMyType", 285 }, >- { "RegionAreaExceedsLimit", 286 }, >- { "RequestDidNotReturnAnImage", 287 }, >- { "SteganoImageRequired", 288 }, >- { "StereoImageRequired", 289 }, >- { "SubimageSpecificationReturnsNoImages", 290 }, >- { "UnableToAddOrRemoveProfile", 291 }, >- { "UnableToAverageImageSequence", 292 }, >- { "UnableToBlurImage", 293 }, >- { "UnableToChopImage", 294 }, >- { "UnableToColorMatrixImage", 295 }, >- { "UnableToConstituteImage", 296 }, >- { "UnableToConvolveImage", 297 }, >- { "UnableToEdgeImage", 298 }, >- { "UnableToEqualizeImage", 299 }, >- { "UnableToFilterImage", 300 }, >- { "UnableToFormatImageMetadata", 301 }, >- { "UnableToFrameImage", 302 }, >- { "UnableToOilPaintImage", 303 }, >- { "UnableToPaintImage", 304 }, >- { "UnableToRaiseImage", 305 }, >- { "UnableToSharpenImage", 306 }, >- { "UnableToThresholdImage", 307 }, >- { "UnableToWaveImage", 308 }, >- { "UnrecognizedAttribute", 309 }, >- { "UnrecognizedChannelType", 310 }, >- { "UnrecognizedColor", 311 }, >- { "UnrecognizedColormapType", 312 }, >- { "UnrecognizedColorspace", 313 }, >- { "UnrecognizedCommand", 314 }, >- { "UnrecognizedComposeOperator", 315 }, >- { "UnrecognizedDisposeMethod", 316 }, >- { "UnrecognizedElement", 317 }, >- { "UnrecognizedEndianType", 318 }, >- { "UnrecognizedGravityType", 319 }, >- { "UnrecognizedHighlightStyle", 320 }, >- { "UnrecognizedImageCompression", 321 }, >- { "UnrecognizedImageFilter", 322 }, >- { "UnrecognizedImageFormat", 323 }, >- { "UnrecognizedImageMode", 324 }, >- { "UnrecognizedImageType", 325 }, >- { "UnrecognizedIntentType", 326 }, >- { "UnrecognizedInterlaceType", 327 }, >- { "UnrecognizedListType", 328 }, >- { "UnrecognizedMetric", 329 }, >- { "UnrecognizedModeType", 330 }, >- { "UnrecognizedNoiseType", 331 }, >- { "UnrecognizedOperator", 332 }, >- { "UnrecognizedOption", 333 }, >- { "UnrecognizedPerlMagickMethod", 334 }, >- { "UnrecognizedPixelMap", 335 }, >- { "UnrecognizedPreviewType", 336 }, >- { "UnrecognizedResourceType", 337 }, >- { "UnrecognizedType", 338 }, >- { "UnrecognizedUnitsType", 339 }, >- { "UnrecognizedVirtualPixelMethod", 340 }, >- { "UnsupportedSamplingFactor", 341 }, >- { "UsageError", 342 }, >- { "InvalidColorspaceType", 343 }, >- { "InvalidEndianType", 344 }, >- { "InvalidImageType", 345 }, >- { "InvalidInterlaceType", 346 }, >- { "MissingAnImageFilename", 347 }, >- { "MissingArgument", 348 }, >- { "NoImagesWereLoaded", 349 }, >- { "OptionLengthExceedsLimit", 350 }, >- { "RequestDidNotReturnAnImage", 351 }, >- { "UnableToOpenXServer", 352 }, >- { "UnableToPersistKey", 353 }, >- { "UnrecognizedColormapType", 354 }, >- { "UnrecognizedColorspaceType", 355 }, >- { "UnrecognizedDisposeMethod", 356 }, >- { "UnrecognizedEndianType", 357 }, >- { "UnrecognizedFilterType", 358 }, >- { "UnrecognizedImageCompressionType", 359 }, >- { "UnrecognizedImageType", 360 }, >- { "UnrecognizedInterlaceType", 361 }, >- { "UnrecognizedOption", 362 }, >- { "UnrecognizedResourceType", 363 }, >- { "UnrecognizedVirtualPixelMethod", 364 }, >- { "UnrecognizedColor", 365 }, >- { "ImageExpected", 366 }, >- { "ImageInfoExpected", 367 }, >- { "StructureSizeMismatch", 368 }, >- { "UnableToGetRegistryID", 369 }, >- { "UnableToLocateImage", 370 }, >- { "UnableToSetRegistry", 371 }, >- { "Default", 372 }, >- { "Default", 373 }, >- { "CacheResourcesExhausted", 374 }, >- { "ImagePixelHeightLimitExceeded", 375 }, >- { "ImagePixelLimitExceeded", 376 }, >- { "ImagePixelWidthLimitExceeded", 377 }, >- { "MemoryAllocationFailed", 378 }, >- { "NoPixelsDefinedInCache", 379 }, >- { "PixelCacheAllocationFailed", 380 }, >- { "UnableToAddColorProfile", 381 }, >- { "UnableToAddGenericProfile", 382 }, >- { "UnableToAddIPTCProfile", 383 }, >- { "UnableToAllocateCoefficients", 384 }, >- { "UnableToAllocateColormap", 385 }, >- { "UnableToAllocateICCProfile", 386 }, >- { "UnableToAllocateString", 387 }, >- { "UnableToAnnotateImage", 388 }, >- { "UnableToAverageImageSequence", 389 }, >- { "UnableToCloneDrawingWand", 390 }, >- { "UnableToCloneImage", 391 }, >- { "UnableToComputeImageSignature", 392 }, >- { "UnableToConstituteImage", 393 }, >- { "UnableToConvertFont", 394 }, >- { "UnableToConvertStringToTokens", 395 }, >- { "UnableToCreateColormap", 396 }, >- { "UnableToCreateColorTransform", 397 }, >- { "UnableToCreateCommandWidget", 398 }, >- { "UnableToCreateImageGroup", 399 }, >- { "UnableToCreateImageMontage", 400 }, >- { "UnableToCreateXWindow", 401 }, >- { "UnableToCropImage", 402 }, >- { "UnableToDespeckleImage", 403 }, >- { "UnableToDetermineImageClass", 404 }, >- { "UnableToDetermineTheNumberOfImageColors", 405 }, >- { "UnableToDitherImage", 406 }, >- { "UnableToDrawOnImage", 407 }, >- { "UnableToEdgeImage", 408 }, >- { "UnableToEmbossImage", 409 }, >- { "UnableToEnhanceImage", 410 }, >- { "UnableToFloodfillImage", 411 }, >- { "UnableToGammaCorrectImage", 412 }, >- { "UnableToGetBestIconSize", 413 }, >- { "UnableToGetFromRegistry", 414 }, >- { "UnableToGetPackageInfo", 415 }, >- { "UnableToLevelImage", 416 }, >- { "UnableToMagnifyImage", 417 }, >- { "UnableToManageColor", 418 }, >- { "UnableToMapImage", 419 }, >- { "UnableToMapImageSequence", 420 }, >- { "UnableToMedianFilterImage", 421 }, >- { "UnableToMotionBlurImage", 422 }, >- { "UnableToNoiseFilterImage", 423 }, >- { "UnableToNormalizeImage", 424 }, >- { "UnableToOpenColorProfile", 425 }, >- { "UnableToQuantizeImage", 426 }, >- { "UnableToQuantizeImageSequence", 427 }, >- { "UnableToReadTextChunk", 428 }, >- { "UnableToReadXImage", 429 }, >- { "UnableToReadXServerColormap", 430 }, >- { "UnableToResizeImage", 431 }, >- { "UnableToRotateImage", 432 }, >- { "UnableToSampleImage", 433 }, >- { "UnableToScaleImage", 434 }, >- { "UnableToSelectImage", 435 }, >- { "UnableToSharpenImage", 436 }, >- { "UnableToShaveImage", 437 }, >- { "UnableToShearImage", 438 }, >- { "UnableToSortImageColormap", 439 }, >- { "UnableToThresholdImage", 440 }, >- { "UnableToTransformColorspace", 441 }, >- { "MemoryAllocationFailed", 442 }, >- { "SemaporeOperationFailed", 443 }, >- { "UnableToAllocateAscii85Info", 444 }, >- { "UnableToAllocateCacheInfo", 445 }, >- { "UnableToAllocateCacheView", 446 }, >- { "UnableToAllocateColorInfo", 447 }, >- { "UnableToAllocateDashPattern", 448 }, >- { "UnableToAllocateDelegateInfo", 449 }, >- { "UnableToAllocateDerivatives", 450 }, >- { "UnableToAllocateDrawContext", 451 }, >- { "UnableToAllocateDrawInfo", 452 }, >- { "UnableToAllocateDrawingWand", 453 }, >- { "UnableToAllocateGammaMap", 454 }, >- { "UnableToAllocateImage", 455 }, >- { "UnableToAllocateImagePixels", 456 }, >- { "UnableToAllocateLogInfo", 457 }, >- { "UnableToAllocateMagicInfo", 458 }, >- { "UnableToAllocateMagickInfo", 459 }, >- { "UnableToAllocateModuleInfo", 460 }, >- { "UnableToAllocateMontageInfo", 461 }, >- { "UnableToAllocateQuantizeInfo", 462 }, >- { "UnableToAllocateRandomKernel", 463 }, >- { "UnableToAllocateRegistryInfo", 464 }, >- { "UnableToAllocateSemaphoreInfo", 465 }, >- { "UnableToAllocateString", 466 }, >- { "UnableToAllocateTypeInfo", 467 }, >- { "UnableToAllocateWand", 468 }, >- { "UnableToAnimateImageSequence", 469 }, >- { "UnableToCloneBlobInfo", 470 }, >- { "UnableToCloneCacheInfo", 471 }, >- { "UnableToCloneImage", 472 }, >- { "UnableToCloneImageInfo", 473 }, >- { "UnableToConcatenateString", 474 }, >- { "UnableToConvertText", 475 }, >- { "UnableToCreateColormap", 476 }, >- { "UnableToDestroySemaphore", 477 }, >- { "UnableToDisplayImage", 478 }, >- { "UnableToEscapeString", 479 }, >- { "UnableToInitializeSemaphore", 480 }, >- { "UnableToInterpretMSLImage", 481 }, >- { "UnableToLockSemaphore", 482 }, >- { "UnableToObtainRandomEntropy", 483 }, >- { "UnableToUnlockSemaphore", 484 }, >- { "MemoryAllocationFailed", 485 }, >- { "ImageDoesNotContainTheStreamGeometry", 486 }, >- { "NoStreamHandlerIsDefined", 487 }, >- { "PixelCacheIsNotOpen", 488 }, >- { "UnableToAcquirePixelStream", 489 }, >- { "UnableToSetPixelStream", 490 }, >- { "UnableToSyncPixelStream", 491 }, >- { "Default", 492 }, >- { "Default", 493 }, >- { "FontSubstitutionRequired", 494 }, >- { "UnableToGetTypeMetrics", 495 }, >- { "UnableToInitializeFreetypeLibrary", 496 }, >- { "UnableToReadFont", 497 }, >- { "UnrecognizedFontEncoding", 498 }, >- { "Default", 499 }, >- { "Default", 500 }, >- { "InvalidColormapIndex", 501 }, >- { "WandAPINotImplemented", 502 }, >- { "WandContainsNoImageIndexs", 503 }, >- { "WandContainsNoImages", 504 }, >- { "ColorIsNotKnownToServer", 505 }, >- { "NoWindowWithSpecifiedIDExists", 506 }, >- { "StandardColormapIsNotInitialized", 507 }, >- { "UnableToConnectToRemoteDisplay", 508 }, >- { "UnableToCreateBitmap", 509 }, >- { "UnableToCreateColormap", 510 }, >- { "UnableToCreatePixmap", 511 }, >- { "UnableToCreateProperty", 512 }, >- { "UnableToCreateStandardColormap", 513 }, >- { "UnableToDisplayImageInfo", 514 }, >- { "UnableToGetProperty", 515 }, >- { "UnableToGetStandardColormap", 516 }, >- { "UnableToGetVisual", 517 }, >- { "UnableToGrabMouse", 518 }, >- { "UnableToLoadFont", 519 }, >- { "UnableToMatchVisualToStandardColormap", 520 }, >- { "UnableToOpenXServer", 521 }, >- { "UnableToReadXAttributes", 522 }, >- { "UnableToReadXWindowImage", 523 }, >- { "UnrecognizedColormapType", 524 }, >- { "UnrecognizedGravityType", 525 }, >- { "UnrecognizedVisualSpecifier", 526 }, >- { "UnableToAllocateXHints", 527 }, >- { "UnableToCreateCursor", 528 }, >- { "UnableToCreateGraphicContext", 529 }, >- { "UnableToCreateStandardColormap", 530 }, >- { "UnableToCreateTextProperty", 531 }, >- { "UnableToCreateXImage", 532 }, >- { "UnableToCreateXPixmap", 533 }, >- { "UnableToCreateXWindow", 534 }, >- { "UnableToDisplayImage", 535 }, >- { "UnableToDitherImage", 536 }, >- { "UnableToGetPixelInfo", 537 }, >- { "UnableToGetVisual", 538 }, >- { "UnableToLoadFont", 539 }, >- { "UnableToMakeXWindow", 540 }, >- { "UnableToOpenXServer", 541 }, >- { "UnableToViewFonts", 542 }, >- { "UnableToGetVisual", 543 }, >- { "UsingDefaultVisual", 544 }, >+ { "Default", 258 }, >+ { "UserRequestedTerminationBySignal", 259 }, >+ { "Default", 260 }, >+ { "BevelWidthIsNegative", 261 }, >+ { "ColorSeparatedImageRequired", 262 }, >+ { "FrameIsLessThanImageSize", 263 }, >+ { "GeometryDimensionsAreZero", 264 }, >+ { "GeometryDoesNotContainImage", 265 }, >+ { "HaldClutImageDimensionsInvalid", 266 }, >+ { "ImagesAreNotTheSameSize", 267 }, >+ { "ImageSizeMustExceedBevelWidth", 268 }, >+ { "ImageSmallerThanKernelWidth", 269 }, >+ { "ImageSmallerThanRadius", 270 }, >+ { "ImageWidthsOrHeightsDiffer", 271 }, >+ { "InputImagesAlreadySpecified", 272 }, >+ { "InvalidSubimageSpecification", 273 }, >+ { "KernelRadiusIsTooSmall", 274 }, >+ { "KernelWidthMustBeAnOddNumber", 275 }, >+ { "MatrixIsNotSquare", 276 }, >+ { "MatrixOrderOutOfRange", 277 }, >+ { "MissingAnImageFilename", 278 }, >+ { "MissingArgument", 279 }, >+ { "MustSpecifyAnImageName", 280 }, >+ { "MustSpecifyImageSize", 281 }, >+ { "NoBlobDefined", 282 }, >+ { "NoImagesDefined", 283 }, >+ { "NonzeroWidthAndHeightRequired", 284 }, >+ { "NoProfileNameWasGiven", 285 }, >+ { "NullBlobArgument", 286 }, >+ { "ReferenceImageRequired", 287 }, >+ { "ReferenceIsNotMyType", 288 }, >+ { "RegionAreaExceedsLimit", 289 }, >+ { "RequestDidNotReturnAnImage", 290 }, >+ { "SteganoImageRequired", 291 }, >+ { "StereoImageRequired", 292 }, >+ { "SubimageSpecificationReturnsNoImages", 293 }, >+ { "UnableToAddOrRemoveProfile", 294 }, >+ { "UnableToAverageImageSequence", 295 }, >+ { "UnableToBlurImage", 296 }, >+ { "UnableToChopImage", 297 }, >+ { "UnableToColorMatrixImage", 298 }, >+ { "UnableToConstituteImage", 299 }, >+ { "UnableToConvolveImage", 300 }, >+ { "UnableToEdgeImage", 301 }, >+ { "UnableToEqualizeImage", 302 }, >+ { "UnableToFilterImage", 303 }, >+ { "UnableToFormatImageMetadata", 304 }, >+ { "UnableToFrameImage", 305 }, >+ { "UnableToOilPaintImage", 306 }, >+ { "UnableToPaintImage", 307 }, >+ { "UnableToRaiseImage", 308 }, >+ { "UnableToSharpenImage", 309 }, >+ { "UnableToThresholdImage", 310 }, >+ { "UnableToWaveImage", 311 }, >+ { "UnrecognizedAttribute", 312 }, >+ { "UnrecognizedChannelType", 313 }, >+ { "UnrecognizedColor", 314 }, >+ { "UnrecognizedColormapType", 315 }, >+ { "UnrecognizedColorspace", 316 }, >+ { "UnrecognizedCommand", 317 }, >+ { "UnrecognizedComposeOperator", 318 }, >+ { "UnrecognizedDisposeMethod", 319 }, >+ { "UnrecognizedElement", 320 }, >+ { "UnrecognizedEndianType", 321 }, >+ { "UnrecognizedGravityType", 322 }, >+ { "UnrecognizedHighlightStyle", 323 }, >+ { "UnrecognizedImageCompression", 324 }, >+ { "UnrecognizedImageFilter", 325 }, >+ { "UnrecognizedImageFormat", 326 }, >+ { "UnrecognizedImageMode", 327 }, >+ { "UnrecognizedImageType", 328 }, >+ { "UnrecognizedIntentType", 329 }, >+ { "UnrecognizedInterlaceType", 330 }, >+ { "UnrecognizedListType", 331 }, >+ { "UnrecognizedMetric", 332 }, >+ { "UnrecognizedModeType", 333 }, >+ { "UnrecognizedNoiseType", 334 }, >+ { "UnrecognizedOperator", 335 }, >+ { "UnrecognizedOption", 336 }, >+ { "UnrecognizedPerlMagickMethod", 337 }, >+ { "UnrecognizedPixelMap", 338 }, >+ { "UnrecognizedPreviewType", 339 }, >+ { "UnrecognizedResourceType", 340 }, >+ { "UnrecognizedType", 341 }, >+ { "UnrecognizedUnitsType", 342 }, >+ { "UnrecognizedVirtualPixelMethod", 343 }, >+ { "UnsupportedSamplingFactor", 344 }, >+ { "UsageError", 345 }, >+ { "InvalidColorspaceType", 346 }, >+ { "InvalidEndianType", 347 }, >+ { "InvalidImageType", 348 }, >+ { "InvalidInterlaceType", 349 }, >+ { "MissingAnImageFilename", 350 }, >+ { "MissingArgument", 351 }, >+ { "NoImagesWereLoaded", 352 }, >+ { "OptionLengthExceedsLimit", 353 }, >+ { "RequestDidNotReturnAnImage", 354 }, >+ { "UnableToOpenXServer", 355 }, >+ { "UnableToPersistKey", 356 }, >+ { "UnrecognizedColormapType", 357 }, >+ { "UnrecognizedColorspaceType", 358 }, >+ { "UnrecognizedDisposeMethod", 359 }, >+ { "UnrecognizedEndianType", 360 }, >+ { "UnrecognizedFilterType", 361 }, >+ { "UnrecognizedImageCompressionType", 362 }, >+ { "UnrecognizedImageType", 363 }, >+ { "UnrecognizedInterlaceType", 364 }, >+ { "UnrecognizedOption", 365 }, >+ { "UnrecognizedResourceType", 366 }, >+ { "UnrecognizedVirtualPixelMethod", 367 }, >+ { "UnrecognizedColor", 368 }, >+ { "ImageExpected", 369 }, >+ { "ImageInfoExpected", 370 }, >+ { "StructureSizeMismatch", 371 }, >+ { "UnableToGetRegistryID", 372 }, >+ { "UnableToLocateImage", 373 }, >+ { "UnableToSetRegistry", 374 }, >+ { "Default", 375 }, >+ { "Default", 376 }, >+ { "CacheResourcesExhausted", 377 }, >+ { "ImagePixelHeightLimitExceeded", 378 }, >+ { "ImagePixelLimitExceeded", 379 }, >+ { "ImagePixelWidthLimitExceeded", 380 }, >+ { "MemoryAllocationFailed", 381 }, >+ { "NoPixelsDefinedInCache", 382 }, >+ { "PixelCacheAllocationFailed", 383 }, >+ { "UnableToAddColorProfile", 384 }, >+ { "UnableToAddGenericProfile", 385 }, >+ { "UnableToAddIPTCProfile", 386 }, >+ { "UnableToAllocateCoefficients", 387 }, >+ { "UnableToAllocateColormap", 388 }, >+ { "UnableToAllocateICCProfile", 389 }, >+ { "UnableToAllocateString", 390 }, >+ { "UnableToAnnotateImage", 391 }, >+ { "UnableToAverageImageSequence", 392 }, >+ { "UnableToCloneDrawingWand", 393 }, >+ { "UnableToCloneImage", 394 }, >+ { "UnableToComputeImageSignature", 395 }, >+ { "UnableToConstituteImage", 396 }, >+ { "UnableToConvertFont", 397 }, >+ { "UnableToConvertStringToTokens", 398 }, >+ { "UnableToCreateColormap", 399 }, >+ { "UnableToCreateColorTransform", 400 }, >+ { "UnableToCreateCommandWidget", 401 }, >+ { "UnableToCreateImageGroup", 402 }, >+ { "UnableToCreateImageMontage", 403 }, >+ { "UnableToCreateXWindow", 404 }, >+ { "UnableToCropImage", 405 }, >+ { "UnableToDespeckleImage", 406 }, >+ { "UnableToDetermineImageClass", 407 }, >+ { "UnableToDetermineTheNumberOfImageColors", 408 }, >+ { "UnableToDitherImage", 409 }, >+ { "UnableToDrawOnImage", 410 }, >+ { "UnableToEdgeImage", 411 }, >+ { "UnableToEmbossImage", 412 }, >+ { "UnableToEnhanceImage", 413 }, >+ { "UnableToFloodfillImage", 414 }, >+ { "UnableToGammaCorrectImage", 415 }, >+ { "UnableToGetBestIconSize", 416 }, >+ { "UnableToGetFromRegistry", 417 }, >+ { "UnableToGetPackageInfo", 418 }, >+ { "UnableToLevelImage", 419 }, >+ { "UnableToMagnifyImage", 420 }, >+ { "UnableToManageColor", 421 }, >+ { "UnableToMapImage", 422 }, >+ { "UnableToMapImageSequence", 423 }, >+ { "UnableToMedianFilterImage", 424 }, >+ { "UnableToMotionBlurImage", 425 }, >+ { "UnableToNoiseFilterImage", 426 }, >+ { "UnableToNormalizeImage", 427 }, >+ { "UnableToOpenColorProfile", 428 }, >+ { "UnableToQuantizeImage", 429 }, >+ { "UnableToQuantizeImageSequence", 430 }, >+ { "UnableToReadTextChunk", 431 }, >+ { "UnableToReadXImage", 432 }, >+ { "UnableToReadXServerColormap", 433 }, >+ { "UnableToResizeImage", 434 }, >+ { "UnableToRotateImage", 435 }, >+ { "UnableToSampleImage", 436 }, >+ { "UnableToScaleImage", 437 }, >+ { "UnableToSelectImage", 438 }, >+ { "UnableToSharpenImage", 439 }, >+ { "UnableToShaveImage", 440 }, >+ { "UnableToShearImage", 441 }, >+ { "UnableToSortImageColormap", 442 }, >+ { "UnableToThresholdImage", 443 }, >+ { "UnableToTransformColorspace", 444 }, >+ { "MemoryAllocationFailed", 445 }, >+ { "SemaporeOperationFailed", 446 }, >+ { "UnableToAllocateAscii85Info", 447 }, >+ { "UnableToAllocateCacheInfo", 448 }, >+ { "UnableToAllocateCacheView", 449 }, >+ { "UnableToAllocateColorInfo", 450 }, >+ { "UnableToAllocateDashPattern", 451 }, >+ { "UnableToAllocateDelegateInfo", 452 }, >+ { "UnableToAllocateDerivatives", 453 }, >+ { "UnableToAllocateDrawContext", 454 }, >+ { "UnableToAllocateDrawInfo", 455 }, >+ { "UnableToAllocateDrawingWand", 456 }, >+ { "UnableToAllocateGammaMap", 457 }, >+ { "UnableToAllocateImage", 458 }, >+ { "UnableToAllocateImagePixels", 459 }, >+ { "UnableToAllocateLogInfo", 460 }, >+ { "UnableToAllocateMagicInfo", 461 }, >+ { "UnableToAllocateMagickInfo", 462 }, >+ { "UnableToAllocateModuleInfo", 463 }, >+ { "UnableToAllocateMontageInfo", 464 }, >+ { "UnableToAllocateQuantizeInfo", 465 }, >+ { "UnableToAllocateRandomKernel", 466 }, >+ { "UnableToAllocateRegistryInfo", 467 }, >+ { "UnableToAllocateSemaphoreInfo", 468 }, >+ { "UnableToAllocateString", 469 }, >+ { "UnableToAllocateTypeInfo", 470 }, >+ { "UnableToAllocateWand", 471 }, >+ { "UnableToAnimateImageSequence", 472 }, >+ { "UnableToCloneBlobInfo", 473 }, >+ { "UnableToCloneCacheInfo", 474 }, >+ { "UnableToCloneImage", 475 }, >+ { "UnableToCloneImageInfo", 476 }, >+ { "UnableToConcatenateString", 477 }, >+ { "UnableToConvertText", 478 }, >+ { "UnableToCreateColormap", 479 }, >+ { "UnableToDestroySemaphore", 480 }, >+ { "UnableToDisplayImage", 481 }, >+ { "UnableToEscapeString", 482 }, >+ { "UnableToInitializeSemaphore", 483 }, >+ { "UnableToInterpretMSLImage", 484 }, >+ { "UnableToLockSemaphore", 485 }, >+ { "UnableToObtainRandomEntropy", 486 }, >+ { "UnableToUnlockSemaphore", 487 }, >+ { "MemoryAllocationFailed", 488 }, >+ { "ImageDoesNotContainTheStreamGeometry", 489 }, >+ { "NoStreamHandlerIsDefined", 490 }, >+ { "PixelCacheIsNotOpen", 491 }, >+ { "UnableToAcquirePixelStream", 492 }, >+ { "UnableToSetPixelStream", 493 }, >+ { "UnableToSyncPixelStream", 494 }, >+ { "Default", 495 }, >+ { "Default", 496 }, >+ { "FontSubstitutionRequired", 497 }, >+ { "UnableToGetTypeMetrics", 498 }, >+ { "UnableToInitializeFreetypeLibrary", 499 }, >+ { "UnableToReadFont", 500 }, >+ { "UnrecognizedFontEncoding", 501 }, >+ { "Default", 502 }, >+ { "Default", 503 }, >+ { "InvalidColormapIndex", 504 }, >+ { "WandAPINotImplemented", 505 }, >+ { "WandContainsNoImageIndexs", 506 }, >+ { "WandContainsNoImages", 507 }, >+ { "ColorIsNotKnownToServer", 508 }, >+ { "NoWindowWithSpecifiedIDExists", 509 }, >+ { "StandardColormapIsNotInitialized", 510 }, >+ { "UnableToConnectToRemoteDisplay", 511 }, >+ { "UnableToCreateBitmap", 512 }, >+ { "UnableToCreateColormap", 513 }, >+ { "UnableToCreatePixmap", 514 }, >+ { "UnableToCreateProperty", 515 }, >+ { "UnableToCreateStandardColormap", 516 }, >+ { "UnableToDisplayImageInfo", 517 }, >+ { "UnableToGetProperty", 518 }, >+ { "UnableToGetStandardColormap", 519 }, >+ { "UnableToGetVisual", 520 }, >+ { "UnableToGrabMouse", 521 }, >+ { "UnableToLoadFont", 522 }, >+ { "UnableToMatchVisualToStandardColormap", 523 }, >+ { "UnableToOpenXServer", 524 }, >+ { "UnableToReadXAttributes", 525 }, >+ { "UnableToReadXWindowImage", 526 }, >+ { "UnrecognizedColormapType", 527 }, >+ { "UnrecognizedGravityType", 528 }, >+ { "UnrecognizedVisualSpecifier", 529 }, >+ { "UnableToAllocateXHints", 530 }, >+ { "UnableToCreateCursor", 531 }, >+ { "UnableToCreateGraphicContext", 532 }, >+ { "UnableToCreateStandardColormap", 533 }, >+ { "UnableToCreateTextProperty", 534 }, >+ { "UnableToCreateXImage", 535 }, >+ { "UnableToCreateXPixmap", 536 }, >+ { "UnableToCreateXWindow", 537 }, >+ { "UnableToDisplayImage", 538 }, >+ { "UnableToDitherImage", 539 }, >+ { "UnableToGetPixelInfo", 540 }, >+ { "UnableToGetVisual", 541 }, >+ { "UnableToLoadFont", 542 }, >+ { "UnableToMakeXWindow", 543 }, >+ { "UnableToOpenXServer", 544 }, >+ { "UnableToViewFonts", 545 }, >+ { "UnableToGetVisual", 546 }, >+ { "UsingDefaultVisual", 547 }, > { 0, 0 } > }; > #endif >@@ -1398,10 +1404,13 @@ > "default error", > "default warning", > "Already pushing pattern definition", >+ "text value does not convert to float", >+ "text value does not convert to integer", > "Non-conforming drawing primitive definition", > "too many coordinates", > "Unable to print", > "unbalanced graphic context push-pop", >+ "vector path truncated", > "default error", > "Not a relative URL", > "Not currently pushing pattern definition", >diff -r 9ba30629488e -r e797bb0aec31 magick/render.c >--- a/magick/render.c Sat Apr 30 18:31:06 2016 -0500 >+++ b/magick/render.c Sat Apr 30 18:32:03 2016 -0500 >@@ -128,7 +128,7 @@ > DrawStrokePolygon(Image *,const DrawInfo *,const PrimitiveInfo *); > > static unsigned long >- TracePath(PrimitiveInfo *,const char *); >+ TracePath(Image *image, PrimitiveInfo *,const char *); > > static void > #if 0 >@@ -148,6 +148,41 @@ > PointInfo), > TraceSquareLinecap(PrimitiveInfo *,const unsigned long,const double); > >+static inline MagickPassFail MagickAtoFChk(const char *str, double *value) >+{ >+ char *estr=0; >+ *value=strtod(str,&estr); >+ return (str == estr ? MagickFail : MagickPass); >+} >+#if 0 >+static inline MagickPassFail MagickAtoIChk(const char *str, int *value) >+{ >+ char *estr=0; >+ *value=(int) strtol(str,&estr, 10); >+ return (str == estr ? MagickFail : MagickPass); >+} >+#endif >+static inline MagickPassFail MagickAtoUIChk(const char *str, unsigned int *value) >+{ >+ char *estr=0; >+ *value=(unsigned int) strtol(str,&estr, 10); >+ return (str == estr ? MagickFail : MagickPass); >+} >+#if 0 >+static inline MagickPassFail MagickAtoLChk(const char *str, long *value) >+{ >+ char *estr=0; >+ *value=strtol(str,&estr, 10); >+ return (str == estr ? MagickFail : MagickPass); >+} >+#endif >+static inline MagickPassFail MagickAtoULChk(const char *str, unsigned long *value) >+{ >+ char *estr=0; >+ *value=(unsigned long) strtol(str,&estr, 10); >+ return (str == estr ? MagickFail : MagickPass); >+} >+ > /* > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > % % >@@ -1705,7 +1740,8 @@ > bounds; > > size_t >- length; >+ length, >+ token_max_length; > > MagickPassFail > status; >@@ -1761,6 +1797,7 @@ > } > graphic_context[n]=CloneDrawInfo((ImageInfo *) NULL,draw_info); > token=AllocateString(primitive); >+ token_max_length=strlen(token); > (void) QueryColorDatabase("black",&start_color,&image->exception); > (void) SetImageType(image,TrueColorType); > status=MagickPass; >@@ -1774,7 +1809,8 @@ > /* > Interpret graphic primitive. > */ >- GetToken(q,&q,keyword); >+ if (MagickGetToken(q,&q,keyword,MaxTextExtent) < 1) >+ break; > if (*keyword == '\0') > break; > if (*keyword == '#') >@@ -1799,28 +1835,54 @@ > { > if (LocaleCompare("affine",keyword) == 0) > { >- GetToken(q,&q,token); >- affine.sx=MagickAtoF(token); >- GetToken(q,&q,token); >- if (*token == ',') >- GetToken(q,&q,token); >- affine.rx=MagickAtoF(token); >- GetToken(q,&q,token); >- if (*token == ',') >- GetToken(q,&q,token); >- affine.ry=MagickAtoF(token); >- GetToken(q,&q,token); >- if (*token == ',') >- GetToken(q,&q,token); >- affine.sy=MagickAtoF(token); >- GetToken(q,&q,token); >- if (*token == ',') >- GetToken(q,&q,token); >- affine.tx=MagickAtoF(token); >- GetToken(q,&q,token); >- if (*token == ',') >- GetToken(q,&q,token); >- affine.ty=MagickAtoF(token); >+ MagickBool affine_args_good = MagickFalse; >+ do >+ { >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (MagickAtoFChk(token,&affine.sx) != MagickPass) >+ break; >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (*token == ',') >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (MagickAtoFChk(token,&affine.rx) != MagickPass) >+ break; >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (*token == ',') >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (MagickAtoFChk(token,&affine.ry) != MagickPass) >+ break; >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (*token == ',') >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (MagickAtoFChk(token,&affine.sy) != MagickPass) >+ break; >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (*token == ',') >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (MagickAtoFChk(token,&affine.tx) != MagickPass) >+ break; >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (*token == ',') >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ break; >+ if (MagickAtoFChk(token,&affine.ty) != MagickPass) >+ break; >+ affine_args_good=MagickTrue; >+ } while (0); >+ if (affine_args_good != MagickTrue) >+ { >+ status=MagickFail; >+ } > break; > } > if (LocaleCompare("arc",keyword) == 0) >@@ -1850,7 +1912,11 @@ > /* > Create clip mask. > */ >- GetToken(q,&q,token); >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ { >+ status=MagickFail; >+ break; >+ } > (void) CloneString(&graphic_context[n]->clip_path,token); > (void) DrawClipPath(image,graphic_context[n], > graphic_context[n]->clip_path); >@@ -1948,7 +2014,11 @@ > } > if (LocaleCompare("encoding",keyword) == 0) > { >- GetToken(q,&q,token); >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ { >+ status=MagickFail; >+ break; >+ } > (void) CloneString(&graphic_context[n]->encoding,token); > break; > } >@@ -2008,7 +2078,10 @@ > } > if (LocaleCompare("font-family",keyword) == 0) > { >- GetToken(q,&q,token); >+ MagickGetToken(q,&q,token,token_max_length); >+ fprintf(stderr,"%s\n",token); >+ if ((token[0] == '\'') && (token[strlen(token)-1] == '\'')) >+ fprintf(stderr,"==== Hit \n"); > (void) CloneString(&graphic_context[n]->family,token); > break; > } >@@ -2057,20 +2130,29 @@ > } > if (LocaleCompare("font-weight",keyword) == 0) > { >- GetToken(q,&q,token); >- graphic_context[n]->weight=MagickAtoL(token); >+ if (MagickGetToken(q,&q,token,token_max_length) < 1) >+ { >+ status=MagickFail; >+ break; >+ } > if (LocaleCompare(token,"all") == 0) > graphic_context[n]->weight=0; >- if (LocaleCompare(token,"bold") == 0) >+ else if (LocaleCompare(token,"bold") == 0) > graphic_context[n]->weight=700; >- if (LocaleCompare(token,"bolder") == 0) >- if (graphic_context[n]->weight <= 800) >- graphic_context[n]->weight+=100; >- if (LocaleCompare(token,"lighter") == 0) >- if (graphic_context[n]->weight >= 100) >- graphic_context[n]->weight-=100; >- if (LocaleCompare(token,"normal") == 0) >+ else if (LocaleCompare(token,"bolder") == 0) >+ { >+ if (graphic_context[n]->weight <= 800) >+ graphic_context[n]->weight+=100; >+ } >+ else if (LocaleCompare(token,"lighter") == 0) >+ { >+ if (graphic_context[n]->weight >= 100) >+ graphic_context[n]->weight-=100; >+ } >+ else if (LocaleCompare(token,"normal") == 0) > graphic_context[n]->weight=400; >+ else if (MagickAtoULChk(token,&graphic_context[n]->weight) != MagickPass) >+ status=MagickFail; > break; > } > status=MagickFail; >@@ -3006,7 +3088,7 @@ > } > case PathPrimitive: > { >- i=(long) (j+TracePath(primitive_info+j,token)); >+ i=(long) (j+TracePath(image,primitive_info+j,token)); > break; > } > case ColorPrimitive: >@@ -4814,8 +4896,50 @@ > primitive_info->coordinates=2; > } > >+/* >+ Special wrapper macros around strtod(), strtol(), and >+ MagickGetToken() to support TracePath() parsing error detection and >+ reporting. >+*/ >+#define MagickTracePathAtoF(str,value) \ >+ do { \ >+ if (MagickAtoFChk(str,value) != MagickPass) \ >+ { \ >+ ThrowException(&image->exception,DrawError,FloatValueConversionError,str); \ >+ return 0; \ >+ } \ >+ } while(0) >+ >+#define MagickTracePathAtoI(str,value) \ >+ do { \ >+ if (MagickAtoIChk(str,value) != MagickPass) \ >+ { \ >+ ThrowException(&image->exception,DrawError,IntegerValueConversionError,str); \ >+ return 0; \ >+ } \ >+ } while(0) >+ >+#define MagickTracePathAtoUI(str,value) \ >+ do { \ >+ if (MagickAtoUIChk(str,value) != MagickPass) \ >+ { \ >+ ThrowException(&image->exception,DrawError,IntegerValueConversionError,str); \ >+ return 0; \ >+ } \ >+ } while(0) >+ >+#define MagickGetTracePathToken(p,ep,token,extent) \ >+ do { \ >+ if (MagickGetToken(p,ep,token,extent) < 1) \ >+ { \ >+ ThrowException(&image->exception,DrawError,VectorPathTruncated,p); \ >+ return 0; \ >+ } \ >+ } while(0) >+ >+ > static unsigned long >-TracePath(PrimitiveInfo *primitive_info,const char *path) >+TracePath(Image *image,PrimitiveInfo *primitive_info,const char *path) > { > char > token[MaxTextExtent]; >@@ -4869,48 +4993,48 @@ > case 'A': > { > MagickBool >- large_arc, >- sweep; >+ large_arc = MagickFalse, >+ sweep = MagickFalse; > > double >- angle; >+ angle = 0.0; > > PointInfo >- arc; >+ arc = {0,0}; > > /* > Compute arc points. > */ > do > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- arc.x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&arc.x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- arc.y=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&arc.y); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- angle=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&angle); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- large_arc=MagickAtoI(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoUI(token,&large_arc); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- sweep=MagickAtoI(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoUI(token,&sweep); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > end.x=attribute == 'A' ? x : point.x+x; > end.y=attribute == 'A' ? y : point.y+y; > TraceArcPath(q,point,end,arc,angle,large_arc,sweep); >@@ -4934,14 +5058,14 @@ > points[0]=point; > for (i=1; i < 4; i++) > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > end.x=attribute == 'C' ? x : point.x+x; > end.y=attribute == 'C' ? y : point.y+y; > points[i]=end; >@@ -4959,10 +5083,10 @@ > { > do > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); > point.x=attribute == 'H' ? x: point.x+x; > TracePoint(q,point); > q+=q->coordinates; >@@ -4974,14 +5098,14 @@ > { > do > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > point.x=attribute == 'L' ? x : point.x+x; > point.y=attribute == 'L' ? y : point.y+y; > TracePoint(q,point); >@@ -5001,14 +5125,14 @@ > i=0; > do > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > point.x=attribute == 'M' ? x : point.x+x; > point.y=attribute == 'M' ? y : point.y+y; > if (i == 0) >@@ -5035,14 +5159,14 @@ > points[0]=point; > for (i=1; i < 3; i++) > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > if (*p == ',') > p++; > end.x=attribute == 'Q' ? x : point.x+x; >@@ -5070,14 +5194,14 @@ > points[1].y=2.0*points[3].y-points[2].y; > for (i=2; i < 4; i++) > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > if (*p == ',') > p++; > end.x=attribute == 'S' ? x : point.x+x; >@@ -5110,14 +5234,14 @@ > points[1].y=2.0*points[2].y-points[1].y; > for (i=2; i < 3; i++) > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- x=MagickAtoF(token); >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&x); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > end.x=attribute == 'T' ? x : point.x+x; > end.y=attribute == 'T' ? y : point.y+y; > points[i]=end; >@@ -5140,10 +5264,10 @@ > { > do > { >- GetToken(p,&p,token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); > if (*token == ',') >- GetToken(p,&p,token); >- y=MagickAtoF(token); >+ MagickGetTracePathToken(p,&p,token,MaxTextExtent); >+ MagickTracePathAtoF(token,&y); > point.y=attribute == 'V' ? y : point.y+y; > TracePoint(q,point); > q+=q->coordinates; >@@ -5170,6 +5294,7 @@ > } > } > } >+ > primitive_info->coordinates=q-primitive_info; > number_coordinates+=primitive_info->coordinates; > for (i=0; i < (long) number_coordinates; i++) >diff -r 9ba30629488e -r e797bb0aec31 magick/utility.c >--- a/magick/utility.c Sat Apr 30 18:31:06 2016 -0500 >+++ b/magick/utility.c Sat Apr 30 18:32:03 2016 -0500 >@@ -2564,106 +2564,7 @@ > */ > MagickExport void GetToken(const char *start,char **end,char *token) > { >- register char >- *p; >- >- register long >- i; >- >- double >- double_val; >- >- assert(start != (const char *) NULL); >- assert(token != (char *) NULL); >- >- i=0; >- p=(char *) start; >- >- if (*p != '\0') >- { >- while (isspace((int)(unsigned char) (*p)) && (*p != '\0')) >- p++; >- switch (*p) >- { >- case '"': >- case '\'': >- case '{': >- { >- register char >- escape; >- >- escape=(*p); >- if (escape == '{') >- escape='}'; >- for (p++; *p != '\0'; p++) >- { >- if ((*p == '\\') && ((*(p+1) == escape) || (*(p+1) == '\\'))) >- p++; >- else >- if (*p == escape) >- { >- p++; >- break; >- } >- token[i++]=(*p); >- } >- break; >- } >- default: >- { >- char >- *q; >- >- double_val=strtod(p,&q); >- (void) double_val; >- if (p != q) >- { >- for ( ; p < q; p++) >- token[i++]=(*p); >- if (*p == '%') >- token[i++]=(*p++); >- break; >- } >- if ((*p != '\0') && !isalpha((int) *p) && (*p != *DirectorySeparator) && >- (*p != '#') && (*p != '<')) >- { >- token[i++]=(*p++); >- break; >- } >- for ( ; *p != '\0'; p++) >- { >- if ((isspace((int)(unsigned char) *p) || (*p == '=')) && (*(p-1) != '\\')) >- break; >- token[i++]=(*p); >- if (*p == '(') >- for (p++; *p != '\0'; p++) >- { >- token[i++]=(*p); >- if ((*p == ')') && (*(p-1) != '\\')) >- break; >- } >- } >- break; >- } >- } >- } >- token[i]='\0'; >- { >- char >- *r; >- >- /* >- Parse token in form "url(#%s)" >- */ >- if ((LocaleNCompare(token,"url(#",5) == 0) && >- ((r = strrchr(token,')')) != NULL)) >- { >- *r='\0'; >- (void) memmove(token,token+5,r-token+1); >- } >- } >- if (end != (char **) NULL) >- *end=p; >+ (void) MagickGetToken(start,end,token, MaxTextExtent); > } > > /* >@@ -3673,6 +3582,166 @@ > % % > % % > % % >++ M a g i c k G e t T o k e n % >+% % >+% % >+% % >+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >+% >+% Method MagickGetToken gets a token from the token stream. A token is defined >+% as sequence of characters delimited by whitespace (e.g. clip-path), a >+% sequence delimited with quotes (.e.g "Quote me"), or a sequence enclosed >+% in parenthesis (e.g. rgb(0,0,0)). >+% >+% The format of the MagickGetToken method is: >+% >+% void MagickGetToken(const char *start,char **end,char *token, >+% const size_t buffer_length) >+% >+% A description of each parameter follows: >+% >+% o start: the start of the token sequence. >+% >+% o end: point to the end of the token sequence (may be NULL). >+% >+% o token: copy the token to this buffer. >+% >+% o buffer_length: size of the token buffer. If the token exceeds >+% the buffer size, the token will be truncated, but the >+% parser will still update the end pointer as if the >+% truncation did not occur. >+% >+% o returns: Size of the consumed token, not including a terminating >+% null character. If this is larger or equal to the buffer >+% size then truncation has occured. >+% >+*/ >+MagickExport size_t MagickGetToken(const char *start,char **end,char *token, >+ const size_t buffer_length) >+{ >+ register char >+ *p; >+ >+ register size_t >+ i; >+ >+ register size_t >+ length = buffer_length - 1; >+ >+ double >+ double_val; >+ >+ assert(start != (const char *) NULL); >+ assert(token != (char *) NULL); >+ >+ i=0; >+ p=(char *) start; >+ >+ if (*p != '\0') >+ { >+ while (isspace((int)(unsigned char) (*p)) && (*p != '\0')) >+ p++; >+ switch (*p) >+ { >+ case '"': >+ case '\'': >+ case '{': >+ { >+ register char >+ escape; >+ >+ escape=(*p); >+ if (escape == '{') >+ escape='}'; >+ for (p++; *p != '\0'; p++) >+ { >+ if ((*p == '\\') && ((*(p+1) == escape) || (*(p+1) == '\\'))) >+ p++; >+ else >+ if (*p == escape) >+ { >+ p++; >+ break; >+ } >+ if (i < length) >+ token[i++]=(*p); >+ } >+ break; >+ } >+ default: >+ { >+ char >+ *q; >+ >+ double_val=strtod(p,&q); >+ (void) double_val; >+ if (p != q) >+ { >+ for ( ; p < q; p++) >+ if (i < length) >+ token[i++]=(*p); >+ if (*p == '%') >+ if (i < length) >+ { >+ token[i++]=(*p); >+ p++; >+ } >+ break; >+ } >+ if ((*p != '\0') && !isalpha((int) *p) && (*p != *DirectorySeparator) && >+ (*p != '#') && (*p != '<')) >+ { >+ if (i < length) >+ { >+ token[i++]=(*p); >+ p++; >+ } >+ break; >+ } >+ for ( ; *p != '\0'; p++) >+ { >+ if ((isspace((int)(unsigned char) *p) || (*p == '=')) && (*(p-1) != '\\')) >+ break; >+ if (i < length) >+ token[i++]=(*p); >+ if (*p == '(') >+ for (p++; *p != '\0'; p++) >+ { >+ if (i < length) >+ token[i++]=(*p); >+ if ((*p == ')') && (*(p-1) != '\\')) >+ break; >+ } >+ } >+ break; >+ } >+ } >+ } >+ token[i]='\0'; >+ { >+ char >+ *r; >+ >+ /* >+ Parse token in form "url(#%s)" >+ */ >+ if ((LocaleNCompare(token,"url(#",5) == 0) && >+ ((r = strrchr(token,')')) != NULL)) >+ { >+ *r='\0'; >+ (void) memmove(token,token+5,r-token+1); >+ } >+ } >+ if (end != (char **) NULL) >+ *end=p; >+ return (p-start+1); >+} >+ >+/* >+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >+% % >+% % >+% % > % M a g i c k R a n d R e e n t r a n t % > % % > % % >diff -r 9ba30629488e -r e797bb0aec31 magick/utility.h >--- a/magick/utility.h Sat Apr 30 18:31:06 2016 -0500 >+++ b/magick/utility.h Sat Apr 30 18:32:03 2016 -0500 >@@ -139,7 +139,7 @@ > ExpandFilename(char *), > FormatSize(const magick_int64_t size,char *format), > GetPathComponent(const char *,PathType,char *), >- GetToken(const char *,char **,char *), >+ GetToken(const char *,char **,char *) MAGICK_FUNC_DEPRECATED, > LocaleLower(char *), > LocaleUpper(char *), > Strip(char *), >@@ -156,6 +156,8 @@ > > extern MagickExport size_t > MagickStripSpacesFromString(char *string), >+ MagickGetToken(const char *start,char **end,char *token, >+ const size_t buffer_length), > MagickStrlCat(char *dst, const char *src, const size_t size) MAGICK_FUNC_NONNULL, > MagickStrlCpy(char *dst, const char *src, const size_t size) MAGICK_FUNC_NONNULL, > MagickStrlCpyTrunc(char *dst, const char *src, const size_t size) MAGICK_FUNC_NONNULL;
# HG changeset patch # User Bob Friesenhahn <bfriesen@GraphicsMagick.org> # Date 1462059123 18000 # Sat Apr 30 18:32:03 2016 -0500 # Node ID e797bb0aec31941c454e6f764f9589d3b1843547 # Parent 9ba30629488e95a5b796db9af13aab979e09c139 DrawImage(): Make SVG path and other primitive parsing more robust. Fixes SEGV when reading files provided by CVE-2016-2318 test cases. Fixes CVE-2016-2318 completely. diff -r 9ba30629488e -r e797bb0aec31 locale/C.mgk --- a/locale/C.mgk Sat Apr 30 18:31:06 2016 -0500 +++ b/locale/C.mgk Sat Apr 30 18:32:03 2016 -0500 @@ -622,6 +622,15 @@ <Message name="TooManyCoordinates"> too many coordinates </Message> + <Message name="FloatValueConversionError"> + text value does not convert to float + </Message> + <Message name="IntegerValueConversionError"> + text value does not convert to integer + </Message> + <Message name="VectorPathTruncated"> + vector path truncated + </Message> </Error> <FatalError> <Message name="Default"> diff -r 9ba30629488e -r e797bb0aec31 magick/locale_c.h --- a/magick/locale_c.h Sat Apr 30 18:31:06 2016 -0500 +++ b/magick/locale_c.h Sat Apr 30 18:32:03 2016 -0500 @@ -3,7 +3,7 @@ extern MagickExport const char *GetLocaleMessageFromID(const int); -#define MAX_LOCALE_MSGS 544 +#define MAX_LOCALE_MSGS 547 #define MGK_BlobErrorUnableToCreateBlob 1 #define MGK_BlobErrorUnableToObtainOffset 2 @@ -191,364 +191,367 @@ #define MGK_DelegateFatalErrorDefault 184 #define MGK_DelegateWarningDefault 185 #define MGK_DrawErrorAlreadyPushingPatternDefinition 186 -#define MGK_DrawErrorNonconformingDrawingPrimitiveDefinition 187 -#define MGK_DrawErrorTooManyCoordinates 188 -#define MGK_DrawErrorUnableToPrint 189 -#define MGK_DrawErrorUnbalancedGraphicContextPushPop 190 -#define MGK_DrawFatalErrorDefault 191 -#define MGK_DrawWarningNotARelativeURL 192 -#define MGK_DrawWarningNotCurrentlyPushingPatternDefinition 193 -#define MGK_DrawWarningURLNotFound 194 -#define MGK_FileOpenErrorUnableToCreateTemporaryFile 195 -#define MGK_FileOpenErrorUnableToOpenFile 196 -#define MGK_FileOpenErrorUnableToWriteFile 197 -#define MGK_FileOpenFatalErrorDefault 198 -#define MGK_FileOpenWarningDefault 199 -#define MGK_ImageErrorAngleIsDiscontinuous 200 -#define MGK_ImageErrorColorspaceColorProfileMismatch 201 -#define MGK_ImageErrorImageColorspaceDiffers 202 -#define MGK_ImageErrorImageColorspaceMismatch 203 -#define MGK_ImageErrorImageDifferenceExceedsLimit 204 -#define MGK_ImageErrorImageDoesNotContainResolution 205 -#define MGK_ImageErrorImageOpacityDiffers 206 -#define MGK_ImageErrorImageSequenceIsRequired 207 -#define MGK_ImageErrorImageSizeDiffers 208 -#define MGK_ImageErrorInvalidColormapIndex 209 -#define MGK_ImageErrorLeftAndRightImageSizesDiffer 210 -#define MGK_ImageErrorNoImagesWereFound 211 -#define MGK_ImageErrorNoImagesWereLoaded 212 -#define MGK_ImageErrorNoLocaleImageAttribute 213 -#define MGK_ImageErrorTooManyClusters 214 -#define MGK_ImageErrorUnableToAppendImage 215 -#define MGK_ImageErrorUnableToAssignProfile 216 -#define MGK_ImageErrorUnableToAverageImage 217 -#define MGK_ImageErrorUnableToCoalesceImage 218 -#define MGK_ImageErrorUnableToCompareImages 219 -#define MGK_ImageErrorUnableToCreateImageMosaic 220 -#define MGK_ImageErrorUnableToCreateStereoImage 221 -#define MGK_ImageErrorUnableToDeconstructImageSequence 222 -#define MGK_ImageErrorUnableToFlattenImage 223 -#define MGK_ImageErrorUnableToGetClipMask 224 -#define MGK_ImageErrorUnableToHandleImageChannel 225 -#define MGK_ImageErrorUnableToResizeImage 226 -#define MGK_ImageErrorUnableToSegmentImage 227 -#define MGK_ImageErrorUnableToSetClipMask 228 -#define MGK_ImageErrorUnableToShearImage 229 -#define MGK_ImageErrorWidthOrHeightExceedsLimit 230 -#define MGK_ImageFatalErrorUnableToPersistKey 231 -#define MGK_ImageWarningDefault 232 -#define MGK_MissingDelegateErrorDPSLibraryIsNotAvailable 233 -#define MGK_MissingDelegateErrorFPXLibraryIsNotAvailable 234 -#define MGK_MissingDelegateErrorFreeTypeLibraryIsNotAvailable 235 -#define MGK_MissingDelegateErrorJPEGLibraryIsNotAvailable 236 -#define MGK_MissingDelegateErrorLCMSLibraryIsNotAvailable 237 -#define MGK_MissingDelegateErrorLZWEncodingNotEnabled 238 -#define MGK_MissingDelegateErrorNoDecodeDelegateForThisImageFormat 239 -#define MGK_MissingDelegateErrorNoEncodeDelegateForThisImageFormat 240 -#define MGK_MissingDelegateErrorTIFFLibraryIsNotAvailable 241 -#define MGK_MissingDelegateErrorXMLLibraryIsNotAvailable 242 -#define MGK_MissingDelegateErrorXWindowLibraryIsNotAvailable 243 -#define MGK_MissingDelegateErrorZipLibraryIsNotAvailable 244 -#define MGK_MissingDelegateFatalErrorDefault 245 -#define MGK_MissingDelegateWarningDefault 246 -#define MGK_ModuleErrorFailedToCloseModule 247 -#define MGK_ModuleErrorFailedToFindSymbol 248 -#define MGK_ModuleErrorUnableToLoadModule 249 -#define MGK_ModuleErrorUnableToRegisterImageFormat 250 -#define MGK_ModuleErrorUnrecognizedModule 251 -#define MGK_ModuleFatalErrorUnableToInitializeModuleLoader 252 -#define MGK_ModuleWarningDefault 253 -#define MGK_MonitorErrorDefault 254 -#define MGK_MonitorFatalErrorDefault 255 -#define MGK_MonitorFatalErrorUserRequestedTerminationBySignal 256 -#define MGK_MonitorWarningDefault 257 -#define MGK_OptionErrorBevelWidthIsNegative 258 -#define MGK_OptionErrorColorSeparatedImageRequired 259 -#define MGK_OptionErrorFrameIsLessThanImageSize 260 -#define MGK_OptionErrorGeometryDimensionsAreZero 261 -#define MGK_OptionErrorGeometryDoesNotContainImage 262 -#define MGK_OptionErrorHaldClutImageDimensionsInvalid 263 -#define MGK_OptionErrorImagesAreNotTheSameSize 264 -#define MGK_OptionErrorImageSizeMustExceedBevelWidth 265 -#define MGK_OptionErrorImageSmallerThanKernelWidth 266 -#define MGK_OptionErrorImageSmallerThanRadius 267 -#define MGK_OptionErrorImageWidthsOrHeightsDiffer 268 -#define MGK_OptionErrorInputImagesAlreadySpecified 269 -#define MGK_OptionErrorInvalidSubimageSpecification 270 -#define MGK_OptionErrorKernelRadiusIsTooSmall 271 -#define MGK_OptionErrorKernelWidthMustBeAnOddNumber 272 -#define MGK_OptionErrorMatrixIsNotSquare 273 -#define MGK_OptionErrorMatrixOrderOutOfRange 274 -#define MGK_OptionErrorMissingAnImageFilename 275 -#define MGK_OptionErrorMissingArgument 276 -#define MGK_OptionErrorMustSpecifyAnImageName 277 -#define MGK_OptionErrorMustSpecifyImageSize 278 -#define MGK_OptionErrorNoBlobDefined 279 -#define MGK_OptionErrorNoImagesDefined 280 -#define MGK_OptionErrorNonzeroWidthAndHeightRequired 281 -#define MGK_OptionErrorNoProfileNameWasGiven 282 -#define MGK_OptionErrorNullBlobArgument 283 -#define MGK_OptionErrorReferenceImageRequired 284 -#define MGK_OptionErrorReferenceIsNotMyType 285 -#define MGK_OptionErrorRegionAreaExceedsLimit 286 -#define MGK_OptionErrorRequestDidNotReturnAnImage 287 -#define MGK_OptionErrorSteganoImageRequired 288 -#define MGK_OptionErrorStereoImageRequired 289 -#define MGK_OptionErrorSubimageSpecificationReturnsNoImages 290 -#define MGK_OptionErrorUnableToAddOrRemoveProfile 291 -#define MGK_OptionErrorUnableToAverageImageSequence 292 -#define MGK_OptionErrorUnableToBlurImage 293 -#define MGK_OptionErrorUnableToChopImage 294 -#define MGK_OptionErrorUnableToColorMatrixImage 295 -#define MGK_OptionErrorUnableToConstituteImage 296 -#define MGK_OptionErrorUnableToConvolveImage 297 -#define MGK_OptionErrorUnableToEdgeImage 298 -#define MGK_OptionErrorUnableToEqualizeImage 299 -#define MGK_OptionErrorUnableToFilterImage 300 -#define MGK_OptionErrorUnableToFormatImageMetadata 301 -#define MGK_OptionErrorUnableToFrameImage 302 -#define MGK_OptionErrorUnableToOilPaintImage 303 -#define MGK_OptionErrorUnableToPaintImage 304 -#define MGK_OptionErrorUnableToRaiseImage 305 -#define MGK_OptionErrorUnableToSharpenImage 306 -#define MGK_OptionErrorUnableToThresholdImage 307 -#define MGK_OptionErrorUnableToWaveImage 308 -#define MGK_OptionErrorUnrecognizedAttribute 309 -#define MGK_OptionErrorUnrecognizedChannelType 310 -#define MGK_OptionErrorUnrecognizedColor 311 -#define MGK_OptionErrorUnrecognizedColormapType 312 -#define MGK_OptionErrorUnrecognizedColorspace 313 -#define MGK_OptionErrorUnrecognizedCommand 314 -#define MGK_OptionErrorUnrecognizedComposeOperator 315 -#define MGK_OptionErrorUnrecognizedDisposeMethod 316 -#define MGK_OptionErrorUnrecognizedElement 317 -#define MGK_OptionErrorUnrecognizedEndianType 318 -#define MGK_OptionErrorUnrecognizedGravityType 319 -#define MGK_OptionErrorUnrecognizedHighlightStyle 320 -#define MGK_OptionErrorUnrecognizedImageCompression 321 -#define MGK_OptionErrorUnrecognizedImageFilter 322 -#define MGK_OptionErrorUnrecognizedImageFormat 323 -#define MGK_OptionErrorUnrecognizedImageMode 324 -#define MGK_OptionErrorUnrecognizedImageType 325 -#define MGK_OptionErrorUnrecognizedIntentType 326 -#define MGK_OptionErrorUnrecognizedInterlaceType 327 -#define MGK_OptionErrorUnrecognizedListType 328 -#define MGK_OptionErrorUnrecognizedMetric 329 -#define MGK_OptionErrorUnrecognizedModeType 330 -#define MGK_OptionErrorUnrecognizedNoiseType 331 -#define MGK_OptionErrorUnrecognizedOperator 332 -#define MGK_OptionErrorUnrecognizedOption 333 -#define MGK_OptionErrorUnrecognizedPerlMagickMethod 334 -#define MGK_OptionErrorUnrecognizedPixelMap 335 -#define MGK_OptionErrorUnrecognizedPreviewType 336 -#define MGK_OptionErrorUnrecognizedResourceType 337 -#define MGK_OptionErrorUnrecognizedType 338 -#define MGK_OptionErrorUnrecognizedUnitsType 339 -#define MGK_OptionErrorUnrecognizedVirtualPixelMethod 340 -#define MGK_OptionErrorUnsupportedSamplingFactor 341 -#define MGK_OptionErrorUsageError 342 -#define MGK_OptionFatalErrorInvalidColorspaceType 343 -#define MGK_OptionFatalErrorInvalidEndianType 344 -#define MGK_OptionFatalErrorInvalidImageType 345 -#define MGK_OptionFatalErrorInvalidInterlaceType 346 -#define MGK_OptionFatalErrorMissingAnImageFilename 347 -#define MGK_OptionFatalErrorMissingArgument 348 -#define MGK_OptionFatalErrorNoImagesWereLoaded 349 -#define MGK_OptionFatalErrorOptionLengthExceedsLimit 350 -#define MGK_OptionFatalErrorRequestDidNotReturnAnImage 351 -#define MGK_OptionFatalErrorUnableToOpenXServer 352 -#define MGK_OptionFatalErrorUnableToPersistKey 353 -#define MGK_OptionFatalErrorUnrecognizedColormapType 354 -#define MGK_OptionFatalErrorUnrecognizedColorspaceType 355 -#define MGK_OptionFatalErrorUnrecognizedDisposeMethod 356 -#define MGK_OptionFatalErrorUnrecognizedEndianType 357 -#define MGK_OptionFatalErrorUnrecognizedFilterType 358 -#define MGK_OptionFatalErrorUnrecognizedImageCompressionType 359 -#define MGK_OptionFatalErrorUnrecognizedImageType 360 -#define MGK_OptionFatalErrorUnrecognizedInterlaceType 361 -#define MGK_OptionFatalErrorUnrecognizedOption 362 -#define MGK_OptionFatalErrorUnrecognizedResourceType 363 -#define MGK_OptionFatalErrorUnrecognizedVirtualPixelMethod 364 -#define MGK_OptionWarningUnrecognizedColor 365 -#define MGK_RegistryErrorImageExpected 366 -#define MGK_RegistryErrorImageInfoExpected 367 -#define MGK_RegistryErrorStructureSizeMismatch 368 -#define MGK_RegistryErrorUnableToGetRegistryID 369 -#define MGK_RegistryErrorUnableToLocateImage 370 -#define MGK_RegistryErrorUnableToSetRegistry 371 -#define MGK_RegistryFatalErrorDefault 372 -#define MGK_RegistryWarningDefault 373 -#define MGK_ResourceLimitErrorCacheResourcesExhausted 374 -#define MGK_ResourceLimitErrorImagePixelHeightLimitExceeded 375 -#define MGK_ResourceLimitErrorImagePixelLimitExceeded 376 -#define MGK_ResourceLimitErrorImagePixelWidthLimitExceeded 377 -#define MGK_ResourceLimitErrorMemoryAllocationFailed 378 -#define MGK_ResourceLimitErrorNoPixelsDefinedInCache 379 -#define MGK_ResourceLimitErrorPixelCacheAllocationFailed 380 -#define MGK_ResourceLimitErrorUnableToAddColorProfile 381 -#define MGK_ResourceLimitErrorUnableToAddGenericProfile 382 -#define MGK_ResourceLimitErrorUnableToAddIPTCProfile 383 -#define MGK_ResourceLimitErrorUnableToAllocateCoefficients 384 -#define MGK_ResourceLimitErrorUnableToAllocateColormap 385 -#define MGK_ResourceLimitErrorUnableToAllocateICCProfile 386 -#define MGK_ResourceLimitErrorUnableToAllocateString 387 -#define MGK_ResourceLimitErrorUnableToAnnotateImage 388 -#define MGK_ResourceLimitErrorUnableToAverageImageSequence 389 -#define MGK_ResourceLimitErrorUnableToCloneDrawingWand 390 -#define MGK_ResourceLimitErrorUnableToCloneImage 391 -#define MGK_ResourceLimitErrorUnableToComputeImageSignature 392 -#define MGK_ResourceLimitErrorUnableToConstituteImage 393 -#define MGK_ResourceLimitErrorUnableToConvertFont 394 -#define MGK_ResourceLimitErrorUnableToConvertStringToTokens 395 -#define MGK_ResourceLimitErrorUnableToCreateColormap 396 -#define MGK_ResourceLimitErrorUnableToCreateColorTransform 397 -#define MGK_ResourceLimitErrorUnableToCreateCommandWidget 398 -#define MGK_ResourceLimitErrorUnableToCreateImageGroup 399 -#define MGK_ResourceLimitErrorUnableToCreateImageMontage 400 -#define MGK_ResourceLimitErrorUnableToCreateXWindow 401 -#define MGK_ResourceLimitErrorUnableToCropImage 402 -#define MGK_ResourceLimitErrorUnableToDespeckleImage 403 -#define MGK_ResourceLimitErrorUnableToDetermineImageClass 404 -#define MGK_ResourceLimitErrorUnableToDetermineTheNumberOfImageColors 405 -#define MGK_ResourceLimitErrorUnableToDitherImage 406 -#define MGK_ResourceLimitErrorUnableToDrawOnImage 407 -#define MGK_ResourceLimitErrorUnableToEdgeImage 408 -#define MGK_ResourceLimitErrorUnableToEmbossImage 409 -#define MGK_ResourceLimitErrorUnableToEnhanceImage 410 -#define MGK_ResourceLimitErrorUnableToFloodfillImage 411 -#define MGK_ResourceLimitErrorUnableToGammaCorrectImage 412 -#define MGK_ResourceLimitErrorUnableToGetBestIconSize 413 -#define MGK_ResourceLimitErrorUnableToGetFromRegistry 414 -#define MGK_ResourceLimitErrorUnableToGetPackageInfo 415 -#define MGK_ResourceLimitErrorUnableToLevelImage 416 -#define MGK_ResourceLimitErrorUnableToMagnifyImage 417 -#define MGK_ResourceLimitErrorUnableToManageColor 418 -#define MGK_ResourceLimitErrorUnableToMapImage 419 -#define MGK_ResourceLimitErrorUnableToMapImageSequence 420 -#define MGK_ResourceLimitErrorUnableToMedianFilterImage 421 -#define MGK_ResourceLimitErrorUnableToMotionBlurImage 422 -#define MGK_ResourceLimitErrorUnableToNoiseFilterImage 423 -#define MGK_ResourceLimitErrorUnableToNormalizeImage 424 -#define MGK_ResourceLimitErrorUnableToOpenColorProfile 425 -#define MGK_ResourceLimitErrorUnableToQuantizeImage 426 -#define MGK_ResourceLimitErrorUnableToQuantizeImageSequence 427 -#define MGK_ResourceLimitErrorUnableToReadTextChunk 428 -#define MGK_ResourceLimitErrorUnableToReadXImage 429 -#define MGK_ResourceLimitErrorUnableToReadXServerColormap 430 -#define MGK_ResourceLimitErrorUnableToResizeImage 431 -#define MGK_ResourceLimitErrorUnableToRotateImage 432 -#define MGK_ResourceLimitErrorUnableToSampleImage 433 -#define MGK_ResourceLimitErrorUnableToScaleImage 434 -#define MGK_ResourceLimitErrorUnableToSelectImage 435 -#define MGK_ResourceLimitErrorUnableToSharpenImage 436 -#define MGK_ResourceLimitErrorUnableToShaveImage 437 -#define MGK_ResourceLimitErrorUnableToShearImage 438 -#define MGK_ResourceLimitErrorUnableToSortImageColormap 439 -#define MGK_ResourceLimitErrorUnableToThresholdImage 440 -#define MGK_ResourceLimitErrorUnableToTransformColorspace 441 -#define MGK_ResourceLimitFatalErrorMemoryAllocationFailed 442 -#define MGK_ResourceLimitFatalErrorSemaporeOperationFailed 443 -#define MGK_ResourceLimitFatalErrorUnableToAllocateAscii85Info 444 -#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheInfo 445 -#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheView 446 -#define MGK_ResourceLimitFatalErrorUnableToAllocateColorInfo 447 -#define MGK_ResourceLimitFatalErrorUnableToAllocateDashPattern 448 -#define MGK_ResourceLimitFatalErrorUnableToAllocateDelegateInfo 449 -#define MGK_ResourceLimitFatalErrorUnableToAllocateDerivatives 450 -#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawContext 451 -#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawInfo 452 -#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawingWand 453 -#define MGK_ResourceLimitFatalErrorUnableToAllocateGammaMap 454 -#define MGK_ResourceLimitFatalErrorUnableToAllocateImage 455 -#define MGK_ResourceLimitFatalErrorUnableToAllocateImagePixels 456 -#define MGK_ResourceLimitFatalErrorUnableToAllocateLogInfo 457 -#define MGK_ResourceLimitFatalErrorUnableToAllocateMagicInfo 458 -#define MGK_ResourceLimitFatalErrorUnableToAllocateMagickInfo 459 -#define MGK_ResourceLimitFatalErrorUnableToAllocateModuleInfo 460 -#define MGK_ResourceLimitFatalErrorUnableToAllocateMontageInfo 461 -#define MGK_ResourceLimitFatalErrorUnableToAllocateQuantizeInfo 462 -#define MGK_ResourceLimitFatalErrorUnableToAllocateRandomKernel 463 -#define MGK_ResourceLimitFatalErrorUnableToAllocateRegistryInfo 464 -#define MGK_ResourceLimitFatalErrorUnableToAllocateSemaphoreInfo 465 -#define MGK_ResourceLimitFatalErrorUnableToAllocateString 466 -#define MGK_ResourceLimitFatalErrorUnableToAllocateTypeInfo 467 -#define MGK_ResourceLimitFatalErrorUnableToAllocateWand 468 -#define MGK_ResourceLimitFatalErrorUnableToAnimateImageSequence 469 -#define MGK_ResourceLimitFatalErrorUnableToCloneBlobInfo 470 -#define MGK_ResourceLimitFatalErrorUnableToCloneCacheInfo 471 -#define MGK_ResourceLimitFatalErrorUnableToCloneImage 472 -#define MGK_ResourceLimitFatalErrorUnableToCloneImageInfo 473 -#define MGK_ResourceLimitFatalErrorUnableToConcatenateString 474 -#define MGK_ResourceLimitFatalErrorUnableToConvertText 475 -#define MGK_ResourceLimitFatalErrorUnableToCreateColormap 476 -#define MGK_ResourceLimitFatalErrorUnableToDestroySemaphore 477 -#define MGK_ResourceLimitFatalErrorUnableToDisplayImage 478 -#define MGK_ResourceLimitFatalErrorUnableToEscapeString 479 -#define MGK_ResourceLimitFatalErrorUnableToInitializeSemaphore 480 -#define MGK_ResourceLimitFatalErrorUnableToInterpretMSLImage 481 -#define MGK_ResourceLimitFatalErrorUnableToLockSemaphore 482 -#define MGK_ResourceLimitFatalErrorUnableToObtainRandomEntropy 483 -#define MGK_ResourceLimitFatalErrorUnableToUnlockSemaphore 484 -#define MGK_ResourceLimitWarningMemoryAllocationFailed 485 -#define MGK_StreamErrorImageDoesNotContainTheStreamGeometry 486 -#define MGK_StreamErrorNoStreamHandlerIsDefined 487 -#define MGK_StreamErrorPixelCacheIsNotOpen 488 -#define MGK_StreamErrorUnableToAcquirePixelStream 489 -#define MGK_StreamErrorUnableToSetPixelStream 490 -#define MGK_StreamErrorUnableToSyncPixelStream 491 -#define MGK_StreamFatalErrorDefault 492 -#define MGK_StreamWarningDefault 493 -#define MGK_TypeErrorFontSubstitutionRequired 494 -#define MGK_TypeErrorUnableToGetTypeMetrics 495 -#define MGK_TypeErrorUnableToInitializeFreetypeLibrary 496 -#define MGK_TypeErrorUnableToReadFont 497 -#define MGK_TypeErrorUnrecognizedFontEncoding 498 -#define MGK_TypeFatalErrorDefault 499 -#define MGK_TypeWarningDefault 500 -#define MGK_WandErrorInvalidColormapIndex 501 -#define MGK_WandErrorWandAPINotImplemented 502 -#define MGK_WandErrorWandContainsNoImageIndexs 503 -#define MGK_WandErrorWandContainsNoImages 504 -#define MGK_XServerErrorColorIsNotKnownToServer 505 -#define MGK_XServerErrorNoWindowWithSpecifiedIDExists 506 -#define MGK_XServerErrorStandardColormapIsNotInitialized 507 -#define MGK_XServerErrorUnableToConnectToRemoteDisplay 508 -#define MGK_XServerErrorUnableToCreateBitmap 509 -#define MGK_XServerErrorUnableToCreateColormap 510 -#define MGK_XServerErrorUnableToCreatePixmap 511 -#define MGK_XServerErrorUnableToCreateProperty 512 -#define MGK_XServerErrorUnableToCreateStandardColormap 513 -#define MGK_XServerErrorUnableToDisplayImageInfo 514 -#define MGK_XServerErrorUnableToGetProperty 515 -#define MGK_XServerErrorUnableToGetStandardColormap 516 -#define MGK_XServerErrorUnableToGetVisual 517 -#define MGK_XServerErrorUnableToGrabMouse 518 -#define MGK_XServerErrorUnableToLoadFont 519 -#define MGK_XServerErrorUnableToMatchVisualToStandardColormap 520 -#define MGK_XServerErrorUnableToOpenXServer 521 -#define MGK_XServerErrorUnableToReadXAttributes 522 -#define MGK_XServerErrorUnableToReadXWindowImage 523 -#define MGK_XServerErrorUnrecognizedColormapType 524 -#define MGK_XServerErrorUnrecognizedGravityType 525 -#define MGK_XServerErrorUnrecognizedVisualSpecifier 526 -#define MGK_XServerFatalErrorUnableToAllocateXHints 527 -#define MGK_XServerFatalErrorUnableToCreateCursor 528 -#define MGK_XServerFatalErrorUnableToCreateGraphicContext 529 -#define MGK_XServerFatalErrorUnableToCreateStandardColormap 530 -#define MGK_XServerFatalErrorUnableToCreateTextProperty 531 -#define MGK_XServerFatalErrorUnableToCreateXImage 532 -#define MGK_XServerFatalErrorUnableToCreateXPixmap 533 -#define MGK_XServerFatalErrorUnableToCreateXWindow 534 -#define MGK_XServerFatalErrorUnableToDisplayImage 535 -#define MGK_XServerFatalErrorUnableToDitherImage 536 -#define MGK_XServerFatalErrorUnableToGetPixelInfo 537 -#define MGK_XServerFatalErrorUnableToGetVisual 538 -#define MGK_XServerFatalErrorUnableToLoadFont 539 -#define MGK_XServerFatalErrorUnableToMakeXWindow 540 -#define MGK_XServerFatalErrorUnableToOpenXServer 541 -#define MGK_XServerFatalErrorUnableToViewFonts 542 -#define MGK_XServerWarningUnableToGetVisual 543 -#define MGK_XServerWarningUsingDefaultVisual 544 +#define MGK_DrawErrorFloatValueConversionError 187 +#define MGK_DrawErrorIntegerValueConversionError 188 +#define MGK_DrawErrorNonconformingDrawingPrimitiveDefinition 189 +#define MGK_DrawErrorTooManyCoordinates 190 +#define MGK_DrawErrorUnableToPrint 191 +#define MGK_DrawErrorUnbalancedGraphicContextPushPop 192 +#define MGK_DrawErrorVectorPathTruncated 193 +#define MGK_DrawFatalErrorDefault 194 +#define MGK_DrawWarningNotARelativeURL 195 +#define MGK_DrawWarningNotCurrentlyPushingPatternDefinition 196 +#define MGK_DrawWarningURLNotFound 197 +#define MGK_FileOpenErrorUnableToCreateTemporaryFile 198 +#define MGK_FileOpenErrorUnableToOpenFile 199 +#define MGK_FileOpenErrorUnableToWriteFile 200 +#define MGK_FileOpenFatalErrorDefault 201 +#define MGK_FileOpenWarningDefault 202 +#define MGK_ImageErrorAngleIsDiscontinuous 203 +#define MGK_ImageErrorColorspaceColorProfileMismatch 204 +#define MGK_ImageErrorImageColorspaceDiffers 205 +#define MGK_ImageErrorImageColorspaceMismatch 206 +#define MGK_ImageErrorImageDifferenceExceedsLimit 207 +#define MGK_ImageErrorImageDoesNotContainResolution 208 +#define MGK_ImageErrorImageOpacityDiffers 209 +#define MGK_ImageErrorImageSequenceIsRequired 210 +#define MGK_ImageErrorImageSizeDiffers 211 +#define MGK_ImageErrorInvalidColormapIndex 212 +#define MGK_ImageErrorLeftAndRightImageSizesDiffer 213 +#define MGK_ImageErrorNoImagesWereFound 214 +#define MGK_ImageErrorNoImagesWereLoaded 215 +#define MGK_ImageErrorNoLocaleImageAttribute 216 +#define MGK_ImageErrorTooManyClusters 217 +#define MGK_ImageErrorUnableToAppendImage 218 +#define MGK_ImageErrorUnableToAssignProfile 219 +#define MGK_ImageErrorUnableToAverageImage 220 +#define MGK_ImageErrorUnableToCoalesceImage 221 +#define MGK_ImageErrorUnableToCompareImages 222 +#define MGK_ImageErrorUnableToCreateImageMosaic 223 +#define MGK_ImageErrorUnableToCreateStereoImage 224 +#define MGK_ImageErrorUnableToDeconstructImageSequence 225 +#define MGK_ImageErrorUnableToFlattenImage 226 +#define MGK_ImageErrorUnableToGetClipMask 227 +#define MGK_ImageErrorUnableToHandleImageChannel 228 +#define MGK_ImageErrorUnableToResizeImage 229 +#define MGK_ImageErrorUnableToSegmentImage 230 +#define MGK_ImageErrorUnableToSetClipMask 231 +#define MGK_ImageErrorUnableToShearImage 232 +#define MGK_ImageErrorWidthOrHeightExceedsLimit 233 +#define MGK_ImageFatalErrorUnableToPersistKey 234 +#define MGK_ImageWarningDefault 235 +#define MGK_MissingDelegateErrorDPSLibraryIsNotAvailable 236 +#define MGK_MissingDelegateErrorFPXLibraryIsNotAvailable 237 +#define MGK_MissingDelegateErrorFreeTypeLibraryIsNotAvailable 238 +#define MGK_MissingDelegateErrorJPEGLibraryIsNotAvailable 239 +#define MGK_MissingDelegateErrorLCMSLibraryIsNotAvailable 240 +#define MGK_MissingDelegateErrorLZWEncodingNotEnabled 241 +#define MGK_MissingDelegateErrorNoDecodeDelegateForThisImageFormat 242 +#define MGK_MissingDelegateErrorNoEncodeDelegateForThisImageFormat 243 +#define MGK_MissingDelegateErrorTIFFLibraryIsNotAvailable 244 +#define MGK_MissingDelegateErrorXMLLibraryIsNotAvailable 245 +#define MGK_MissingDelegateErrorXWindowLibraryIsNotAvailable 246 +#define MGK_MissingDelegateErrorZipLibraryIsNotAvailable 247 +#define MGK_MissingDelegateFatalErrorDefault 248 +#define MGK_MissingDelegateWarningDefault 249 +#define MGK_ModuleErrorFailedToCloseModule 250 +#define MGK_ModuleErrorFailedToFindSymbol 251 +#define MGK_ModuleErrorUnableToLoadModule 252 +#define MGK_ModuleErrorUnableToRegisterImageFormat 253 +#define MGK_ModuleErrorUnrecognizedModule 254 +#define MGK_ModuleFatalErrorUnableToInitializeModuleLoader 255 +#define MGK_ModuleWarningDefault 256 +#define MGK_MonitorErrorDefault 257 +#define MGK_MonitorFatalErrorDefault 258 +#define MGK_MonitorFatalErrorUserRequestedTerminationBySignal 259 +#define MGK_MonitorWarningDefault 260 +#define MGK_OptionErrorBevelWidthIsNegative 261 +#define MGK_OptionErrorColorSeparatedImageRequired 262 +#define MGK_OptionErrorFrameIsLessThanImageSize 263 +#define MGK_OptionErrorGeometryDimensionsAreZero 264 +#define MGK_OptionErrorGeometryDoesNotContainImage 265 +#define MGK_OptionErrorHaldClutImageDimensionsInvalid 266 +#define MGK_OptionErrorImagesAreNotTheSameSize 267 +#define MGK_OptionErrorImageSizeMustExceedBevelWidth 268 +#define MGK_OptionErrorImageSmallerThanKernelWidth 269 +#define MGK_OptionErrorImageSmallerThanRadius 270 +#define MGK_OptionErrorImageWidthsOrHeightsDiffer 271 +#define MGK_OptionErrorInputImagesAlreadySpecified 272 +#define MGK_OptionErrorInvalidSubimageSpecification 273 +#define MGK_OptionErrorKernelRadiusIsTooSmall 274 +#define MGK_OptionErrorKernelWidthMustBeAnOddNumber 275 +#define MGK_OptionErrorMatrixIsNotSquare 276 +#define MGK_OptionErrorMatrixOrderOutOfRange 277 +#define MGK_OptionErrorMissingAnImageFilename 278 +#define MGK_OptionErrorMissingArgument 279 +#define MGK_OptionErrorMustSpecifyAnImageName 280 +#define MGK_OptionErrorMustSpecifyImageSize 281 +#define MGK_OptionErrorNoBlobDefined 282 +#define MGK_OptionErrorNoImagesDefined 283 +#define MGK_OptionErrorNonzeroWidthAndHeightRequired 284 +#define MGK_OptionErrorNoProfileNameWasGiven 285 +#define MGK_OptionErrorNullBlobArgument 286 +#define MGK_OptionErrorReferenceImageRequired 287 +#define MGK_OptionErrorReferenceIsNotMyType 288 +#define MGK_OptionErrorRegionAreaExceedsLimit 289 +#define MGK_OptionErrorRequestDidNotReturnAnImage 290 +#define MGK_OptionErrorSteganoImageRequired 291 +#define MGK_OptionErrorStereoImageRequired 292 +#define MGK_OptionErrorSubimageSpecificationReturnsNoImages 293 +#define MGK_OptionErrorUnableToAddOrRemoveProfile 294 +#define MGK_OptionErrorUnableToAverageImageSequence 295 +#define MGK_OptionErrorUnableToBlurImage 296 +#define MGK_OptionErrorUnableToChopImage 297 +#define MGK_OptionErrorUnableToColorMatrixImage 298 +#define MGK_OptionErrorUnableToConstituteImage 299 +#define MGK_OptionErrorUnableToConvolveImage 300 +#define MGK_OptionErrorUnableToEdgeImage 301 +#define MGK_OptionErrorUnableToEqualizeImage 302 +#define MGK_OptionErrorUnableToFilterImage 303 +#define MGK_OptionErrorUnableToFormatImageMetadata 304 +#define MGK_OptionErrorUnableToFrameImage 305 +#define MGK_OptionErrorUnableToOilPaintImage 306 +#define MGK_OptionErrorUnableToPaintImage 307 +#define MGK_OptionErrorUnableToRaiseImage 308 +#define MGK_OptionErrorUnableToSharpenImage 309 +#define MGK_OptionErrorUnableToThresholdImage 310 +#define MGK_OptionErrorUnableToWaveImage 311 +#define MGK_OptionErrorUnrecognizedAttribute 312 +#define MGK_OptionErrorUnrecognizedChannelType 313 +#define MGK_OptionErrorUnrecognizedColor 314 +#define MGK_OptionErrorUnrecognizedColormapType 315 +#define MGK_OptionErrorUnrecognizedColorspace 316 +#define MGK_OptionErrorUnrecognizedCommand 317 +#define MGK_OptionErrorUnrecognizedComposeOperator 318 +#define MGK_OptionErrorUnrecognizedDisposeMethod 319 +#define MGK_OptionErrorUnrecognizedElement 320 +#define MGK_OptionErrorUnrecognizedEndianType 321 +#define MGK_OptionErrorUnrecognizedGravityType 322 +#define MGK_OptionErrorUnrecognizedHighlightStyle 323 +#define MGK_OptionErrorUnrecognizedImageCompression 324 +#define MGK_OptionErrorUnrecognizedImageFilter 325 +#define MGK_OptionErrorUnrecognizedImageFormat 326 +#define MGK_OptionErrorUnrecognizedImageMode 327 +#define MGK_OptionErrorUnrecognizedImageType 328 +#define MGK_OptionErrorUnrecognizedIntentType 329 +#define MGK_OptionErrorUnrecognizedInterlaceType 330 +#define MGK_OptionErrorUnrecognizedListType 331 +#define MGK_OptionErrorUnrecognizedMetric 332 +#define MGK_OptionErrorUnrecognizedModeType 333 +#define MGK_OptionErrorUnrecognizedNoiseType 334 +#define MGK_OptionErrorUnrecognizedOperator 335 +#define MGK_OptionErrorUnrecognizedOption 336 +#define MGK_OptionErrorUnrecognizedPerlMagickMethod 337 +#define MGK_OptionErrorUnrecognizedPixelMap 338 +#define MGK_OptionErrorUnrecognizedPreviewType 339 +#define MGK_OptionErrorUnrecognizedResourceType 340 +#define MGK_OptionErrorUnrecognizedType 341 +#define MGK_OptionErrorUnrecognizedUnitsType 342 +#define MGK_OptionErrorUnrecognizedVirtualPixelMethod 343 +#define MGK_OptionErrorUnsupportedSamplingFactor 344 +#define MGK_OptionErrorUsageError 345 +#define MGK_OptionFatalErrorInvalidColorspaceType 346 +#define MGK_OptionFatalErrorInvalidEndianType 347 +#define MGK_OptionFatalErrorInvalidImageType 348 +#define MGK_OptionFatalErrorInvalidInterlaceType 349 +#define MGK_OptionFatalErrorMissingAnImageFilename 350 +#define MGK_OptionFatalErrorMissingArgument 351 +#define MGK_OptionFatalErrorNoImagesWereLoaded 352 +#define MGK_OptionFatalErrorOptionLengthExceedsLimit 353 +#define MGK_OptionFatalErrorRequestDidNotReturnAnImage 354 +#define MGK_OptionFatalErrorUnableToOpenXServer 355 +#define MGK_OptionFatalErrorUnableToPersistKey 356 +#define MGK_OptionFatalErrorUnrecognizedColormapType 357 +#define MGK_OptionFatalErrorUnrecognizedColorspaceType 358 +#define MGK_OptionFatalErrorUnrecognizedDisposeMethod 359 +#define MGK_OptionFatalErrorUnrecognizedEndianType 360 +#define MGK_OptionFatalErrorUnrecognizedFilterType 361 +#define MGK_OptionFatalErrorUnrecognizedImageCompressionType 362 +#define MGK_OptionFatalErrorUnrecognizedImageType 363 +#define MGK_OptionFatalErrorUnrecognizedInterlaceType 364 +#define MGK_OptionFatalErrorUnrecognizedOption 365 +#define MGK_OptionFatalErrorUnrecognizedResourceType 366 +#define MGK_OptionFatalErrorUnrecognizedVirtualPixelMethod 367 +#define MGK_OptionWarningUnrecognizedColor 368 +#define MGK_RegistryErrorImageExpected 369 +#define MGK_RegistryErrorImageInfoExpected 370 +#define MGK_RegistryErrorStructureSizeMismatch 371 +#define MGK_RegistryErrorUnableToGetRegistryID 372 +#define MGK_RegistryErrorUnableToLocateImage 373 +#define MGK_RegistryErrorUnableToSetRegistry 374 +#define MGK_RegistryFatalErrorDefault 375 +#define MGK_RegistryWarningDefault 376 +#define MGK_ResourceLimitErrorCacheResourcesExhausted 377 +#define MGK_ResourceLimitErrorImagePixelHeightLimitExceeded 378 +#define MGK_ResourceLimitErrorImagePixelLimitExceeded 379 +#define MGK_ResourceLimitErrorImagePixelWidthLimitExceeded 380 +#define MGK_ResourceLimitErrorMemoryAllocationFailed 381 +#define MGK_ResourceLimitErrorNoPixelsDefinedInCache 382 +#define MGK_ResourceLimitErrorPixelCacheAllocationFailed 383 +#define MGK_ResourceLimitErrorUnableToAddColorProfile 384 +#define MGK_ResourceLimitErrorUnableToAddGenericProfile 385 +#define MGK_ResourceLimitErrorUnableToAddIPTCProfile 386 +#define MGK_ResourceLimitErrorUnableToAllocateCoefficients 387 +#define MGK_ResourceLimitErrorUnableToAllocateColormap 388 +#define MGK_ResourceLimitErrorUnableToAllocateICCProfile 389 +#define MGK_ResourceLimitErrorUnableToAllocateString 390 +#define MGK_ResourceLimitErrorUnableToAnnotateImage 391 +#define MGK_ResourceLimitErrorUnableToAverageImageSequence 392 +#define MGK_ResourceLimitErrorUnableToCloneDrawingWand 393 +#define MGK_ResourceLimitErrorUnableToCloneImage 394 +#define MGK_ResourceLimitErrorUnableToComputeImageSignature 395 +#define MGK_ResourceLimitErrorUnableToConstituteImage 396 +#define MGK_ResourceLimitErrorUnableToConvertFont 397 +#define MGK_ResourceLimitErrorUnableToConvertStringToTokens 398 +#define MGK_ResourceLimitErrorUnableToCreateColormap 399 +#define MGK_ResourceLimitErrorUnableToCreateColorTransform 400 +#define MGK_ResourceLimitErrorUnableToCreateCommandWidget 401 +#define MGK_ResourceLimitErrorUnableToCreateImageGroup 402 +#define MGK_ResourceLimitErrorUnableToCreateImageMontage 403 +#define MGK_ResourceLimitErrorUnableToCreateXWindow 404 +#define MGK_ResourceLimitErrorUnableToCropImage 405 +#define MGK_ResourceLimitErrorUnableToDespeckleImage 406 +#define MGK_ResourceLimitErrorUnableToDetermineImageClass 407 +#define MGK_ResourceLimitErrorUnableToDetermineTheNumberOfImageColors 408 +#define MGK_ResourceLimitErrorUnableToDitherImage 409 +#define MGK_ResourceLimitErrorUnableToDrawOnImage 410 +#define MGK_ResourceLimitErrorUnableToEdgeImage 411 +#define MGK_ResourceLimitErrorUnableToEmbossImage 412 +#define MGK_ResourceLimitErrorUnableToEnhanceImage 413 +#define MGK_ResourceLimitErrorUnableToFloodfillImage 414 +#define MGK_ResourceLimitErrorUnableToGammaCorrectImage 415 +#define MGK_ResourceLimitErrorUnableToGetBestIconSize 416 +#define MGK_ResourceLimitErrorUnableToGetFromRegistry 417 +#define MGK_ResourceLimitErrorUnableToGetPackageInfo 418 +#define MGK_ResourceLimitErrorUnableToLevelImage 419 +#define MGK_ResourceLimitErrorUnableToMagnifyImage 420 +#define MGK_ResourceLimitErrorUnableToManageColor 421 +#define MGK_ResourceLimitErrorUnableToMapImage 422 +#define MGK_ResourceLimitErrorUnableToMapImageSequence 423 +#define MGK_ResourceLimitErrorUnableToMedianFilterImage 424 +#define MGK_ResourceLimitErrorUnableToMotionBlurImage 425 +#define MGK_ResourceLimitErrorUnableToNoiseFilterImage 426 +#define MGK_ResourceLimitErrorUnableToNormalizeImage 427 +#define MGK_ResourceLimitErrorUnableToOpenColorProfile 428 +#define MGK_ResourceLimitErrorUnableToQuantizeImage 429 +#define MGK_ResourceLimitErrorUnableToQuantizeImageSequence 430 +#define MGK_ResourceLimitErrorUnableToReadTextChunk 431 +#define MGK_ResourceLimitErrorUnableToReadXImage 432 +#define MGK_ResourceLimitErrorUnableToReadXServerColormap 433 +#define MGK_ResourceLimitErrorUnableToResizeImage 434 +#define MGK_ResourceLimitErrorUnableToRotateImage 435 +#define MGK_ResourceLimitErrorUnableToSampleImage 436 +#define MGK_ResourceLimitErrorUnableToScaleImage 437 +#define MGK_ResourceLimitErrorUnableToSelectImage 438 +#define MGK_ResourceLimitErrorUnableToSharpenImage 439 +#define MGK_ResourceLimitErrorUnableToShaveImage 440 +#define MGK_ResourceLimitErrorUnableToShearImage 441 +#define MGK_ResourceLimitErrorUnableToSortImageColormap 442 +#define MGK_ResourceLimitErrorUnableToThresholdImage 443 +#define MGK_ResourceLimitErrorUnableToTransformColorspace 444 +#define MGK_ResourceLimitFatalErrorMemoryAllocationFailed 445 +#define MGK_ResourceLimitFatalErrorSemaporeOperationFailed 446 +#define MGK_ResourceLimitFatalErrorUnableToAllocateAscii85Info 447 +#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheInfo 448 +#define MGK_ResourceLimitFatalErrorUnableToAllocateCacheView 449 +#define MGK_ResourceLimitFatalErrorUnableToAllocateColorInfo 450 +#define MGK_ResourceLimitFatalErrorUnableToAllocateDashPattern 451 +#define MGK_ResourceLimitFatalErrorUnableToAllocateDelegateInfo 452 +#define MGK_ResourceLimitFatalErrorUnableToAllocateDerivatives 453 +#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawContext 454 +#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawInfo 455 +#define MGK_ResourceLimitFatalErrorUnableToAllocateDrawingWand 456 +#define MGK_ResourceLimitFatalErrorUnableToAllocateGammaMap 457 +#define MGK_ResourceLimitFatalErrorUnableToAllocateImage 458 +#define MGK_ResourceLimitFatalErrorUnableToAllocateImagePixels 459 +#define MGK_ResourceLimitFatalErrorUnableToAllocateLogInfo 460 +#define MGK_ResourceLimitFatalErrorUnableToAllocateMagicInfo 461 +#define MGK_ResourceLimitFatalErrorUnableToAllocateMagickInfo 462 +#define MGK_ResourceLimitFatalErrorUnableToAllocateModuleInfo 463 +#define MGK_ResourceLimitFatalErrorUnableToAllocateMontageInfo 464 +#define MGK_ResourceLimitFatalErrorUnableToAllocateQuantizeInfo 465 +#define MGK_ResourceLimitFatalErrorUnableToAllocateRandomKernel 466 +#define MGK_ResourceLimitFatalErrorUnableToAllocateRegistryInfo 467 +#define MGK_ResourceLimitFatalErrorUnableToAllocateSemaphoreInfo 468 +#define MGK_ResourceLimitFatalErrorUnableToAllocateString 469 +#define MGK_ResourceLimitFatalErrorUnableToAllocateTypeInfo 470 +#define MGK_ResourceLimitFatalErrorUnableToAllocateWand 471 +#define MGK_ResourceLimitFatalErrorUnableToAnimateImageSequence 472 +#define MGK_ResourceLimitFatalErrorUnableToCloneBlobInfo 473 +#define MGK_ResourceLimitFatalErrorUnableToCloneCacheInfo 474 +#define MGK_ResourceLimitFatalErrorUnableToCloneImage 475 +#define MGK_ResourceLimitFatalErrorUnableToCloneImageInfo 476 +#define MGK_ResourceLimitFatalErrorUnableToConcatenateString 477 +#define MGK_ResourceLimitFatalErrorUnableToConvertText 478 +#define MGK_ResourceLimitFatalErrorUnableToCreateColormap 479 +#define MGK_ResourceLimitFatalErrorUnableToDestroySemaphore 480 +#define MGK_ResourceLimitFatalErrorUnableToDisplayImage 481 +#define MGK_ResourceLimitFatalErrorUnableToEscapeString 482 +#define MGK_ResourceLimitFatalErrorUnableToInitializeSemaphore 483 +#define MGK_ResourceLimitFatalErrorUnableToInterpretMSLImage 484 +#define MGK_ResourceLimitFatalErrorUnableToLockSemaphore 485 +#define MGK_ResourceLimitFatalErrorUnableToObtainRandomEntropy 486 +#define MGK_ResourceLimitFatalErrorUnableToUnlockSemaphore 487 +#define MGK_ResourceLimitWarningMemoryAllocationFailed 488 +#define MGK_StreamErrorImageDoesNotContainTheStreamGeometry 489 +#define MGK_StreamErrorNoStreamHandlerIsDefined 490 +#define MGK_StreamErrorPixelCacheIsNotOpen 491 +#define MGK_StreamErrorUnableToAcquirePixelStream 492 +#define MGK_StreamErrorUnableToSetPixelStream 493 +#define MGK_StreamErrorUnableToSyncPixelStream 494 +#define MGK_StreamFatalErrorDefault 495 +#define MGK_StreamWarningDefault 496 +#define MGK_TypeErrorFontSubstitutionRequired 497 +#define MGK_TypeErrorUnableToGetTypeMetrics 498 +#define MGK_TypeErrorUnableToInitializeFreetypeLibrary 499 +#define MGK_TypeErrorUnableToReadFont 500 +#define MGK_TypeErrorUnrecognizedFontEncoding 501 +#define MGK_TypeFatalErrorDefault 502 +#define MGK_TypeWarningDefault 503 +#define MGK_WandErrorInvalidColormapIndex 504 +#define MGK_WandErrorWandAPINotImplemented 505 +#define MGK_WandErrorWandContainsNoImageIndexs 506 +#define MGK_WandErrorWandContainsNoImages 507 +#define MGK_XServerErrorColorIsNotKnownToServer 508 +#define MGK_XServerErrorNoWindowWithSpecifiedIDExists 509 +#define MGK_XServerErrorStandardColormapIsNotInitialized 510 +#define MGK_XServerErrorUnableToConnectToRemoteDisplay 511 +#define MGK_XServerErrorUnableToCreateBitmap 512 +#define MGK_XServerErrorUnableToCreateColormap 513 +#define MGK_XServerErrorUnableToCreatePixmap 514 +#define MGK_XServerErrorUnableToCreateProperty 515 +#define MGK_XServerErrorUnableToCreateStandardColormap 516 +#define MGK_XServerErrorUnableToDisplayImageInfo 517 +#define MGK_XServerErrorUnableToGetProperty 518 +#define MGK_XServerErrorUnableToGetStandardColormap 519 +#define MGK_XServerErrorUnableToGetVisual 520 +#define MGK_XServerErrorUnableToGrabMouse 521 +#define MGK_XServerErrorUnableToLoadFont 522 +#define MGK_XServerErrorUnableToMatchVisualToStandardColormap 523 +#define MGK_XServerErrorUnableToOpenXServer 524 +#define MGK_XServerErrorUnableToReadXAttributes 525 +#define MGK_XServerErrorUnableToReadXWindowImage 526 +#define MGK_XServerErrorUnrecognizedColormapType 527 +#define MGK_XServerErrorUnrecognizedGravityType 528 +#define MGK_XServerErrorUnrecognizedVisualSpecifier 529 +#define MGK_XServerFatalErrorUnableToAllocateXHints 530 +#define MGK_XServerFatalErrorUnableToCreateCursor 531 +#define MGK_XServerFatalErrorUnableToCreateGraphicContext 532 +#define MGK_XServerFatalErrorUnableToCreateStandardColormap 533 +#define MGK_XServerFatalErrorUnableToCreateTextProperty 534 +#define MGK_XServerFatalErrorUnableToCreateXImage 535 +#define MGK_XServerFatalErrorUnableToCreateXPixmap 536 +#define MGK_XServerFatalErrorUnableToCreateXWindow 537 +#define MGK_XServerFatalErrorUnableToDisplayImage 538 +#define MGK_XServerFatalErrorUnableToDitherImage 539 +#define MGK_XServerFatalErrorUnableToGetPixelInfo 540 +#define MGK_XServerFatalErrorUnableToGetVisual 541 +#define MGK_XServerFatalErrorUnableToLoadFont 542 +#define MGK_XServerFatalErrorUnableToMakeXWindow 543 +#define MGK_XServerFatalErrorUnableToOpenXServer 544 +#define MGK_XServerFatalErrorUnableToViewFonts 545 +#define MGK_XServerWarningUnableToGetVisual 546 +#define MGK_XServerWarningUsingDefaultVisual 547 #endif @@ -611,43 +614,43 @@ { "Delegate/FatalError", 183, DelegateFatalError }, { "Delegate/Warning", 184, DelegateWarning }, { "Draw/Error", 185, DrawError }, - { "Draw/FatalError", 190, DrawFatalError }, - { "Draw/Warning", 191, DrawWarning }, - { "File/Open/Error", 194, FileOpenError }, - { "File/Open/FatalError", 197, FileOpenFatalError }, - { "File/Open/Warning", 198, FileOpenWarning }, - { "Image/Error", 199, ImageError }, - { "Image/FatalError", 230, ImageFatalError }, - { "Image/Warning", 231, ImageWarning }, - { "Missing/Delegate/Error", 232, MissingDelegateError }, - { "Missing/Delegate/FatalError", 244, MissingDelegateFatalError }, - { "Missing/Delegate/Warning", 245, MissingDelegateWarning }, - { "Module/Error", 246, ModuleError }, - { "Module/FatalError", 251, ModuleFatalError }, - { "Module/Warning", 252, ModuleWarning }, - { "Monitor/Error", 253, MonitorError }, - { "Monitor/FatalError", 254, MonitorFatalError }, - { "Monitor/Warning", 256, MonitorWarning }, - { "Option/Error", 257, OptionError }, - { "Option/FatalError", 342, OptionFatalError }, - { "Option/Warning", 364, OptionWarning }, - { "Registry/Error", 365, RegistryError }, - { "Registry/FatalError", 371, RegistryFatalError }, - { "Registry/Warning", 372, RegistryWarning }, - { "Resource/Limit/Error", 373, ResourceLimitError }, - { "Resource/Limit/FatalError", 441, ResourceLimitFatalError }, - { "Resource/Limit/Warning", 484, ResourceLimitWarning }, - { "Stream/Error", 485, StreamError }, - { "Stream/FatalError", 491, StreamFatalError }, - { "Stream/Warning", 492, StreamWarning }, - { "Type/Error", 493, TypeError }, - { "Type/FatalError", 498, TypeFatalError }, - { "Type/Warning", 499, TypeWarning }, - { "Wand/Error", 500, WandError }, - { "XServer/Error", 504, XServerError }, - { "XServer/FatalError", 526, XServerFatalError }, - { "XServer/Warning", 542, XServerWarning }, - { 0, 544, UndefinedException } + { "Draw/FatalError", 193, DrawFatalError }, + { "Draw/Warning", 194, DrawWarning }, + { "File/Open/Error", 197, FileOpenError }, + { "File/Open/FatalError", 200, FileOpenFatalError }, + { "File/Open/Warning", 201, FileOpenWarning }, + { "Image/Error", 202, ImageError }, + { "Image/FatalError", 233, ImageFatalError }, + { "Image/Warning", 234, ImageWarning }, + { "Missing/Delegate/Error", 235, MissingDelegateError }, + { "Missing/Delegate/FatalError", 247, MissingDelegateFatalError }, + { "Missing/Delegate/Warning", 248, MissingDelegateWarning }, + { "Module/Error", 249, ModuleError }, + { "Module/FatalError", 254, ModuleFatalError }, + { "Module/Warning", 255, ModuleWarning }, + { "Monitor/Error", 256, MonitorError }, + { "Monitor/FatalError", 257, MonitorFatalError }, + { "Monitor/Warning", 259, MonitorWarning }, + { "Option/Error", 260, OptionError }, + { "Option/FatalError", 345, OptionFatalError }, + { "Option/Warning", 367, OptionWarning }, + { "Registry/Error", 368, RegistryError }, + { "Registry/FatalError", 374, RegistryFatalError }, + { "Registry/Warning", 375, RegistryWarning }, + { "Resource/Limit/Error", 376, ResourceLimitError }, + { "Resource/Limit/FatalError", 444, ResourceLimitFatalError }, + { "Resource/Limit/Warning", 487, ResourceLimitWarning }, + { "Stream/Error", 488, StreamError }, + { "Stream/FatalError", 494, StreamFatalError }, + { "Stream/Warning", 495, StreamWarning }, + { "Type/Error", 496, TypeError }, + { "Type/FatalError", 501, TypeFatalError }, + { "Type/Warning", 502, TypeWarning }, + { "Wand/Error", 503, WandError }, + { "XServer/Error", 507, XServerError }, + { "XServer/FatalError", 529, XServerFatalError }, + { "XServer/Warning", 545, XServerWarning }, + { 0, 547, UndefinedException } }; #endif @@ -846,364 +849,367 @@ { "Default", 184 }, { "Default", 185 }, { "AlreadyPushingPatternDefinition", 186 }, - { "NonconformingDrawingPrimitiveDefinition", 187 }, - { "TooManyCoordinates", 188 }, - { "UnableToPrint", 189 }, - { "UnbalancedGraphicContextPushPop", 190 }, - { "Default", 191 }, - { "NotARelativeURL", 192 }, - { "NotCurrentlyPushingPatternDefinition", 193 }, - { "URLNotFound", 194 }, - { "UnableToCreateTemporaryFile", 195 }, - { "UnableToOpenFile", 196 }, - { "UnableToWriteFile", 197 }, - { "Default", 198 }, - { "Default", 199 }, - { "AngleIsDiscontinuous", 200 }, - { "ColorspaceColorProfileMismatch", 201 }, - { "ImageColorspaceDiffers", 202 }, - { "ImageColorspaceMismatch", 203 }, - { "ImageDifferenceExceedsLimit", 204 }, - { "ImageDoesNotContainResolution", 205 }, - { "ImageOpacityDiffers", 206 }, - { "ImageSequenceIsRequired", 207 }, - { "ImageSizeDiffers", 208 }, - { "InvalidColormapIndex", 209 }, - { "LeftAndRightImageSizesDiffer", 210 }, - { "NoImagesWereFound", 211 }, - { "NoImagesWereLoaded", 212 }, - { "NoLocaleImageAttribute", 213 }, - { "TooManyClusters", 214 }, - { "UnableToAppendImage", 215 }, - { "UnableToAssignProfile", 216 }, - { "UnableToAverageImage", 217 }, - { "UnableToCoalesceImage", 218 }, - { "UnableToCompareImages", 219 }, - { "UnableToCreateImageMosaic", 220 }, - { "UnableToCreateStereoImage", 221 }, - { "UnableToDeconstructImageSequence", 222 }, - { "UnableToFlattenImage", 223 }, - { "UnableToGetClipMask", 224 }, - { "UnableToHandleImageChannel", 225 }, - { "UnableToResizeImage", 226 }, - { "UnableToSegmentImage", 227 }, - { "UnableToSetClipMask", 228 }, - { "UnableToShearImage", 229 }, - { "WidthOrHeightExceedsLimit", 230 }, - { "UnableToPersistKey", 231 }, - { "Default", 232 }, - { "DPSLibraryIsNotAvailable", 233 }, - { "FPXLibraryIsNotAvailable", 234 }, - { "FreeTypeLibraryIsNotAvailable", 235 }, - { "JPEGLibraryIsNotAvailable", 236 }, - { "LCMSLibraryIsNotAvailable", 237 }, - { "LZWEncodingNotEnabled", 238 }, - { "NoDecodeDelegateForThisImageFormat", 239 }, - { "NoEncodeDelegateForThisImageFormat", 240 }, - { "TIFFLibraryIsNotAvailable", 241 }, - { "XMLLibraryIsNotAvailable", 242 }, - { "XWindowLibraryIsNotAvailable", 243 }, - { "ZipLibraryIsNotAvailable", 244 }, - { "Default", 245 }, - { "Default", 246 }, - { "FailedToCloseModule", 247 }, - { "FailedToFindSymbol", 248 }, - { "UnableToLoadModule", 249 }, - { "UnableToRegisterImageFormat", 250 }, - { "UnrecognizedModule", 251 }, - { "UnableToInitializeModuleLoader", 252 }, - { "Default", 253 }, - { "Default", 254 }, - { "Default", 255 }, - { "UserRequestedTerminationBySignal", 256 }, + { "FloatValueConversionError", 187 }, + { "IntegerValueConversionError", 188 }, + { "NonconformingDrawingPrimitiveDefinition", 189 }, + { "TooManyCoordinates", 190 }, + { "UnableToPrint", 191 }, + { "UnbalancedGraphicContextPushPop", 192 }, + { "VectorPathTruncated", 193 }, + { "Default", 194 }, + { "NotARelativeURL", 195 }, + { "NotCurrentlyPushingPatternDefinition", 196 }, + { "URLNotFound", 197 }, + { "UnableToCreateTemporaryFile", 198 }, + { "UnableToOpenFile", 199 }, + { "UnableToWriteFile", 200 }, + { "Default", 201 }, + { "Default", 202 }, + { "AngleIsDiscontinuous", 203 }, + { "ColorspaceColorProfileMismatch", 204 }, + { "ImageColorspaceDiffers", 205 }, + { "ImageColorspaceMismatch", 206 }, + { "ImageDifferenceExceedsLimit", 207 }, + { "ImageDoesNotContainResolution", 208 }, + { "ImageOpacityDiffers", 209 }, + { "ImageSequenceIsRequired", 210 }, + { "ImageSizeDiffers", 211 }, + { "InvalidColormapIndex", 212 }, + { "LeftAndRightImageSizesDiffer", 213 }, + { "NoImagesWereFound", 214 }, + { "NoImagesWereLoaded", 215 }, + { "NoLocaleImageAttribute", 216 }, + { "TooManyClusters", 217 }, + { "UnableToAppendImage", 218 }, + { "UnableToAssignProfile", 219 }, + { "UnableToAverageImage", 220 }, + { "UnableToCoalesceImage", 221 }, + { "UnableToCompareImages", 222 }, + { "UnableToCreateImageMosaic", 223 }, + { "UnableToCreateStereoImage", 224 }, + { "UnableToDeconstructImageSequence", 225 }, + { "UnableToFlattenImage", 226 }, + { "UnableToGetClipMask", 227 }, + { "UnableToHandleImageChannel", 228 }, + { "UnableToResizeImage", 229 }, + { "UnableToSegmentImage", 230 }, + { "UnableToSetClipMask", 231 }, + { "UnableToShearImage", 232 }, + { "WidthOrHeightExceedsLimit", 233 }, + { "UnableToPersistKey", 234 }, + { "Default", 235 }, + { "DPSLibraryIsNotAvailable", 236 }, + { "FPXLibraryIsNotAvailable", 237 }, + { "FreeTypeLibraryIsNotAvailable", 238 }, + { "JPEGLibraryIsNotAvailable", 239 }, + { "LCMSLibraryIsNotAvailable", 240 }, + { "LZWEncodingNotEnabled", 241 }, + { "NoDecodeDelegateForThisImageFormat", 242 }, + { "NoEncodeDelegateForThisImageFormat", 243 }, + { "TIFFLibraryIsNotAvailable", 244 }, + { "XMLLibraryIsNotAvailable", 245 }, + { "XWindowLibraryIsNotAvailable", 246 }, + { "ZipLibraryIsNotAvailable", 247 }, + { "Default", 248 }, + { "Default", 249 }, + { "FailedToCloseModule", 250 }, + { "FailedToFindSymbol", 251 }, + { "UnableToLoadModule", 252 }, + { "UnableToRegisterImageFormat", 253 }, + { "UnrecognizedModule", 254 }, + { "UnableToInitializeModuleLoader", 255 }, + { "Default", 256 }, { "Default", 257 }, - { "BevelWidthIsNegative", 258 }, - { "ColorSeparatedImageRequired", 259 }, - { "FrameIsLessThanImageSize", 260 }, - { "GeometryDimensionsAreZero", 261 }, - { "GeometryDoesNotContainImage", 262 }, - { "HaldClutImageDimensionsInvalid", 263 }, - { "ImagesAreNotTheSameSize", 264 }, - { "ImageSizeMustExceedBevelWidth", 265 }, - { "ImageSmallerThanKernelWidth", 266 }, - { "ImageSmallerThanRadius", 267 }, - { "ImageWidthsOrHeightsDiffer", 268 }, - { "InputImagesAlreadySpecified", 269 }, - { "InvalidSubimageSpecification", 270 }, - { "KernelRadiusIsTooSmall", 271 }, - { "KernelWidthMustBeAnOddNumber", 272 }, - { "MatrixIsNotSquare", 273 }, - { "MatrixOrderOutOfRange", 274 }, - { "MissingAnImageFilename", 275 }, - { "MissingArgument", 276 }, - { "MustSpecifyAnImageName", 277 }, - { "MustSpecifyImageSize", 278 }, - { "NoBlobDefined", 279 }, - { "NoImagesDefined", 280 }, - { "NonzeroWidthAndHeightRequired", 281 }, - { "NoProfileNameWasGiven", 282 }, - { "NullBlobArgument", 283 }, - { "ReferenceImageRequired", 284 }, - { "ReferenceIsNotMyType", 285 }, - { "RegionAreaExceedsLimit", 286 }, - { "RequestDidNotReturnAnImage", 287 }, - { "SteganoImageRequired", 288 }, - { "StereoImageRequired", 289 }, - { "SubimageSpecificationReturnsNoImages", 290 }, - { "UnableToAddOrRemoveProfile", 291 }, - { "UnableToAverageImageSequence", 292 }, - { "UnableToBlurImage", 293 }, - { "UnableToChopImage", 294 }, - { "UnableToColorMatrixImage", 295 }, - { "UnableToConstituteImage", 296 }, - { "UnableToConvolveImage", 297 }, - { "UnableToEdgeImage", 298 }, - { "UnableToEqualizeImage", 299 }, - { "UnableToFilterImage", 300 }, - { "UnableToFormatImageMetadata", 301 }, - { "UnableToFrameImage", 302 }, - { "UnableToOilPaintImage", 303 }, - { "UnableToPaintImage", 304 }, - { "UnableToRaiseImage", 305 }, - { "UnableToSharpenImage", 306 }, - { "UnableToThresholdImage", 307 }, - { "UnableToWaveImage", 308 }, - { "UnrecognizedAttribute", 309 }, - { "UnrecognizedChannelType", 310 }, - { "UnrecognizedColor", 311 }, - { "UnrecognizedColormapType", 312 }, - { "UnrecognizedColorspace", 313 }, - { "UnrecognizedCommand", 314 }, - { "UnrecognizedComposeOperator", 315 }, - { "UnrecognizedDisposeMethod", 316 }, - { "UnrecognizedElement", 317 }, - { "UnrecognizedEndianType", 318 }, - { "UnrecognizedGravityType", 319 }, - { "UnrecognizedHighlightStyle", 320 }, - { "UnrecognizedImageCompression", 321 }, - { "UnrecognizedImageFilter", 322 }, - { "UnrecognizedImageFormat", 323 }, - { "UnrecognizedImageMode", 324 }, - { "UnrecognizedImageType", 325 }, - { "UnrecognizedIntentType", 326 }, - { "UnrecognizedInterlaceType", 327 }, - { "UnrecognizedListType", 328 }, - { "UnrecognizedMetric", 329 }, - { "UnrecognizedModeType", 330 }, - { "UnrecognizedNoiseType", 331 }, - { "UnrecognizedOperator", 332 }, - { "UnrecognizedOption", 333 }, - { "UnrecognizedPerlMagickMethod", 334 }, - { "UnrecognizedPixelMap", 335 }, - { "UnrecognizedPreviewType", 336 }, - { "UnrecognizedResourceType", 337 }, - { "UnrecognizedType", 338 }, - { "UnrecognizedUnitsType", 339 }, - { "UnrecognizedVirtualPixelMethod", 340 }, - { "UnsupportedSamplingFactor", 341 }, - { "UsageError", 342 }, - { "InvalidColorspaceType", 343 }, - { "InvalidEndianType", 344 }, - { "InvalidImageType", 345 }, - { "InvalidInterlaceType", 346 }, - { "MissingAnImageFilename", 347 }, - { "MissingArgument", 348 }, - { "NoImagesWereLoaded", 349 }, - { "OptionLengthExceedsLimit", 350 }, - { "RequestDidNotReturnAnImage", 351 }, - { "UnableToOpenXServer", 352 }, - { "UnableToPersistKey", 353 }, - { "UnrecognizedColormapType", 354 }, - { "UnrecognizedColorspaceType", 355 }, - { "UnrecognizedDisposeMethod", 356 }, - { "UnrecognizedEndianType", 357 }, - { "UnrecognizedFilterType", 358 }, - { "UnrecognizedImageCompressionType", 359 }, - { "UnrecognizedImageType", 360 }, - { "UnrecognizedInterlaceType", 361 }, - { "UnrecognizedOption", 362 }, - { "UnrecognizedResourceType", 363 }, - { "UnrecognizedVirtualPixelMethod", 364 }, - { "UnrecognizedColor", 365 }, - { "ImageExpected", 366 }, - { "ImageInfoExpected", 367 }, - { "StructureSizeMismatch", 368 }, - { "UnableToGetRegistryID", 369 }, - { "UnableToLocateImage", 370 }, - { "UnableToSetRegistry", 371 }, - { "Default", 372 }, - { "Default", 373 }, - { "CacheResourcesExhausted", 374 }, - { "ImagePixelHeightLimitExceeded", 375 }, - { "ImagePixelLimitExceeded", 376 }, - { "ImagePixelWidthLimitExceeded", 377 }, - { "MemoryAllocationFailed", 378 }, - { "NoPixelsDefinedInCache", 379 }, - { "PixelCacheAllocationFailed", 380 }, - { "UnableToAddColorProfile", 381 }, - { "UnableToAddGenericProfile", 382 }, - { "UnableToAddIPTCProfile", 383 }, - { "UnableToAllocateCoefficients", 384 }, - { "UnableToAllocateColormap", 385 }, - { "UnableToAllocateICCProfile", 386 }, - { "UnableToAllocateString", 387 }, - { "UnableToAnnotateImage", 388 }, - { "UnableToAverageImageSequence", 389 }, - { "UnableToCloneDrawingWand", 390 }, - { "UnableToCloneImage", 391 }, - { "UnableToComputeImageSignature", 392 }, - { "UnableToConstituteImage", 393 }, - { "UnableToConvertFont", 394 }, - { "UnableToConvertStringToTokens", 395 }, - { "UnableToCreateColormap", 396 }, - { "UnableToCreateColorTransform", 397 }, - { "UnableToCreateCommandWidget", 398 }, - { "UnableToCreateImageGroup", 399 }, - { "UnableToCreateImageMontage", 400 }, - { "UnableToCreateXWindow", 401 }, - { "UnableToCropImage", 402 }, - { "UnableToDespeckleImage", 403 }, - { "UnableToDetermineImageClass", 404 }, - { "UnableToDetermineTheNumberOfImageColors", 405 }, - { "UnableToDitherImage", 406 }, - { "UnableToDrawOnImage", 407 }, - { "UnableToEdgeImage", 408 }, - { "UnableToEmbossImage", 409 }, - { "UnableToEnhanceImage", 410 }, - { "UnableToFloodfillImage", 411 }, - { "UnableToGammaCorrectImage", 412 }, - { "UnableToGetBestIconSize", 413 }, - { "UnableToGetFromRegistry", 414 }, - { "UnableToGetPackageInfo", 415 }, - { "UnableToLevelImage", 416 }, - { "UnableToMagnifyImage", 417 }, - { "UnableToManageColor", 418 }, - { "UnableToMapImage", 419 }, - { "UnableToMapImageSequence", 420 }, - { "UnableToMedianFilterImage", 421 }, - { "UnableToMotionBlurImage", 422 }, - { "UnableToNoiseFilterImage", 423 }, - { "UnableToNormalizeImage", 424 }, - { "UnableToOpenColorProfile", 425 }, - { "UnableToQuantizeImage", 426 }, - { "UnableToQuantizeImageSequence", 427 }, - { "UnableToReadTextChunk", 428 }, - { "UnableToReadXImage", 429 }, - { "UnableToReadXServerColormap", 430 }, - { "UnableToResizeImage", 431 }, - { "UnableToRotateImage", 432 }, - { "UnableToSampleImage", 433 }, - { "UnableToScaleImage", 434 }, - { "UnableToSelectImage", 435 }, - { "UnableToSharpenImage", 436 }, - { "UnableToShaveImage", 437 }, - { "UnableToShearImage", 438 }, - { "UnableToSortImageColormap", 439 }, - { "UnableToThresholdImage", 440 }, - { "UnableToTransformColorspace", 441 }, - { "MemoryAllocationFailed", 442 }, - { "SemaporeOperationFailed", 443 }, - { "UnableToAllocateAscii85Info", 444 }, - { "UnableToAllocateCacheInfo", 445 }, - { "UnableToAllocateCacheView", 446 }, - { "UnableToAllocateColorInfo", 447 }, - { "UnableToAllocateDashPattern", 448 }, - { "UnableToAllocateDelegateInfo", 449 }, - { "UnableToAllocateDerivatives", 450 }, - { "UnableToAllocateDrawContext", 451 }, - { "UnableToAllocateDrawInfo", 452 }, - { "UnableToAllocateDrawingWand", 453 }, - { "UnableToAllocateGammaMap", 454 }, - { "UnableToAllocateImage", 455 }, - { "UnableToAllocateImagePixels", 456 }, - { "UnableToAllocateLogInfo", 457 }, - { "UnableToAllocateMagicInfo", 458 }, - { "UnableToAllocateMagickInfo", 459 }, - { "UnableToAllocateModuleInfo", 460 }, - { "UnableToAllocateMontageInfo", 461 }, - { "UnableToAllocateQuantizeInfo", 462 }, - { "UnableToAllocateRandomKernel", 463 }, - { "UnableToAllocateRegistryInfo", 464 }, - { "UnableToAllocateSemaphoreInfo", 465 }, - { "UnableToAllocateString", 466 }, - { "UnableToAllocateTypeInfo", 467 }, - { "UnableToAllocateWand", 468 }, - { "UnableToAnimateImageSequence", 469 }, - { "UnableToCloneBlobInfo", 470 }, - { "UnableToCloneCacheInfo", 471 }, - { "UnableToCloneImage", 472 }, - { "UnableToCloneImageInfo", 473 }, - { "UnableToConcatenateString", 474 }, - { "UnableToConvertText", 475 }, - { "UnableToCreateColormap", 476 }, - { "UnableToDestroySemaphore", 477 }, - { "UnableToDisplayImage", 478 }, - { "UnableToEscapeString", 479 }, - { "UnableToInitializeSemaphore", 480 }, - { "UnableToInterpretMSLImage", 481 }, - { "UnableToLockSemaphore", 482 }, - { "UnableToObtainRandomEntropy", 483 }, - { "UnableToUnlockSemaphore", 484 }, - { "MemoryAllocationFailed", 485 }, - { "ImageDoesNotContainTheStreamGeometry", 486 }, - { "NoStreamHandlerIsDefined", 487 }, - { "PixelCacheIsNotOpen", 488 }, - { "UnableToAcquirePixelStream", 489 }, - { "UnableToSetPixelStream", 490 }, - { "UnableToSyncPixelStream", 491 }, - { "Default", 492 }, - { "Default", 493 }, - { "FontSubstitutionRequired", 494 }, - { "UnableToGetTypeMetrics", 495 }, - { "UnableToInitializeFreetypeLibrary", 496 }, - { "UnableToReadFont", 497 }, - { "UnrecognizedFontEncoding", 498 }, - { "Default", 499 }, - { "Default", 500 }, - { "InvalidColormapIndex", 501 }, - { "WandAPINotImplemented", 502 }, - { "WandContainsNoImageIndexs", 503 }, - { "WandContainsNoImages", 504 }, - { "ColorIsNotKnownToServer", 505 }, - { "NoWindowWithSpecifiedIDExists", 506 }, - { "StandardColormapIsNotInitialized", 507 }, - { "UnableToConnectToRemoteDisplay", 508 }, - { "UnableToCreateBitmap", 509 }, - { "UnableToCreateColormap", 510 }, - { "UnableToCreatePixmap", 511 }, - { "UnableToCreateProperty", 512 }, - { "UnableToCreateStandardColormap", 513 }, - { "UnableToDisplayImageInfo", 514 }, - { "UnableToGetProperty", 515 }, - { "UnableToGetStandardColormap", 516 }, - { "UnableToGetVisual", 517 }, - { "UnableToGrabMouse", 518 }, - { "UnableToLoadFont", 519 }, - { "UnableToMatchVisualToStandardColormap", 520 }, - { "UnableToOpenXServer", 521 }, - { "UnableToReadXAttributes", 522 }, - { "UnableToReadXWindowImage", 523 }, - { "UnrecognizedColormapType", 524 }, - { "UnrecognizedGravityType", 525 }, - { "UnrecognizedVisualSpecifier", 526 }, - { "UnableToAllocateXHints", 527 }, - { "UnableToCreateCursor", 528 }, - { "UnableToCreateGraphicContext", 529 }, - { "UnableToCreateStandardColormap", 530 }, - { "UnableToCreateTextProperty", 531 }, - { "UnableToCreateXImage", 532 }, - { "UnableToCreateXPixmap", 533 }, - { "UnableToCreateXWindow", 534 }, - { "UnableToDisplayImage", 535 }, - { "UnableToDitherImage", 536 }, - { "UnableToGetPixelInfo", 537 }, - { "UnableToGetVisual", 538 }, - { "UnableToLoadFont", 539 }, - { "UnableToMakeXWindow", 540 }, - { "UnableToOpenXServer", 541 }, - { "UnableToViewFonts", 542 }, - { "UnableToGetVisual", 543 }, - { "UsingDefaultVisual", 544 }, + { "Default", 258 }, + { "UserRequestedTerminationBySignal", 259 }, + { "Default", 260 }, + { "BevelWidthIsNegative", 261 }, + { "ColorSeparatedImageRequired", 262 }, + { "FrameIsLessThanImageSize", 263 }, + { "GeometryDimensionsAreZero", 264 }, + { "GeometryDoesNotContainImage", 265 }, + { "HaldClutImageDimensionsInvalid", 266 }, + { "ImagesAreNotTheSameSize", 267 }, + { "ImageSizeMustExceedBevelWidth", 268 }, + { "ImageSmallerThanKernelWidth", 269 }, + { "ImageSmallerThanRadius", 270 }, + { "ImageWidthsOrHeightsDiffer", 271 }, + { "InputImagesAlreadySpecified", 272 }, + { "InvalidSubimageSpecification", 273 }, + { "KernelRadiusIsTooSmall", 274 }, + { "KernelWidthMustBeAnOddNumber", 275 }, + { "MatrixIsNotSquare", 276 }, + { "MatrixOrderOutOfRange", 277 }, + { "MissingAnImageFilename", 278 }, + { "MissingArgument", 279 }, + { "MustSpecifyAnImageName", 280 }, + { "MustSpecifyImageSize", 281 }, + { "NoBlobDefined", 282 }, + { "NoImagesDefined", 283 }, + { "NonzeroWidthAndHeightRequired", 284 }, + { "NoProfileNameWasGiven", 285 }, + { "NullBlobArgument", 286 }, + { "ReferenceImageRequired", 287 }, + { "ReferenceIsNotMyType", 288 }, + { "RegionAreaExceedsLimit", 289 }, + { "RequestDidNotReturnAnImage", 290 }, + { "SteganoImageRequired", 291 }, + { "StereoImageRequired", 292 }, + { "SubimageSpecificationReturnsNoImages", 293 }, + { "UnableToAddOrRemoveProfile", 294 }, + { "UnableToAverageImageSequence", 295 }, + { "UnableToBlurImage", 296 }, + { "UnableToChopImage", 297 }, + { "UnableToColorMatrixImage", 298 }, + { "UnableToConstituteImage", 299 }, + { "UnableToConvolveImage", 300 }, + { "UnableToEdgeImage", 301 }, + { "UnableToEqualizeImage", 302 }, + { "UnableToFilterImage", 303 }, + { "UnableToFormatImageMetadata", 304 }, + { "UnableToFrameImage", 305 }, + { "UnableToOilPaintImage", 306 }, + { "UnableToPaintImage", 307 }, + { "UnableToRaiseImage", 308 }, + { "UnableToSharpenImage", 309 }, + { "UnableToThresholdImage", 310 }, + { "UnableToWaveImage", 311 }, + { "UnrecognizedAttribute", 312 }, + { "UnrecognizedChannelType", 313 }, + { "UnrecognizedColor", 314 }, + { "UnrecognizedColormapType", 315 }, + { "UnrecognizedColorspace", 316 }, + { "UnrecognizedCommand", 317 }, + { "UnrecognizedComposeOperator", 318 }, + { "UnrecognizedDisposeMethod", 319 }, + { "UnrecognizedElement", 320 }, + { "UnrecognizedEndianType", 321 }, + { "UnrecognizedGravityType", 322 }, + { "UnrecognizedHighlightStyle", 323 }, + { "UnrecognizedImageCompression", 324 }, + { "UnrecognizedImageFilter", 325 }, + { "UnrecognizedImageFormat", 326 }, + { "UnrecognizedImageMode", 327 }, + { "UnrecognizedImageType", 328 }, + { "UnrecognizedIntentType", 329 }, + { "UnrecognizedInterlaceType", 330 }, + { "UnrecognizedListType", 331 }, + { "UnrecognizedMetric", 332 }, + { "UnrecognizedModeType", 333 }, + { "UnrecognizedNoiseType", 334 }, + { "UnrecognizedOperator", 335 }, + { "UnrecognizedOption", 336 }, + { "UnrecognizedPerlMagickMethod", 337 }, + { "UnrecognizedPixelMap", 338 }, + { "UnrecognizedPreviewType", 339 }, + { "UnrecognizedResourceType", 340 }, + { "UnrecognizedType", 341 }, + { "UnrecognizedUnitsType", 342 }, + { "UnrecognizedVirtualPixelMethod", 343 }, + { "UnsupportedSamplingFactor", 344 }, + { "UsageError", 345 }, + { "InvalidColorspaceType", 346 }, + { "InvalidEndianType", 347 }, + { "InvalidImageType", 348 }, + { "InvalidInterlaceType", 349 }, + { "MissingAnImageFilename", 350 }, + { "MissingArgument", 351 }, + { "NoImagesWereLoaded", 352 }, + { "OptionLengthExceedsLimit", 353 }, + { "RequestDidNotReturnAnImage", 354 }, + { "UnableToOpenXServer", 355 }, + { "UnableToPersistKey", 356 }, + { "UnrecognizedColormapType", 357 }, + { "UnrecognizedColorspaceType", 358 }, + { "UnrecognizedDisposeMethod", 359 }, + { "UnrecognizedEndianType", 360 }, + { "UnrecognizedFilterType", 361 }, + { "UnrecognizedImageCompressionType", 362 }, + { "UnrecognizedImageType", 363 }, + { "UnrecognizedInterlaceType", 364 }, + { "UnrecognizedOption", 365 }, + { "UnrecognizedResourceType", 366 }, + { "UnrecognizedVirtualPixelMethod", 367 }, + { "UnrecognizedColor", 368 }, + { "ImageExpected", 369 }, + { "ImageInfoExpected", 370 }, + { "StructureSizeMismatch", 371 }, + { "UnableToGetRegistryID", 372 }, + { "UnableToLocateImage", 373 }, + { "UnableToSetRegistry", 374 }, + { "Default", 375 }, + { "Default", 376 }, + { "CacheResourcesExhausted", 377 }, + { "ImagePixelHeightLimitExceeded", 378 }, + { "ImagePixelLimitExceeded", 379 }, + { "ImagePixelWidthLimitExceeded", 380 }, + { "MemoryAllocationFailed", 381 }, + { "NoPixelsDefinedInCache", 382 }, + { "PixelCacheAllocationFailed", 383 }, + { "UnableToAddColorProfile", 384 }, + { "UnableToAddGenericProfile", 385 }, + { "UnableToAddIPTCProfile", 386 }, + { "UnableToAllocateCoefficients", 387 }, + { "UnableToAllocateColormap", 388 }, + { "UnableToAllocateICCProfile", 389 }, + { "UnableToAllocateString", 390 }, + { "UnableToAnnotateImage", 391 }, + { "UnableToAverageImageSequence", 392 }, + { "UnableToCloneDrawingWand", 393 }, + { "UnableToCloneImage", 394 }, + { "UnableToComputeImageSignature", 395 }, + { "UnableToConstituteImage", 396 }, + { "UnableToConvertFont", 397 }, + { "UnableToConvertStringToTokens", 398 }, + { "UnableToCreateColormap", 399 }, + { "UnableToCreateColorTransform", 400 }, + { "UnableToCreateCommandWidget", 401 }, + { "UnableToCreateImageGroup", 402 }, + { "UnableToCreateImageMontage", 403 }, + { "UnableToCreateXWindow", 404 }, + { "UnableToCropImage", 405 }, + { "UnableToDespeckleImage", 406 }, + { "UnableToDetermineImageClass", 407 }, + { "UnableToDetermineTheNumberOfImageColors", 408 }, + { "UnableToDitherImage", 409 }, + { "UnableToDrawOnImage", 410 }, + { "UnableToEdgeImage", 411 }, + { "UnableToEmbossImage", 412 }, + { "UnableToEnhanceImage", 413 }, + { "UnableToFloodfillImage", 414 }, + { "UnableToGammaCorrectImage", 415 }, + { "UnableToGetBestIconSize", 416 }, + { "UnableToGetFromRegistry", 417 }, + { "UnableToGetPackageInfo", 418 }, + { "UnableToLevelImage", 419 }, + { "UnableToMagnifyImage", 420 }, + { "UnableToManageColor", 421 }, + { "UnableToMapImage", 422 }, + { "UnableToMapImageSequence", 423 }, + { "UnableToMedianFilterImage", 424 }, + { "UnableToMotionBlurImage", 425 }, + { "UnableToNoiseFilterImage", 426 }, + { "UnableToNormalizeImage", 427 }, + { "UnableToOpenColorProfile", 428 }, + { "UnableToQuantizeImage", 429 }, + { "UnableToQuantizeImageSequence", 430 }, + { "UnableToReadTextChunk", 431 }, + { "UnableToReadXImage", 432 }, + { "UnableToReadXServerColormap", 433 }, + { "UnableToResizeImage", 434 }, + { "UnableToRotateImage", 435 }, + { "UnableToSampleImage", 436 }, + { "UnableToScaleImage", 437 }, + { "UnableToSelectImage", 438 }, + { "UnableToSharpenImage", 439 }, + { "UnableToShaveImage", 440 }, + { "UnableToShearImage", 441 }, + { "UnableToSortImageColormap", 442 }, + { "UnableToThresholdImage", 443 }, + { "UnableToTransformColorspace", 444 }, + { "MemoryAllocationFailed", 445 }, + { "SemaporeOperationFailed", 446 }, + { "UnableToAllocateAscii85Info", 447 }, + { "UnableToAllocateCacheInfo", 448 }, + { "UnableToAllocateCacheView", 449 }, + { "UnableToAllocateColorInfo", 450 }, + { "UnableToAllocateDashPattern", 451 }, + { "UnableToAllocateDelegateInfo", 452 }, + { "UnableToAllocateDerivatives", 453 }, + { "UnableToAllocateDrawContext", 454 }, + { "UnableToAllocateDrawInfo", 455 }, + { "UnableToAllocateDrawingWand", 456 }, + { "UnableToAllocateGammaMap", 457 }, + { "UnableToAllocateImage", 458 }, + { "UnableToAllocateImagePixels", 459 }, + { "UnableToAllocateLogInfo", 460 }, + { "UnableToAllocateMagicInfo", 461 }, + { "UnableToAllocateMagickInfo", 462 }, + { "UnableToAllocateModuleInfo", 463 }, + { "UnableToAllocateMontageInfo", 464 }, + { "UnableToAllocateQuantizeInfo", 465 }, + { "UnableToAllocateRandomKernel", 466 }, + { "UnableToAllocateRegistryInfo", 467 }, + { "UnableToAllocateSemaphoreInfo", 468 }, + { "UnableToAllocateString", 469 }, + { "UnableToAllocateTypeInfo", 470 }, + { "UnableToAllocateWand", 471 }, + { "UnableToAnimateImageSequence", 472 }, + { "UnableToCloneBlobInfo", 473 }, + { "UnableToCloneCacheInfo", 474 }, + { "UnableToCloneImage", 475 }, + { "UnableToCloneImageInfo", 476 }, + { "UnableToConcatenateString", 477 }, + { "UnableToConvertText", 478 }, + { "UnableToCreateColormap", 479 }, + { "UnableToDestroySemaphore", 480 }, + { "UnableToDisplayImage", 481 }, + { "UnableToEscapeString", 482 }, + { "UnableToInitializeSemaphore", 483 }, + { "UnableToInterpretMSLImage", 484 }, + { "UnableToLockSemaphore", 485 }, + { "UnableToObtainRandomEntropy", 486 }, + { "UnableToUnlockSemaphore", 487 }, + { "MemoryAllocationFailed", 488 }, + { "ImageDoesNotContainTheStreamGeometry", 489 }, + { "NoStreamHandlerIsDefined", 490 }, + { "PixelCacheIsNotOpen", 491 }, + { "UnableToAcquirePixelStream", 492 }, + { "UnableToSetPixelStream", 493 }, + { "UnableToSyncPixelStream", 494 }, + { "Default", 495 }, + { "Default", 496 }, + { "FontSubstitutionRequired", 497 }, + { "UnableToGetTypeMetrics", 498 }, + { "UnableToInitializeFreetypeLibrary", 499 }, + { "UnableToReadFont", 500 }, + { "UnrecognizedFontEncoding", 501 }, + { "Default", 502 }, + { "Default", 503 }, + { "InvalidColormapIndex", 504 }, + { "WandAPINotImplemented", 505 }, + { "WandContainsNoImageIndexs", 506 }, + { "WandContainsNoImages", 507 }, + { "ColorIsNotKnownToServer", 508 }, + { "NoWindowWithSpecifiedIDExists", 509 }, + { "StandardColormapIsNotInitialized", 510 }, + { "UnableToConnectToRemoteDisplay", 511 }, + { "UnableToCreateBitmap", 512 }, + { "UnableToCreateColormap", 513 }, + { "UnableToCreatePixmap", 514 }, + { "UnableToCreateProperty", 515 }, + { "UnableToCreateStandardColormap", 516 }, + { "UnableToDisplayImageInfo", 517 }, + { "UnableToGetProperty", 518 }, + { "UnableToGetStandardColormap", 519 }, + { "UnableToGetVisual", 520 }, + { "UnableToGrabMouse", 521 }, + { "UnableToLoadFont", 522 }, + { "UnableToMatchVisualToStandardColormap", 523 }, + { "UnableToOpenXServer", 524 }, + { "UnableToReadXAttributes", 525 }, + { "UnableToReadXWindowImage", 526 }, + { "UnrecognizedColormapType", 527 }, + { "UnrecognizedGravityType", 528 }, + { "UnrecognizedVisualSpecifier", 529 }, + { "UnableToAllocateXHints", 530 }, + { "UnableToCreateCursor", 531 }, + { "UnableToCreateGraphicContext", 532 }, + { "UnableToCreateStandardColormap", 533 }, + { "UnableToCreateTextProperty", 534 }, + { "UnableToCreateXImage", 535 }, + { "UnableToCreateXPixmap", 536 }, + { "UnableToCreateXWindow", 537 }, + { "UnableToDisplayImage", 538 }, + { "UnableToDitherImage", 539 }, + { "UnableToGetPixelInfo", 540 }, + { "UnableToGetVisual", 541 }, + { "UnableToLoadFont", 542 }, + { "UnableToMakeXWindow", 543 }, + { "UnableToOpenXServer", 544 }, + { "UnableToViewFonts", 545 }, + { "UnableToGetVisual", 546 }, + { "UsingDefaultVisual", 547 }, { 0, 0 } }; #endif @@ -1398,10 +1404,13 @@ "default error", "default warning", "Already pushing pattern definition", + "text value does not convert to float", + "text value does not convert to integer", "Non-conforming drawing primitive definition", "too many coordinates", "Unable to print", "unbalanced graphic context push-pop", + "vector path truncated", "default error", "Not a relative URL", "Not currently pushing pattern definition", diff -r 9ba30629488e -r e797bb0aec31 magick/render.c --- a/magick/render.c Sat Apr 30 18:31:06 2016 -0500 +++ b/magick/render.c Sat Apr 30 18:32:03 2016 -0500 @@ -128,7 +128,7 @@ DrawStrokePolygon(Image *,const DrawInfo *,const PrimitiveInfo *); static unsigned long - TracePath(PrimitiveInfo *,const char *); + TracePath(Image *image, PrimitiveInfo *,const char *); static void #if 0 @@ -148,6 +148,41 @@ PointInfo), TraceSquareLinecap(PrimitiveInfo *,const unsigned long,const double); +static inline MagickPassFail MagickAtoFChk(const char *str, double *value) +{ + char *estr=0; + *value=strtod(str,&estr); + return (str == estr ? MagickFail : MagickPass); +} +#if 0 +static inline MagickPassFail MagickAtoIChk(const char *str, int *value) +{ + char *estr=0; + *value=(int) strtol(str,&estr, 10); + return (str == estr ? MagickFail : MagickPass); +} +#endif +static inline MagickPassFail MagickAtoUIChk(const char *str, unsigned int *value) +{ + char *estr=0; + *value=(unsigned int) strtol(str,&estr, 10); + return (str == estr ? MagickFail : MagickPass); +} +#if 0 +static inline MagickPassFail MagickAtoLChk(const char *str, long *value) +{ + char *estr=0; + *value=strtol(str,&estr, 10); + return (str == estr ? MagickFail : MagickPass); +} +#endif +static inline MagickPassFail MagickAtoULChk(const char *str, unsigned long *value) +{ + char *estr=0; + *value=(unsigned long) strtol(str,&estr, 10); + return (str == estr ? MagickFail : MagickPass); +} + /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % @@ -1705,7 +1740,8 @@ bounds; size_t - length; + length, + token_max_length; MagickPassFail status; @@ -1761,6 +1797,7 @@ } graphic_context[n]=CloneDrawInfo((ImageInfo *) NULL,draw_info); token=AllocateString(primitive); + token_max_length=strlen(token); (void) QueryColorDatabase("black",&start_color,&image->exception); (void) SetImageType(image,TrueColorType); status=MagickPass; @@ -1774,7 +1809,8 @@ /* Interpret graphic primitive. */ - GetToken(q,&q,keyword); + if (MagickGetToken(q,&q,keyword,MaxTextExtent) < 1) + break; if (*keyword == '\0') break; if (*keyword == '#') @@ -1799,28 +1835,54 @@ { if (LocaleCompare("affine",keyword) == 0) { - GetToken(q,&q,token); - affine.sx=MagickAtoF(token); - GetToken(q,&q,token); - if (*token == ',') - GetToken(q,&q,token); - affine.rx=MagickAtoF(token); - GetToken(q,&q,token); - if (*token == ',') - GetToken(q,&q,token); - affine.ry=MagickAtoF(token); - GetToken(q,&q,token); - if (*token == ',') - GetToken(q,&q,token); - affine.sy=MagickAtoF(token); - GetToken(q,&q,token); - if (*token == ',') - GetToken(q,&q,token); - affine.tx=MagickAtoF(token); - GetToken(q,&q,token); - if (*token == ',') - GetToken(q,&q,token); - affine.ty=MagickAtoF(token); + MagickBool affine_args_good = MagickFalse; + do + { + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (MagickAtoFChk(token,&affine.sx) != MagickPass) + break; + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (*token == ',') + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (MagickAtoFChk(token,&affine.rx) != MagickPass) + break; + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (*token == ',') + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (MagickAtoFChk(token,&affine.ry) != MagickPass) + break; + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (*token == ',') + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (MagickAtoFChk(token,&affine.sy) != MagickPass) + break; + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (*token == ',') + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (MagickAtoFChk(token,&affine.tx) != MagickPass) + break; + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (*token == ',') + if (MagickGetToken(q,&q,token,token_max_length) < 1) + break; + if (MagickAtoFChk(token,&affine.ty) != MagickPass) + break; + affine_args_good=MagickTrue; + } while (0); + if (affine_args_good != MagickTrue) + { + status=MagickFail; + } break; } if (LocaleCompare("arc",keyword) == 0) @@ -1850,7 +1912,11 @@ /* Create clip mask. */ - GetToken(q,&q,token); + if (MagickGetToken(q,&q,token,token_max_length) < 1) + { + status=MagickFail; + break; + } (void) CloneString(&graphic_context[n]->clip_path,token); (void) DrawClipPath(image,graphic_context[n], graphic_context[n]->clip_path); @@ -1948,7 +2014,11 @@ } if (LocaleCompare("encoding",keyword) == 0) { - GetToken(q,&q,token); + if (MagickGetToken(q,&q,token,token_max_length) < 1) + { + status=MagickFail; + break; + } (void) CloneString(&graphic_context[n]->encoding,token); break; } @@ -2008,7 +2078,10 @@ } if (LocaleCompare("font-family",keyword) == 0) { - GetToken(q,&q,token); + MagickGetToken(q,&q,token,token_max_length); + fprintf(stderr,"%s\n",token); + if ((token[0] == '\'') && (token[strlen(token)-1] == '\'')) + fprintf(stderr,"==== Hit \n"); (void) CloneString(&graphic_context[n]->family,token); break; } @@ -2057,20 +2130,29 @@ } if (LocaleCompare("font-weight",keyword) == 0) { - GetToken(q,&q,token); - graphic_context[n]->weight=MagickAtoL(token); + if (MagickGetToken(q,&q,token,token_max_length) < 1) + { + status=MagickFail; + break; + } if (LocaleCompare(token,"all") == 0) graphic_context[n]->weight=0; - if (LocaleCompare(token,"bold") == 0) + else if (LocaleCompare(token,"bold") == 0) graphic_context[n]->weight=700; - if (LocaleCompare(token,"bolder") == 0) - if (graphic_context[n]->weight <= 800) - graphic_context[n]->weight+=100; - if (LocaleCompare(token,"lighter") == 0) - if (graphic_context[n]->weight >= 100) - graphic_context[n]->weight-=100; - if (LocaleCompare(token,"normal") == 0) + else if (LocaleCompare(token,"bolder") == 0) + { + if (graphic_context[n]->weight <= 800) + graphic_context[n]->weight+=100; + } + else if (LocaleCompare(token,"lighter") == 0) + { + if (graphic_context[n]->weight >= 100) + graphic_context[n]->weight-=100; + } + else if (LocaleCompare(token,"normal") == 0) graphic_context[n]->weight=400; + else if (MagickAtoULChk(token,&graphic_context[n]->weight) != MagickPass) + status=MagickFail; break; } status=MagickFail; @@ -3006,7 +3088,7 @@ } case PathPrimitive: { - i=(long) (j+TracePath(primitive_info+j,token)); + i=(long) (j+TracePath(image,primitive_info+j,token)); break; } case ColorPrimitive: @@ -4814,8 +4896,50 @@ primitive_info->coordinates=2; } +/* + Special wrapper macros around strtod(), strtol(), and + MagickGetToken() to support TracePath() parsing error detection and + reporting. +*/ +#define MagickTracePathAtoF(str,value) \ + do { \ + if (MagickAtoFChk(str,value) != MagickPass) \ + { \ + ThrowException(&image->exception,DrawError,FloatValueConversionError,str); \ + return 0; \ + } \ + } while(0) + +#define MagickTracePathAtoI(str,value) \ + do { \ + if (MagickAtoIChk(str,value) != MagickPass) \ + { \ + ThrowException(&image->exception,DrawError,IntegerValueConversionError,str); \ + return 0; \ + } \ + } while(0) + +#define MagickTracePathAtoUI(str,value) \ + do { \ + if (MagickAtoUIChk(str,value) != MagickPass) \ + { \ + ThrowException(&image->exception,DrawError,IntegerValueConversionError,str); \ + return 0; \ + } \ + } while(0) + +#define MagickGetTracePathToken(p,ep,token,extent) \ + do { \ + if (MagickGetToken(p,ep,token,extent) < 1) \ + { \ + ThrowException(&image->exception,DrawError,VectorPathTruncated,p); \ + return 0; \ + } \ + } while(0) + + static unsigned long -TracePath(PrimitiveInfo *primitive_info,const char *path) +TracePath(Image *image,PrimitiveInfo *primitive_info,const char *path) { char token[MaxTextExtent]; @@ -4869,48 +4993,48 @@ case 'A': { MagickBool - large_arc, - sweep; + large_arc = MagickFalse, + sweep = MagickFalse; double - angle; + angle = 0.0; PointInfo - arc; + arc = {0,0}; /* Compute arc points. */ do { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - arc.x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&arc.x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - arc.y=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&arc.y); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - angle=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&angle); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - large_arc=MagickAtoI(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoUI(token,&large_arc); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - sweep=MagickAtoI(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoUI(token,&sweep); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); end.x=attribute == 'A' ? x : point.x+x; end.y=attribute == 'A' ? y : point.y+y; TraceArcPath(q,point,end,arc,angle,large_arc,sweep); @@ -4934,14 +5058,14 @@ points[0]=point; for (i=1; i < 4; i++) { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); end.x=attribute == 'C' ? x : point.x+x; end.y=attribute == 'C' ? y : point.y+y; points[i]=end; @@ -4959,10 +5083,10 @@ { do { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); point.x=attribute == 'H' ? x: point.x+x; TracePoint(q,point); q+=q->coordinates; @@ -4974,14 +5098,14 @@ { do { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); point.x=attribute == 'L' ? x : point.x+x; point.y=attribute == 'L' ? y : point.y+y; TracePoint(q,point); @@ -5001,14 +5125,14 @@ i=0; do { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); point.x=attribute == 'M' ? x : point.x+x; point.y=attribute == 'M' ? y : point.y+y; if (i == 0) @@ -5035,14 +5159,14 @@ points[0]=point; for (i=1; i < 3; i++) { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); if (*p == ',') p++; end.x=attribute == 'Q' ? x : point.x+x; @@ -5070,14 +5194,14 @@ points[1].y=2.0*points[3].y-points[2].y; for (i=2; i < 4; i++) { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); if (*p == ',') p++; end.x=attribute == 'S' ? x : point.x+x; @@ -5110,14 +5234,14 @@ points[1].y=2.0*points[2].y-points[1].y; for (i=2; i < 3; i++) { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - x=MagickAtoF(token); - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&x); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); end.x=attribute == 'T' ? x : point.x+x; end.y=attribute == 'T' ? y : point.y+y; points[i]=end; @@ -5140,10 +5264,10 @@ { do { - GetToken(p,&p,token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); if (*token == ',') - GetToken(p,&p,token); - y=MagickAtoF(token); + MagickGetTracePathToken(p,&p,token,MaxTextExtent); + MagickTracePathAtoF(token,&y); point.y=attribute == 'V' ? y : point.y+y; TracePoint(q,point); q+=q->coordinates; @@ -5170,6 +5294,7 @@ } } } + primitive_info->coordinates=q-primitive_info; number_coordinates+=primitive_info->coordinates; for (i=0; i < (long) number_coordinates; i++) diff -r 9ba30629488e -r e797bb0aec31 magick/utility.c --- a/magick/utility.c Sat Apr 30 18:31:06 2016 -0500 +++ b/magick/utility.c Sat Apr 30 18:32:03 2016 -0500 @@ -2564,106 +2564,7 @@ */ MagickExport void GetToken(const char *start,char **end,char *token) { - register char - *p; - - register long - i; - - double - double_val; - - assert(start != (const char *) NULL); - assert(token != (char *) NULL); - - i=0; - p=(char *) start; - - if (*p != '\0') - { - while (isspace((int)(unsigned char) (*p)) && (*p != '\0')) - p++; - switch (*p) - { - case '"': - case '\'': - case '{': - { - register char - escape; - - escape=(*p); - if (escape == '{') - escape='}'; - for (p++; *p != '\0'; p++) - { - if ((*p == '\\') && ((*(p+1) == escape) || (*(p+1) == '\\'))) - p++; - else - if (*p == escape) - { - p++; - break; - } - token[i++]=(*p); - } - break; - } - default: - { - char - *q; - - double_val=strtod(p,&q); - (void) double_val; - if (p != q) - { - for ( ; p < q; p++) - token[i++]=(*p); - if (*p == '%') - token[i++]=(*p++); - break; - } - if ((*p != '\0') && !isalpha((int) *p) && (*p != *DirectorySeparator) && - (*p != '#') && (*p != '<')) - { - token[i++]=(*p++); - break; - } - for ( ; *p != '\0'; p++) - { - if ((isspace((int)(unsigned char) *p) || (*p == '=')) && (*(p-1) != '\\')) - break; - token[i++]=(*p); - if (*p == '(') - for (p++; *p != '\0'; p++) - { - token[i++]=(*p); - if ((*p == ')') && (*(p-1) != '\\')) - break; - } - } - break; - } - } - } - token[i]='\0'; - { - char - *r; - - /* - Parse token in form "url(#%s)" - */ - if ((LocaleNCompare(token,"url(#",5) == 0) && - ((r = strrchr(token,')')) != NULL)) - { - *r='\0'; - (void) memmove(token,token+5,r-token+1); - } - } - if (end != (char **) NULL) - *end=p; + (void) MagickGetToken(start,end,token, MaxTextExtent); } /* @@ -3673,6 +3582,166 @@ % % % % % % ++ M a g i c k G e t T o k e n % +% % +% % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Method MagickGetToken gets a token from the token stream. A token is defined +% as sequence of characters delimited by whitespace (e.g. clip-path), a +% sequence delimited with quotes (.e.g "Quote me"), or a sequence enclosed +% in parenthesis (e.g. rgb(0,0,0)). +% +% The format of the MagickGetToken method is: +% +% void MagickGetToken(const char *start,char **end,char *token, +% const size_t buffer_length) +% +% A description of each parameter follows: +% +% o start: the start of the token sequence. +% +% o end: point to the end of the token sequence (may be NULL). +% +% o token: copy the token to this buffer. +% +% o buffer_length: size of the token buffer. If the token exceeds +% the buffer size, the token will be truncated, but the +% parser will still update the end pointer as if the +% truncation did not occur. +% +% o returns: Size of the consumed token, not including a terminating +% null character. If this is larger or equal to the buffer +% size then truncation has occured. +% +*/ +MagickExport size_t MagickGetToken(const char *start,char **end,char *token, + const size_t buffer_length) +{ + register char + *p; + + register size_t + i; + + register size_t + length = buffer_length - 1; + + double + double_val; + + assert(start != (const char *) NULL); + assert(token != (char *) NULL); + + i=0; + p=(char *) start; + + if (*p != '\0') + { + while (isspace((int)(unsigned char) (*p)) && (*p != '\0')) + p++; + switch (*p) + { + case '"': + case '\'': + case '{': + { + register char + escape; + + escape=(*p); + if (escape == '{') + escape='}'; + for (p++; *p != '\0'; p++) + { + if ((*p == '\\') && ((*(p+1) == escape) || (*(p+1) == '\\'))) + p++; + else + if (*p == escape) + { + p++; + break; + } + if (i < length) + token[i++]=(*p); + } + break; + } + default: + { + char + *q; + + double_val=strtod(p,&q); + (void) double_val; + if (p != q) + { + for ( ; p < q; p++) + if (i < length) + token[i++]=(*p); + if (*p == '%') + if (i < length) + { + token[i++]=(*p); + p++; + } + break; + } + if ((*p != '\0') && !isalpha((int) *p) && (*p != *DirectorySeparator) && + (*p != '#') && (*p != '<')) + { + if (i < length) + { + token[i++]=(*p); + p++; + } + break; + } + for ( ; *p != '\0'; p++) + { + if ((isspace((int)(unsigned char) *p) || (*p == '=')) && (*(p-1) != '\\')) + break; + if (i < length) + token[i++]=(*p); + if (*p == '(') + for (p++; *p != '\0'; p++) + { + if (i < length) + token[i++]=(*p); + if ((*p == ')') && (*(p-1) != '\\')) + break; + } + } + break; + } + } + } + token[i]='\0'; + { + char + *r; + + /* + Parse token in form "url(#%s)" + */ + if ((LocaleNCompare(token,"url(#",5) == 0) && + ((r = strrchr(token,')')) != NULL)) + { + *r='\0'; + (void) memmove(token,token+5,r-token+1); + } + } + if (end != (char **) NULL) + *end=p; + return (p-start+1); +} + +/* +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% % +% % % M a g i c k R a n d R e e n t r a n t % % % % % diff -r 9ba30629488e -r e797bb0aec31 magick/utility.h --- a/magick/utility.h Sat Apr 30 18:31:06 2016 -0500 +++ b/magick/utility.h Sat Apr 30 18:32:03 2016 -0500 @@ -139,7 +139,7 @@ ExpandFilename(char *), FormatSize(const magick_int64_t size,char *format), GetPathComponent(const char *,PathType,char *), - GetToken(const char *,char **,char *), + GetToken(const char *,char **,char *) MAGICK_FUNC_DEPRECATED, LocaleLower(char *), LocaleUpper(char *), Strip(char *), @@ -156,6 +156,8 @@ extern MagickExport size_t MagickStripSpacesFromString(char *string), + MagickGetToken(const char *start,char **end,char *token, + const size_t buffer_length), MagickStrlCat(char *dst, const char *src, const size_t size) MAGICK_FUNC_NONNULL, MagickStrlCpy(char *dst, const char *src, const size_t size) MAGICK_FUNC_NONNULL, MagickStrlCpyTrunc(char *dst, const char *src, const size_t size) MAGICK_FUNC_NONNULL;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17714
:
7739
|
7740
| 7741 |
7898
|
7899
|
7900
|
7901
|
7902
|
7903
|
7904
|
7905
|
8052