[svn:parrot] r36417 - trunk/src

petdance at svn.parrot.org petdance at svn.parrot.org
Sat Feb 7 17:19:53 UTC 2009


Author: petdance
Date: Sat Feb  7 17:19:52 2009
New Revision: 36417
URL: https://trac.parrot.org/parrot/changeset/36417

Log:
Found an infinite loop

Modified:
   trunk/src/exec_save.c

Modified: trunk/src/exec_save.c
==============================================================================
--- trunk/src/exec_save.c	Sat Feb  7 13:52:28 2009	(r36416)
+++ trunk/src/exec_save.c	Sat Feb  7 17:19:52 2009	(r36417)
@@ -558,6 +558,7 @@
     for (i = 0; i < obj->data.size; i++)
         fprintf(fp, "%c", obj->data.code[i]);
     /* Text rellocations */
+    /* XXX This is an infinite loop.  When i = 0, i-- goes to very large. */
     for (i = obj->text_rellocation_count - 1; i >= 0; i--) {
         save_int(fp, obj->text_rellocation_table[i].offset);
         save_short(fp, obj->text_rellocation_table[i].symbol_number);


More information about the parrot-commits mailing list