Gimp/libgimpbase
Jehan c059839e78 libgimpbase: use g_try_new0() when allocating the parameters.
Basically the number of parameters comes from plug-ins which could write
whatever crap on the wire. I had a case (playing with Python plug-ins)
where GIMP tried to allocate insane amount of parameters. This is bad
as it allows third-party plug-ins to crash GIMP core.

Instead only *try* to allocate, then return as though there were no
parameters if allocation fails. I also print some info on stderr, but
don't output WARNING/CRITICAL (this is not a core error, but a plug-in
error). Fixes:

> GLib-ERROR **: 16:30:23.357: gmem.c:135: failed to allocate 187186442160 bytes
2019-08-01 18:09:14 +02:00
..
.gitignore enums: add intermediate generated enum files to .gitignore 2017-08-24 15:35:27 -04:00
gimpbase-private.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpbase-private.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpbase.def libgimpbase: add gimp_value_array_new_from_types() 2019-07-30 10:26:08 +02:00
gimpbase.h app, libgimpbase: move lots of GValue and GParamSpec types to libgimpbase 2019-07-26 15:54:33 +02:00
gimpbaseenums.c app, libgimpbase: add gimp:offset operation 2019-06-05 19:06:48 -04:00
gimpbaseenums.h libgimp*: lots of doc fixes and new docs for structs and enums 2019-07-24 01:18:30 +02:00
gimpbasetypes.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpbasetypes.h libgimbase: merge gimpparam.h into gimpparamspecs.h 2019-07-31 10:16:21 +02:00
gimpchecks.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpchecks.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpcompatenums.c libgimpbase: remove almost all deprecated compat cruft 2018-05-20 21:06:29 +02:00
gimpcompatenums.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpcpuaccel.c libgimpbase: add hygon cpu detection and enable MMX/SSE support 2019-05-26 00:19:28 +02:00
gimpcpuaccel.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpenv.c libgimpbase: more (transfer) and (element-type) warnings fixed. 2019-07-28 10:09:46 +02:00
gimpenv.h libgimpbase: add gimp_installation_directory_file(). 2019-02-02 18:51:51 +01:00
gimplimits.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpmemsize.c libgimpbase: more (transfer) and (element-type) warnings fixed. 2019-07-28 10:09:46 +02:00
gimpmemsize.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpmetadata.c libgimpbase: capitalize some docs section titles 2019-08-01 12:48:41 +02:00
gimpmetadata.h Integrate the logic of profile saving with metadata saving 2018-12-04 17:28:24 +01:00
gimpparamspecs.c libgimp, libgimpbase: add some documentation for new functions. 2019-08-01 12:24:06 +02:00
gimpparamspecs.h libgimbase: merge gimpparam.h into gimpparamspecs.h 2019-07-31 10:16:21 +02:00
gimpparasite.c libgimpbase: capitalize some docs section titles 2019-08-01 12:48:41 +02:00
gimpparasite.h libgimp*: lots of doc fixes and new docs for structs and enums 2019-07-24 01:18:30 +02:00
gimpparasiteio.c libgimpbase: always allocate GimpPixPipeParams.placement, add docs 2019-07-24 02:09:49 +02:00
gimpparasiteio.h libgimpbase: remove obsolete members from struct GimpPixPipeParams 2019-07-24 02:22:47 +02:00
gimpprotocol.c libgimpbase: use g_try_new0() when allocating the parameters. 2019-08-01 18:09:14 +02:00
gimpprotocol.h app, libgimp, libgimpbase: forgot to support GIMP_TYPE_UNIT on the wire 2019-07-30 15:04:06 +02:00
gimprectangle.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimprectangle.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpreloc.c libgimpbase: style cleanup of gimpreloc.c 2019-02-05 15:00:44 +01:00
gimpreloc.h libgimpbase: clean up the linux relocation code 2013-01-27 22:26:29 +01:00
gimpsignal.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpsignal.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpunit.c libgimpbase: make the GimpParamSpecUnit struct public 2019-07-30 15:03:03 +02:00
gimpunit.h libgimpbase: make the GimpParamSpecUnit struct public 2019-07-30 15:03:03 +02:00
gimputils.c (source modifs) Fix: Rename macros as it conflicts with Mingw headers. 2019-01-25 19:08:28 +00:00
gimputils.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpvaluearray.c libgimpbase: add gimp_value_array_new_from_types() 2019-07-30 10:26:08 +02:00
gimpvaluearray.h libgimpbase: add gimp_value_array_new_from_types() 2019-07-30 10:26:08 +02:00
gimpwin32-io.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gimpwire.c libgimpbase: add _gimp_wire_{read,write}_int64() 2018-11-19 16:51:23 -05:00
gimpwire.h libgimpbase: add _gimp_wire_{read,write}_int64() 2018-11-19 16:51:23 -05:00
Makefile.am libgimbase: merge gimpparam.h into gimpparamspecs.h 2019-07-31 10:16:21 +02:00
Makefile.gi libgimbase: merge gimpparam.h into gimpparamspecs.h 2019-07-31 10:16:21 +02:00
test-cpu-accel.c