zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #07109
[Bug 971565] [NEW] Image module crashes upon MVG image.
Public bug reported:
The following test
zorba_image_module/image/basic_svg.xq
leads to a segmentation fault, because the following assertion fails
when lImage.magick() is set to MVG:
if (lImage.magick().compare("SVG") != 0) {
ImageFunction::throwErrorWithQName(aDynCtx, "IM002", "The passed xs:base64Binary is not an image of type SVG");
}
The following fix seems to solve this:
if (lImage.magick().compare("SVG") != 0 && lImage.magick().compare("MVG") != 0) {
ImageFunction::throwErrorWithQName(aDynCtx, "IM002", "The passed xs:base64Binary is not an image of type SVG");
}
** Affects: zorba
Importance: Undecided
Assignee: Matthias Brantner (matthias-brantner)
Status: New
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/971565
Title:
Image module crashes upon MVG image.
Status in Zorba - The XQuery Processor:
New
Bug description:
The following test
zorba_image_module/image/basic_svg.xq
leads to a segmentation fault, because the following assertion fails
when lImage.magick() is set to MVG:
if (lImage.magick().compare("SVG") != 0) {
ImageFunction::throwErrorWithQName(aDynCtx, "IM002", "The passed xs:base64Binary is not an image of type SVG");
}
The following fix seems to solve this:
if (lImage.magick().compare("SVG") != 0 && lImage.magick().compare("MVG") != 0) {
ImageFunction::throwErrorWithQName(aDynCtx, "IM002", "The passed xs:base64Binary is not an image of type SVG");
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/971565/+subscriptions
Follow ups
References