summaryrefslogtreecommitdiff
path: root/rsvg-image.c
Commit message (Collapse)AuthorAgeFilesLines
* Internally use 'char *' for string dataFederico Mena Quintero2015-02-121-3/+3
| | | | | | | | There was a mixture of guint8*, guchar*, gchar*, etc. Use char* because that's about as sane as we can get, and only cast where we can't change the public API or where we must interface with other libraries. *Cough* xmlChar *cough*. This removes a metric assload of compiler warnings, and I'm fine with that.
* all: Add flag to keep image data2.40.3Suzuki Toshiya2014-08-171-21/+35
| | | | | | And use it when converting to a PDF in rsvg-convert. https://bugzilla.gnome.org/show_bug.cgi?id=721354
* Use mime types instead of content typesChristian Persch2012-01-281-6/+3
| | | | | Instead of converting back and forth, just use the mime types directly.
* Create type specific gdk-pixbuf loaderChristian Persch2012-01-271-2/+16
| | | | | When we know the mime type of the content, use gdk_pixbuf_loader_new_with_mime_type().
* Add content_type out param to _rsvg_io_acquire_*Christian Persch2012-01-271-1/+1
|
* Add permission check before loading other filesChristian Persch2012-01-261-5/+5
| | | | | | Wrap _rsvg_io_acquire_* in _rsvg_handle_acquire_* that first checks whether the load should be allowed. For the moment, always allow the load; more restricted policies will be introduced in a follow-up commit.
* Split IO handling to rsvg-io.[ch]Christian Persch2012-01-131-149/+7
| | | | Add rsvg-io.[ch], move the code there, clean it up, and adapt the callers.
* Remove unused functionChristian Persch2011-11-271-49/+31
|
* Use cairo image surfacesChristian Persch2011-11-271-11/+33
| | | | ... instead of GdkPixbufs to store the filter results.
* Revert "Only permit threadsafe pixbuf loaders"Christian Persch2011-11-071-13/+0
| | | | | This reverts commit 9333f2da7ea92d475a45861fcf47dc385a783171. It didn't work as intended and needs more work.
* Only permit threadsafe pixbuf loadersChristian Persch2011-11-071-0/+13
| | | | | | | | | | When loading an embedded image using gdk-pixbuf, only use threadsafe pixbuf loaders. This prevents a deadlock with e.g. embedded TIFF images. This will cause the SVG to render without the embedded image; it will NOT cause the loading of the SVG to fail. https://bugzilla.gnome.org/show_bug.cgi?id=473862 https://bugzilla.gnome.org/show_bug.cgi?id=590788
* Store node type separately in RsvgNodeChristian Persch2011-09-061-1/+1
| | | | | | | | | | | | The node name (formerly RsvgNode:type) cannot be used to infer the sub-type of RsvgNode that we're dealing with, since for unknown elements we put type = node-name. This lead to a (potentially exploitable) crash e.g. when the element name started with "fe" which tricked the old code into considering it as a RsvgFilterPrimitive. CVE-2011-3146 https://bugzilla.gnome.org/show_bug.cgi?id=658014
* Require gio-2.0Christian Persch2010-06-221-7/+0
|
* Simplify code by using g_clear_errorChristian Persch2010-06-061-12/+1
| | | | | | No need to provide our own implementation of this function. Bug #620649.
* Save an extra allocation by directly decoding the base64 data into a GByteArray.Christian Persch2010-06-051-8/+8
| | | | Bug #620130.
* fix memory leak.Hiroyuki Ikezoe2010-05-301-0/+1
|
* fix memory leak.Hiroyuki Ikezoe2010-05-271-0/+1
|
* Use g_file_get_contents to local load image data.Hiroyuki Ikezoe2010-05-271-29/+6
|
* Use g_base64_decode() instead of our own base64 function.Hiroyuki Ikezoe2010-05-271-166/+6
| | | | | We can use g_base64_decode here since librsvg already requires GLib-2.12.
* [PATCH 2/3] Follow up fix of RsvgState change.Hiroyuki Ikezoe2010-05-021-1/+1
| | | | rsvg_state_current -> rsvg_current_state.
* set proper mode-line and fix indent.Hiroyuki Ikezoe2010-04-271-16/+17
|
* remove needless G_OBJECT macros.Hiroyuki Ikezoe2010-04-071-1/+1
|
* mem leaks. Bug #444444Thomas Andersen2009-02-191-1/+2
| | | | | | | | | 2009-02-19 Thomas Andersen <phomes@gmail.com> * rsvg-image.c: mem leaks. Bug #444444 svn path=/trunk/; revision=1207
* Do not allocate RsvgState in rsvg_new_image(), use the instance that'sRobert Staudinger2009-02-191-2/+1
| | | | | | | | | | 2009-02-19 Robert Staudinger <robert.staudinger@gmail.com> * rsvg-file.c: Do not allocate RsvgState in rsvg_new_image(), use the instance that's been allocated and set up in the call to _rsvg_node_init(). Bug #557082 svn path=/trunk/; revision=1197
* rsvg-convert crashed with SIGSEGV in _rsvg_acquire_xlink_href_resource()Dominic Lachowicz2008-03-041-6/+17
| | | | | | | | | | 2008-03-04 Dominic Lachowicz <domlachowicz@gmail.com> * rsvg-image.c: rsvg-convert crashed with SIGSEGV in _rsvg_acquire_xlink_href_resource() (#520261) svn path=/trunk/; revision=1158
* Migrate to gio (#513778)Jan Arne Petersen2008-02-021-41/+31
| | | | | | | | | 2008-02-02 Jan Arne Petersen <jpetersen@jpetersen.org> * Migrate to gio (#513778) svn path=/trunk/; revision=1142
* fix modeline.Emmanuel Pacaud2007-06-221-5/+14
| | | | | | | | | | | | | | | | | | | | | | 2007-06-22 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> * test-display.c: fix modeline. 2007-06-22 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> Fix for Bug 448327 * rsvg-base.c (rsvg_path_is_uri): new. (rsvg_get_base_uri_from_filename): really return a URI. (rsvg_handle_set_base_uri): accept a non URI as parameter, converting it to local URI. * rsvg-convert.c: fix rsvg_handle_set_base_uri call. * rsvg-image.c (rsvg_get_file_path): adpat the code to the fact base_uri is now really an URI. (rsvg_acquire_file_resource): handle path==NULL. svn path=/trunk/; revision=1120
* Bug 421697 - rsvg_handle_new_from_file overwrites GErrorDom Lachowicz2007-04-131-3/+3
| | | | | | | | 2007-04-12 Dom Lachowicz <domlachowicz@gmail.com> * rsvg-image.c: Bug 421697 - rsvg_handle_new_from_file overwrites GError svn path=/trunk/; revision=1105
* Fix indentation of *.h files. Running indent on them was not a good idea.Emmanuel Pacaud2007-01-121-1/+1
| | | | | | | | | | 2007-01-12 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> Fix indentation of *.h files. Running indent on them was not a good idea. Also add sts setting to vim modeline. svn path=/trunk/; revision=1089
* Indentation fix, using: indent -kr -nut -pcs -psl -i4 -l100Emmanuel Pacaud2007-01-121-475/+437
| | | | | | | | | 2007-01-12 Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> Indentation fix, using: indent -kr -nut -pcs -psl -i4 -l100 svn path=/trunk/; revision=1088
* Initialize node->super, to avoid a crash (#339637)Dom Lachowicz2006-04-251-0/+1
| | | | | | 2006-04-25 Dom Lachowicz <cinamod@hotmail.com> * rsvg-image.c: Initialize node->super, to avoid a crash (#339637)
* Use rsvg_return_if_fail where appropriate, to make life easier forDom Lachowicz2006-04-191-4/+4
| | | | | | | | 2006-04-19 Dom Lachowicz <cinamod@hotmail.com> * *.[ch]: Use rsvg_return_if_fail where appropriate, to make life easier for language bindings and to report errors more consistently (bug #338881)
* Export RsvgHandle and RsvgHandleClass to the outside world so you canDom Lachowicz2006-02-061-1/+1
| | | | | * rsvg.h: Export RsvgHandle and RsvgHandleClass to the outside world so you can subclass them * *.c: Changes necessary for ^^^
* added g_return_XXX sneeze-guards around public APIDom Lachowicz2006-01-111-0/+3
|
* silence a runtime warningDom Lachowicz2005-12-041-1/+4
|
* bug 322489Dom Lachowicz2005-11-261-4/+7
|
* string rttiCaleb Michael Moore2005-10-241-1/+0
|
* image warning fixCaleb Michael Moore2005-10-231-16/+9
|
* text rewriteCaleb Michael Moore2005-10-231-9/+9
|
* got rid of the legacy dimension systemCaleb Michael Moore2005-10-221-3/+0
|
* late normalization of coordinatesCaleb Michael Moore2005-10-221-9/+9
|
* minor aspect ratio fixCaleb Michael Moore2005-10-111-1/+1
|
* filters workingCaleb Michael Moore2005-07-281-4/+1
|
* bug 309220Dom Lachowicz2005-06-301-5/+0
|
* DOM progression of shapesCaleb Michael Moore2005-05-301-1/+2
|
* further DOM restructuringCaleb Michael Moore2005-05-161-50/+49
|
* bug 304045Dom Lachowicz2005-05-141-3/+2
|
* DOM stuffCaleb Michael Moore2005-05-141-7/+6
|
* naming and structure changesCaleb Michael Moore2005-03-161-17/+19
|
* bug 169051Dom Lachowicz2005-03-031-1/+6
|