gimp/plug-ins/common
Jehan 240dc12912 Issue #8385: problem importing SVG containing huge data.
libxml has a XML_PARSE_HUGE parsing option, which can be turned on with
the RSVG_HANDLE_FLAG_UNLIMITED option in librsvg.
We cannot just set this option by default because it is a security
hazard as a maliciously malformed SVG could use this to consume too much
memory.

Instead, let's just propose the option interactively when we fail to
create a rsvg handle. Unfortunately right now we can't single out this
specific error because librsvg actually returns an unrelated (false
positive created by the huge data) error. So we just propose the option
for any kind of handle creation failure.

Furthermore, the option is only available on interactive plug-in calls
so far. In particular, the PDB API doesn't have an option allowing a
script writer to run "file-svg-load" with the huge data option.

As for the thumbnail API, it is never meant to be used interactively and
not really as a common script function, so it won't have the huge data
option either.
2022-07-19 18:29:28 +02:00
..
.gitignore plug-ins: fix generated common plug-in files and file-wbmp localization. 2022-07-07 21:27:39 +02:00
Makefile.am plug-ins: Create wbmp plug-in 2022-07-07 19:23:35 +00:00
align-layers.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
animation-optimize.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
animation-play.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
blinds.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
border-average.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
busy-dialog.c plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
checkerboard.c plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
cml-explorer.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
colormap-remap.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
compose.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
contrast-retinex.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
crop-zealous.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
curve-bend.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
decompose.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
depth-merge.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
despeckle.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
destripe.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-aa.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-cel.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-compressor.c plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
file-csource.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-desktop-link.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-dicom.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-gbr.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-gegl.c plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
file-gif-load.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-gif-save.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-gih.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-glob.c plug-ins: override set_i18n() for file-glob. 2022-06-08 20:59:09 +02:00
file-header.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-heif.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-html-table.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-jp2-load.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-jpegxl.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-mng.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-pat.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-pcx.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-pdf-load.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-pdf-save.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-pix.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-png.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-pnm.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-ps.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-psp.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-raw-data.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-sunras.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-svg.c Issue #8385: problem importing SVG containing huge data. 2022-07-19 18:29:28 +02:00
file-tga.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-wbmp.c plug-ins: fix generated common plug-in files and file-wbmp localization. 2022-07-07 21:27:39 +02:00
file-wmf.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-xbm.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-xmc.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-xpm.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
file-xwd.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
film.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
gimprc.common plug-ins: fix generated common plug-in files and file-wbmp localization. 2022-07-07 21:27:39 +02:00
gradient-map.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
grid.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
guillotine.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
hot.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
jigsaw.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
mail.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
meson.build plug-ins: Create wbmp plug-in 2022-07-07 19:23:35 +00:00
mkgen.pl plug-ins: remove deprecated API support from common/mkgen.pl 2019-09-03 13:25:25 +02:00
nl-filter.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
plugin-browser.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
plugin-defs.pl plug-ins: fix generated common plug-in files and file-wbmp localization. 2022-07-07 21:27:39 +02:00
procedure-browser.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
qbist.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
sample-colorize.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
smooth-palette.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
sparkle.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
sphere-designer.c plug-ins: Make sure we initalize GimpVector4 2022-07-08 09:50:25 +02:00
tile-small.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
tile.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
unit-editor.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
van-gogh-lic.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
warp.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
wavelet-decompose.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00
web-browser.c plug-ins, libgimp: override set_i18n() for all our core plug-ins. 2022-06-05 01:57:02 +02:00
web-page.c plug-ins: label and documentation of plug-ins localized plug-in side. 2022-07-05 12:23:51 +02:00