1. 06 Jul, 2018 1 commit
  2. 21 Dec, 2017 1 commit
  3. 20 Nov, 2017 1 commit
    • Tobias Stoeckmann's avatar
      Bug 789614 - Fix heap overflow in pattern handling · 30d29e03
      Tobias Stoeckmann authored
      It is possible to trigger a heap overflow while opening a malicious
      pattern due to integer overflows.
      
      The validation is adopted from plugin-parser. It also takes a proper
      cast to gsize to avoid integer overflow in size calculation.
      30d29e03
  4. 04 Jul, 2014 2 commits
  5. 02 Jul, 2014 1 commit
  6. 01 Jul, 2014 2 commits
  7. 22 Feb, 2014 1 commit
  8. 03 May, 2012 1 commit
  9. 02 May, 2012 7 commits
  10. 11 Apr, 2010 1 commit
  11. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  12. 13 Dec, 2008 1 commit
    • Martin Nordholts's avatar
      s/temp_buf_data/temp_buf_get_data/ · ddaa0b48
      Martin Nordholts authored
      * app/base/pixel-region.c
      * app/base/temp-buf.c
      * app/base/temp-buf.h
      * app/core/gimpbrush-load.c
      * app/core/gimpbrush-scale.c
      * app/core/gimpbrush.c
      * app/core/gimpbrushgenerated.c
      * app/core/gimpgradient.c
      * app/core/gimpimage.c
      * app/core/gimppalette.c
      * app/core/gimppattern-load.c
      * app/core/gimppattern.c
      * app/core/gimppreviewcache.c
      * app/core/gimpviewable.c
      * app/paint-funcs/paint-funcs-generic.h
      * app/paint/gimpbrushcore.c
      * app/paint/gimpclone.c
      * app/paint/gimperaser.c
      * app/paint/gimpheal.c
      * app/paint/gimpink.c
      * app/paint/gimppaintbrush.c
      * app/pdb/brush-cmds.c
      * app/pdb/brushes-cmds.c
      * app/pdb/drawable-cmds.c
      * app/pdb/image-cmds.c
      * app/pdb/pattern-cmds.c
      * app/pdb/patterns-cmds.c
      * app/text/gimpfont.c
      * app/tools/gimpiscissorstool.c
      * app/vectors/gimpvectors-preview.c
      * app/widgets/gimpbrushselect.c
      * app/widgets/gimppatternselect.c
      * app/widgets/gimpviewrenderer.c
      
      svn path=/trunk/; revision=27782
      ddaa0b48
  13. 09 Dec, 2006 1 commit
  14. 03 Oct, 2006 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new files. · d9cf806b
      Michael Natterer authored
      2006-10-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimppattern-load.[ch]: new files.
      
      	* app/core/gimppattern.[ch]: removed the loading stuff here.
      
      	* app/core/gimp.c: changed accordingly.
      d9cf806b
  15. 29 Aug, 2006 1 commit
    • Michael Natterer's avatar
      Changed GimpViewable preview rendering to have a context to get · b53aa45a
      Michael Natterer authored
      2006-08-29  Michael Natterer  <mitch@gimp.org>
      
      	Changed GimpViewable preview rendering to have a context to get
      	FG/BG/whatever from. Use the context to enable dynamic FG/BG
      	colors in gradients. Fixes bug #127676 and bug #352214. Addresses
      	bug #128367 (doesn't fix it because there's no loading/saving and
      	no GUI yet).
      
      	* app/core/core-enums.[ch]: added enum GimpGradientColor to enable
      	specifying gradient colors in terms of foreground and background.
      
      	* app/core/gimpgradient.[ch]: added color_type members to the
      	GimpGradientSegment struct and honor them in
      	gimp_gradient_get_color_at(). Added GimpContext parameters to all
      	functions which finally call get_color_at().
      
      	* app/core/gimp-gradients.c: use the new method to implement the
      	builtin gradients.
      
      	* app/core/gimpviewable.[ch]: added GimpContext parameters to all
      	get_preview() and get_pixbuf() functions.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-preview.[ch]
      	* app/core/gimpimagefile.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.[ch]
      	* app/text/gimpfont.c
      	* app/vectors/gimpvectors-preview.[ch]: changed ::get_preview()
      	and ::get_pixbuf() implementations accordingly.
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimppalette-import.[ch]
      	* app/dialogs/dialogs-constructors.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpnavigationeditor.c
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/actions/gradient-editor-commands.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcellrendererviewable.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpclipboard.c
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainerbox.c
      	* app/widgets/gimpcontainercombobox.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerentry.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.[ch]
      	* app/widgets/gimpdataeditor.[ch]
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimppropwidgets.[ch]
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpthumbbox.[ch]
      	* app/widgets/gimptoolbox-image-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpundoeditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpview-popup.[ch]
      	* app/widgets/gimpview.[ch]
      	* app/widgets/gimpviewablebutton.c
      	* app/widgets/gimpviewabledialog.c
      	* app/widgets/gimpviewrenderer.[ch]
      	* app/widgets/gimpviewrenderer-frame.c
      	* app/widgets/gimpviewrendererbrush.c
      	* app/widgets/gimpviewrendererbuffer.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/widgets/gimpviewrendererimage.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb: added tons of GimpContext members
      	and parameters, implement GimpDocked::set_context() in many
      	widgets. Pass these locally remembered contexts to GimpViewable
      	functions. Did some minor cleanups on the way. There are still
      	some minor FIXMEs around where the code uses a NULL context (which
      	is allowed by the APIs)
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      b53aa45a
  16. 15 May, 2006 1 commit
  17. 28 Feb, 2006 1 commit
    • Sven Neumann's avatar
      app/core/gimpbrush.c app/core/gimpbuffer.c app/core/gimpimagefile.c · 5e7ce540
      Sven Neumann authored
      2006-02-28  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpimagefile.c
      	* app/core/gimppattern.c
      	* app/dialogs/preferences-dialog.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimprectselecttool.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimpsizebox.c
      	* app/widgets/gimptemplateeditor.c
      	* plug-ins/imagemap/imap_statusbar.c: use U+00D7 MULTIPLICATION SIGN
      	instead of x when displaying sizes.
      5e7ce540
  18. 10 Dec, 2005 1 commit
  19. 02 Nov, 2005 1 commit
  20. 09 Oct, 2005 1 commit
    • Michael Natterer's avatar
      set the "tooltip" return value to NULL before calling the virtual · 34697840
      Michael Natterer authored
      2005-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.c (gimp_viewable_get_description): set the
      	"tooltip" return value to NULL before calling the virtual function.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/core/gimppaintinfo.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimptoolinfo.c (get_description): don't do it here.
      
      	* app/core/gimpbuffer.c
      	* app/core/gimppaintinfo.c: untabbify, cleanup.
      
      	* app/core/gimpobject.c: emit "notify::name" whenerver the name
      	changes, clenup.
      34697840
  21. 23 Jul, 2005 1 commit
  22. 08 Jun, 2005 1 commit
    • Sven Neumann's avatar
      Removed "stingy-memory-use" all over the place. This feature was really · c1363db8
      Sven Neumann authored
      2005-06-08  Sven Neumann  <sven@gimp.org>
      
      	Removed "stingy-memory-use" all over the place. This feature was
      	really not that useful anymore. The GUI for the preference option
      	was already removed for GIMP 2.2.  Fixes bug #306617.
      
      	* app/config/gimpbaseconfig.[ch]: set IGNORE flag on
      	"stingy-memory-use".
      
      	* app/config/gimpcoreconfig.h: added a comment that the
      	font_path_writable variable is unused.
      
      	* app/base/temp-buf.[ch]: removed code that used to deal with
      	swapping temp-bufs to disk.
      
      	* app/base/base.c: made base_config a static variable.
      
      	* app/core/gimpdata.[ch]
      	* app/core/gimpdatafactory.[ch]: removed stingy_memory_use
      	parameter from data construction methods.
      
      	* app/core/gimp-gradients.c
      	* app/core/gimpbrush-load.[ch]
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpcontext.c
      	* app/core/gimpgradient-load.[ch]
      	* app/core/gimpgradient.[ch]
      	* app/core/gimppalette-import.c
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch]: changed accordingly.
      c1363db8
  23. 25 May, 2005 2 commits
    • Sven Neumann's avatar
      added MIME type as a construct property to GimpData. · 59cb5d75
      Sven Neumann authored
      2005-05-26  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdata.[ch]: added MIME type as a construct property
      	to GimpData.
      
      	* app/core/gimpbrush-load.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: set the MIME type when loading a data
      	object from file. MIME types needs review and GimpPalette isn't
      	quite done yet...
      
      	* app/core/gimpdashpattern.c: cosmetics.
      59cb5d75
    • Michael Natterer's avatar
      added virtual function GimpViewable::get_size() and public API · 7abaab62
      Michael Natterer authored
      2005-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	GimpViewable::get_size() and public API gimp_viewable_get_size()
      	which return width and height and a boolean indicating if the
      	viewable has a size at all.
      	Added default implementation of GimpViewable::get_popup_size()
      	using the new get_size() API.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage.c
      	* app/core/gimppattern.c: implement GimpViewable::get_size().
      
      	* app/core/gimpbrush.c
      	* app/core/gimppattern.c: removed GimpViewable::get_popup_size()
      	implementations, the default one is good enough.
      
      	* app/core/gimpbrushpipe.c (gimp_brush_pipe_get_popup_size):
      	redirect to gimp_viewable_get_size() instead of duplicating its
      	return values.
      
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpview.c: allow pixbuf dragging out of any
      	viewable that has a size.
      
      	* app/widgets/gimpdrawabletreeview.c: removed pixbuf dragging code
      	here.
      
      	* app/widgets/gimpdnd.c: set gimp busy around encoding/decoding
      	pixbufs into/from GtkSelectionData, because it can be a time
      	consuming operation.
      7abaab62
  24. 20 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/core/gimpgradient-load.c app/core/gimppalette.c app/core/gimppattern.c · 1e6a94e6
      Sven Neumann authored
      2005-02-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpgradient-load.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/plug-in/plug-in.c
      	* libgimpbase/gimputils.c
      	* libgimpmodule/gimpmodule.c
      	* libgimpwidgets/gimppatheditor.c
      	* tools/pdbgen/pdb/image.pdb: use g_filename_display_name() or
      	g_filename_display_basename() where appropriate.
      
      	* app/pdb/image_cmds.c: regenerated.
      1e6a94e6
  25. 07 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/base/base.c app/base/temp-buf.c app/base/tile-swap.c · 648cccde
      Sven Neumann authored
      2005-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base.c
      	* app/base/temp-buf.c
      	* app/base/tile-swap.c
      	* app/config/gimpconfig-file.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdata.c
      	* app/core/gimpenvirontable.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimpgradient-save.c
      	* app/core/gimppalette-import.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/dialogs/user-install-dialog.c
      	* app/gui/session.c
      	* app/menus/menus.c
      	* app/widgets/gimpdevices.c: use gstdio wrappers.
      648cccde
  26. 26 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added "gboolean writable" to the GimpDataFactoryLoaderEntry struct. Return · 638f2b3a
      Michael Natterer authored
      2004-07-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdatafactory.h: added "gboolean writable" to the
      	GimpDataFactoryLoaderEntry struct. Return a GList* instead of
      	GimpData* from GimpDataLoadFunc so it's possible to load more than
      	one data object from one file.
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
      	changed accordingly: add all items of the returned lists to the
      	data factory. Make the data object writable only if it's in the
      	writable path *and* its loader entry says it's a writable format
      	*and* the returned list contains exactly one element.
      
      	* app/core/gimp.c (gimp_real_initialize): declare all loader
      	entries as writable where we have code to read and write exactly
      	one object per file; all others are not writable.
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient-load.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch] (all load functions): return a list
      	containing the loaded object instead of the object itself.
      638f2b3a
  27. 03 Jun, 2004 3 commits
    • Sven Neumann's avatar
      if a Title is set, use that as the pattern name. · 506c4c71
      Sven Neumann authored
      2004-06-03  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimppattern.c (gimp_pattern_load_pixbuf): if a Title is
      	set, use that as the pattern name.
      506c4c71
    • Sven Neumann's avatar
      removed commented-out message. · 532d42d0
      Sven Neumann authored
      2004-06-03  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
      	removed commented-out message.
      
      	* app/core/gimppattern.[ch]: fixed handling of errors and PNG
      	comments in new pattern loader. Renamed functions for consistency
      	with other data loaders.
      
      	* app/core/gimp.c: changed accordingly.
      532d42d0
    • Dave Neary's avatar
      Add support for GdkPixbuf patterns, so now all of png, jpex, pnm, xbm, · d088fd3f
      Dave Neary authored
      
      
      2004-06-03  Dave Neary  <bolsh@gimp.org>
      
              * app/core/gimp.c:
              * app/core/gimpdatafactory.c:
              * app/core/gimppattern.[ch]: Add support for GdkPixbuf patterns,
              so now all of png, jpex, pnm, xbm, bmp, gif, ico, pcx, ras, tga,
              xpm and tiff can be used for patterns.
      d088fd3f
  28. 13 Feb, 2004 1 commit
    • Michael Natterer's avatar
      Fixed GimpData's default "writable" and "deletable" behaviour: · d991e64b
      Michael Natterer authored
      2004-02-13  Michael Natterer  <mitch@gimp.org>
      
      	Fixed GimpData's default "writable" and "deletable" behaviour:
      
      	* app/core/gimpdata.c (gimp_data_init): default to writable and
      	deletable == TRUE (something that has no filename was never loaded
      	from disk and can't be undeletable or read-only).
      	Fixes bug #134274.
      
      	* app/core/gimpdata.[ch]: added new function
      	gimp_data_make_internal() which frees the filename and sets the
      	data's flags accordingly.
      
      	* app/core/gimp-gradients.c (gimp_gradients_add_gradient)
      	* app/core/gimpbrush.c (gimp_brush_get_standard)
      	* app/core/gimpgradient.c (gimp_gradient_get_standard)
      	* app/core/gimppalette.c (gimp_palette_get_standard)
      	* app/core/gimppattern.c (gimp_pattern_get_standard): use the
      	new function for internal data objects.
      
      	* app/core/gimpdata.c (gimp_data_save, gimp_data_delete_from_disk)
      	* app/core/gimpdatafactory.c (gimp_data_factory_save_single):
      	bail out with g_return_if_fail() is the data is not writable
      	or deletable.
      
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdatafactoryview.c: changed accordingly.
      d991e64b
  29. 29 Jan, 2004 1 commit
    • Michael Natterer's avatar
      GimpData code review: · 44cac5ae
      Michael Natterer authored
      2004-01-29  Michael Natterer  <mitch@gimp.org>
      
      	GimpData code review:
      
      	* app/core/gimpdata.c (gimp_data_init): default to
      	writable = FALSE and dirty = TRUE.
      
      	* app/core/gimpbrushgenerated.[ch]: added "const gchar *name" to
      	gimp_brush_generated_new().
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpgradient.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: set all standard datas to clean and
      	internal, check for g_path_is_absolute() in all load functions,
      	pass the data's name as construct property to g_object_new()
      	instead of calling gimp_object_set_name() after creation, fixed
      	some UTF-8 handling, spacing, indentation, coding style, general
      	cleanup.
      44cac5ae