From 5ef6bac796736212fd2547acef4d948d224975dd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 14 Mar 2005 12:32:02 +0000 Subject: [PATCH] * gmon_io.c (gmon_write_raw_arc): Return 1 for invalid size. --- gprof/ChangeLog | 4 ++++ gprof/gmon_io.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 16da34f84df..5f69f80651c 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,7 @@ +2005-03-14 Alan Modra + + * gmon_io.c (gmon_write_raw_arc): Return 1 for invalid size. + 2005-03-14 Alan Modra * po/tr.po: Commit new Turkish translation. diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c index 7218cee5fe9..e0ae8859b8b 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; } -- 2.30.2