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

my last change removed the sanity check for array_length >= 0. Put it

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

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	my last change removed the sanity check for array_length >= 0.
	Put it back.
parent 0e824910
2004-10-26 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
my last change removed the sanity check for array_length >= 0.
Put it back.
2004-10-26 Michael Natterer <mitch@gimp.org>
 
* libgimpbase/gimpbase.def: updated.
......
......@@ -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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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 < 0) || (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