Commits

Anonymous committed ba05543

Startup id stamp is uint32, not int32, and it does overflow INT_MAX

  • Participants
  • Parent commits be58dd1

Comments (0)

Files changed (1)

moo/mooapp/mooapp.c

         return FALSE;
     }
 
-    *stamp = moo_markup_get_int_prop (root, "stamp", 0);
+    *stamp = moo_markup_uint_prop (root, "stamp", 0);
 
     for (node = root->children; node != NULL; node = node->next)
     {
         if (encoding && encoding[0])
             file.encoding = g_strdup (encoding);
 
-        file.line = moo_markup_get_int_prop (node, "line", 0);
-        if (moo_markup_get_bool_prop (node, "new-window", FALSE))
+        file.line = moo_markup_int_prop (node, "line", 0);
+        if (moo_markup_bool_prop (node, "new-window", FALSE))
             file.options |= MOO_EDIT_OPEN_NEW_WINDOW;
-        if (moo_markup_get_bool_prop (node, "new-tab", FALSE))
+        if (moo_markup_bool_prop (node, "new-tab", FALSE))
             file.options |= MOO_EDIT_OPEN_NEW_TAB;
-        if (moo_markup_get_bool_prop (node, "reload", FALSE))
+        if (moo_markup_bool_prop (node, "reload", FALSE))
             file.options |= MOO_EDIT_OPEN_RELOAD;
 
         if (!files)