Commit 0bff7780 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

silently accept arrays which are longer than specified. Nothing bad can

2004-10-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	silently accept arrays which are longer than specified. Nothing
	bad can happen and it's common practice to resize arrays in fixed
	size chunks so avoid frequent resizing. Fixes bug #155359.
parent 286eb015
2004-10-25 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
silently accept arrays which are longer than specified. Nothing
bad can happen and it's common practice to resize arrays in fixed
size chunks so avoid frequent resizing. Fixes bug #155359.
2004-10-25 Michael Natterer <mitch@gimp.org>
 
* plug-ins/script-fu/siod-wrapper.c (init_constants): removed
debugging output i forgot.
(marshall_proc_db_call):
 
2004-10-25 Sven Neumann <sven@gimp.org>
 
......
......@@ -646,7 +646,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -670,7 +670,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -694,7 +694,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -717,7 +717,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -741,7 +741,7 @@ marshall_proc_db_call (LISP a)
LISP list = car (a);
gint j;
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......
......@@ -646,7 +646,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -670,7 +670,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -694,7 +694,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -717,7 +717,7 @@ marshall_proc_db_call (LISP a)
gint n_elements = args[i - 1].data.d_int32;
LISP list = car (a);
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......@@ -741,7 +741,7 @@ marshall_proc_db_call (LISP a)
LISP list = car (a);
gint j;
if (n_elements != nlength (list))
if (n_elements > nlength (list))
{
convert_string (proc_name);
g_snprintf (error_str, sizeof (error_str),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment