* gmon_io.c (gmon_write_raw_arc): Return 1 for invalid size.
authorAlan Modra <amodra@gmail.com>
Mon, 14 Mar 2005 12:32:02 +0000 (12:32 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 14 Mar 2005 12:32:02 +0000 (12:32 +0000)
gprof/ChangeLog
gprof/gmon_io.c

index 16da34f84dfef309efe94658c3c858379b53f588..5f69f80651c62be9ca4dcaec5218c890161a6f2d 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * gmon_io.c (gmon_write_raw_arc): Return 1 for invalid size.
+
 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
 
        * po/tr.po: Commit new Turkish translation.
index 7218cee5fe911c0057b3f07c1ca3bde2234302ca..e0ae8859b8b3451b5aff949be93f530551173925 100644 (file)
@@ -256,6 +256,9 @@ gmon_read_raw_arc (FILE *ifp, bfd_vma *fpc, bfd_vma *spc, unsigned long *cnt)
       *cnt = cnt64;
       break;
 #endif
+
+    default:
+      return 1;
     }
   return 0;
 }