aboutsummaryrefslogtreecommitdiff
path: root/gprof/gmon_io.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-03-14 12:32:02 +0000
committerAlan Modra <amodra@gmail.com>2005-03-14 12:32:02 +0000
commit5ef6bac796736212fd2547acef4d948d224975dd (patch)
tree6ba4fe01f63610eb8c5bc2ff6c5a1d2aea43d382 /gprof/gmon_io.c
parent8b3d8fa8ac39a5cd9e127153b6cd32bb52d4ade2 (diff)
downloadgdb-5ef6bac796736212fd2547acef4d948d224975dd.zip
gdb-5ef6bac796736212fd2547acef4d948d224975dd.tar.gz
gdb-5ef6bac796736212fd2547acef4d948d224975dd.tar.bz2
* gmon_io.c (gmon_write_raw_arc): Return 1 for invalid size.
Diffstat (limited to 'gprof/gmon_io.c')
-rw-r--r--gprof/gmon_io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index 7218cee..e0ae885 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -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;
}