diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-21 20:53:31 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-21 20:53:31 +0000 |
commit | 1a4195e6d47cea698568f1b47618a0030a82ef3d (patch) | |
tree | 91880bbc232b9839d0fcfaf31e3e413c067f21f0 /fastjar/ChangeLog | |
parent | 427d3c76bf451543bb5734df43e3dc6b703afc19 (diff) | |
download | gcc-1a4195e6d47cea698568f1b47618a0030a82ef3d.tar.gz |
2003-01-21 Ranjit Mathew <rmathew@hotmail.com>
* jartool.c (list_jar): Terminate the 'ascii_date' buffer
with a '\0' to guard against the case where the formatted
time string is more than the size allowed by the buffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fastjar/ChangeLog')
-rw-r--r-- | fastjar/ChangeLog | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog index 7fdadd228aa..d6482fa313c 100644 --- a/fastjar/ChangeLog +++ b/fastjar/ChangeLog @@ -1,3 +1,43 @@ +2003-01-21 Ranjit Mathew <rmathew@hotmail.com> + + * jartool.c (list_jar): Terminate the 'ascii_date' buffer + with a '\0' to guard against the case where the formatted + time string is more than the size allowed by the buffer. + +Patch: +-------------------------- 8< -------------------------- +--- ChangeLog Mon Jan 20 23:27:56 2003 ++++ ChangeLog Mon Jan 20 23:31:42 2003 +@@ -1572,5 +1572,5 @@ + time_t tdate; + struct tm *s_tm; +- char ascii_date[30]; ++ char ascii_date[31]; + zipentry ze; + +@@ -1663,4 +1663,5 @@ + s_tm = localtime(&tdate); + strftime(ascii_date, 30, "%a %b %d %H:%M:%S %Z %Y", s_tm); ++ ascii_date[30] = '\0'; + } + +@@ -1782,4 +1783,5 @@ + s_tm = localtime(&tdate); + strftime(ascii_date, 30, "%a %b %d %H:%M:%S %Z %Y", s_tm); ++ ascii_date[30] = '\0'; + } + +-------------------------- 8< -------------------------- + +Sincerely Yours, +Ranjit. + +-- +Ranjit Mathew Email: rmathew AT hotmail DOT com +Bangalore, +INDIA. Web: http://ranjitmathew.tripod.com/ + + 2003-01-14 Tom Tromey <tromey@redhat.com> * config.h.in: Rebuilt. |