1. 12 Feb, 2015 1 commit
    • Federico Mena Quintero's avatar
      Internally use 'char *' for string data · 80f6366f
      Federico Mena Quintero authored
      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.
      80f6366f
  2. 10 Mar, 2013 1 commit
    • Christian Persch's avatar
      io: Implement strict load policy · f01aded7
      Christian Persch authored
      Allow any file to load from data:, and any resource to load from other
      resources. Only allow file: to load other file: URIs from below the path
      of the base file. Any other loads are denied.
      
      Bug #691708.
      f01aded7
  3. 07 Jun, 2012 1 commit
  4. 26 Mar, 2012 1 commit
  5. 30 Jan, 2012 1 commit
    • Christian Persch's avatar
      Plug a mem leak · a3c9aaa7
      Christian Persch authored
      Don't leak the GFile.
      
      ==2493== 46 (16 direct, 30 indirect) bytes in 1 blocks are definitely lost in loss record 579 of 921
      ==2493==    at 0x402AD89: malloc (vg_replace_malloc.c:236)
      ==2493==    by 0x45772DA: standard_malloc (gmem.c:85)
      ==2493==    by 0x4577680: g_malloc (gmem.c:159)
      ==2493==    by 0x458B29D: g_slice_alloc (gslice.c:1003)
      ==2493==    by 0x458B805: g_slice_alloc0 (gslice.c:1029)
      ==2493==    by 0x426DBA7: g_type_create_instance (gtype.c:1872)
      ==2493==    by 0x4250717: g_object_constructor (gobject.c:1839)
      ==2493==    by 0x4252488: g_object_newv (gobject.c:1622)
      ==2493==    by 0x4252A17: g_object_new (gobject.c:1532)
      ==2493==    by 0x4176D3A: _g_local_file_new (glocalfile.c:288)
      ==2493==    by 0x417EA84: g_local_vfs_get_file_for_uri (glocalvfs.c:110)
      ==2493==    by 0x410E8DB: g_vfs_get_file_for_uri (gvfs.c:130)
      ==2493==    by 0x40C93DE: g_file_new_for_uri (gfile.c:5893)
      ==2493==    by 0x403A59F: _rsvg_io_acquire_data (rsvg-io.c:265)
      a3c9aaa7
  6. 28 Jan, 2012 1 commit
  7. 27 Jan, 2012 5 commits
  8. 12 Jan, 2012 2 commits
    • Christian Persch's avatar
      Plug a mem leak · 793684ee
      Christian Persch authored
      ==25857== 64 bytes in 1 blocks are definitely lost in loss record 106 of 145
      ==25857==    at 0x402AD89: malloc (vg_replace_malloc.c:236)
      ==25857==    by 0x45CDD4A: standard_malloc (gmem.c:85)
      ==25857==    by 0x45CE0F0: g_malloc (gmem.c:159)
      ==25857==    by 0x45E38AA: g_strdup (gstrfuncs.c:356)
      ==25857==    by 0x4039F7F: rsvg_get_file_path (rsvg-io.c:64)
      ==25857==    by 0x4039FDF: rsvg_acquire_file_data (rsvg-io.c:98)
      793684ee
    • Christian Persch's avatar
      Split IO handling to rsvg-io.[ch] · 1291ebc3
      Christian Persch authored
      Add rsvg-io.[ch], move the code there, clean it up, and adapt the callers.
      1291ebc3