gimp r25678 - in branches/gimp-2-4: . plug-ins/script-fu/tinyscheme
- From: kcozens svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25678 - in branches/gimp-2-4: . plug-ins/script-fu/tinyscheme
- Date: Fri, 16 May 2008 21:30:04 +0100 (BST)
Author: kcozens
Date: Fri May 16 20:30:04 2008
New Revision: 25678
URL: http://svn.gnome.org/viewvc/gimp?rev=25678&view=rev
Log:
2008-05-16 Kevin Cozens <kcozens cvs gnome org>
Merged from trunk:
* plug-ins/script-fu/tinyscheme/scheme.c: Added extra checks to stop
bad syntax in LET from causing a segmentation fault in Linux.
See bug #508020.
Modified:
branches/gimp-2-4/ChangeLog
branches/gimp-2-4/plug-ins/script-fu/tinyscheme/scheme.c
Modified: branches/gimp-2-4/plug-ins/script-fu/tinyscheme/scheme.c
==============================================================================
--- branches/gimp-2-4/plug-ins/script-fu/tinyscheme/scheme.c (original)
+++ branches/gimp-2-4/plug-ins/script-fu/tinyscheme/scheme.c Fri May 16 20:30:04 2008
@@ -2777,6 +2777,8 @@
new_slot_in_env(sc, caar(x), car(y));
}
if (is_symbol(car(sc->code))) { /* named let */
+ if (!is_pair(cadr(sc->code)))
+ Error_1(sc, "Bad syntax of binding spec in let :", car(sc->code));
for (x = cadr(sc->code), sc->args = sc->NIL; x != sc->NIL; x = cdr(x)) {
sc->args = cons(sc, caar(x), sc->args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]