Gimp/plug-ins/script-fu
Alx Sa 705b0527b3 script-fu: Prevent crash when script object is NULL
When interacting with a layer/channel
widget in a plug-in GUI, a temporary
procedure is spawned. Script-fu plug-ins
run a check for translation whenever a new
procedure is run, but there's none available
for "temp-procedure-number-?" which is
spawned by the layer/channel pop-up.
This causes a crash because
script_fu_script_get_i18n () assumes the
script object it receives is always valid.

This patch adds a g_return_if_fail () call
to script_fu_script_get_i18n () to prevent
future crashes, and makes sure the script
object is not NULL after
script_fu_find_script () is called in
script_fu_get_i18n_for_proc () to prevent
the initial call for temporary procedures.
2025-11-04 19:35:13 +00:00
..
console ScriptFu: fix #10307 plugin call display not effective 2024-04-25 12:51:00 +00:00
interpreter ScriptFu: fix #12837 i18n for independent scripts 2025-06-09 13:50:12 +00:00
libscriptfu script-fu: Prevent crash when script object is NULL 2025-11-04 19:35:13 +00:00
scripts Revert "ScriptFu: scripts: remove obsolete script unsharp-mask" 2025-06-11 02:26:16 +02:00
server build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
test Revert "ScriptFu: scripts: remove obsolete script unsharp-mask" 2025-06-11 02:26:16 +02:00
gimp-script-fu-interpreter.interp.in build/windows, data, extensions, plug-ins: Fix Build omissions 2024-01-02 10:49:31 +00:00
meson.build build, plug-ins: Generate *associations.list automatically at build-time 2025-05-30 19:23:41 -03:00
script-fu-eval.c ScriptFu: fix #10307 plugin call display not effective 2024-04-25 12:51:00 +00:00
script-fu-eval.h plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-refresh.c plug-ins: add missing include to fix build 2025-09-02 20:02:01 +02:00
script-fu-refresh.h ScriptFu: hide "Refresh Scripts" 2024-04-06 14:33:13 -04:00
script-fu-text-console.c plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-text-console.h plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu.c Issue #12948: only report progression for "extension-script-fu" scripts. 2025-02-26 15:16:05 +01:00