diff options
author | lukka <lukka@src.gnome.org> | 1998-11-18 00:57:16 +0000 |
---|---|---|
committer | lukka <lukka@src.gnome.org> | 1998-11-18 00:57:16 +0000 |
commit | e2f7831640fc7eb191ee5df3594f00518d1250b8 (patch) | |
tree | 2e8f234e302c55314c2611cbd0d413b69297eff6 | |
parent | 9b26da82ca4dc1a9d8707d6a581dc0b51f9092fb (diff) | |
download | gdk-pixbuf-e2f7831640fc7eb191ee5df3594f00518d1250b8.tar.gz |
*** empty log message ***
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | gtk/gtktypeutils.c | 10 |
8 files changed, 58 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index a3c1835e7..00f2f41a3 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a3c1835e7..00f2f41a3 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index a3c1835e7..00f2f41a3 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a3c1835e7..00f2f41a3 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a3c1835e7..00f2f41a3 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a3c1835e7..00f2f41a3 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Tue Nov 17 1998 Tuomas Lukka <lukka@iki.fi> + + * gtk/gtktypeutils.c: Fix vital bug where LOOKUP was used when + getting types even though we were not using real type names, + just the index. This caused random crashes when more than + 256 types were defined. + 1998-11-17 Martin Baulig <martin@home-of-linux.org> * gtk/genmarshal.pl: Put output files in the current directory diff --git a/gtk/gtktypeutils.c b/gtk/gtktypeutils.c index 165a8d08c..27c20eb5e 100644 --- a/gtk/gtktypeutils.c +++ b/gtk/gtktypeutils.c @@ -96,7 +96,15 @@ gtk_type_node_next_and_invalidate (void) new_type = n_type_nodes++; n_free_type_nodes--; - LOOKUP_TYPE_NODE (node, new_type); + /* This can't be used here - new_type can be over 256! + * LOOKUP_TYPE_NODE (node, new_type); + * Code copied from above (we may assume we are all right here): + */ + + if(new_type == 0) + return NULL; + node = type_nodes + new_type; + if (node) node->type = new_type; |