aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/syck/syck.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 33bb1489af..33837ca0c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Dec 8 15:03:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/syck.c (syck_io_str_read): get rid of buffer overflow.
+
Mon Dec 8 13:02:11 2003 Minero Aoki <aamine@loveruby.net>
* lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index 8f46e85ae0..ec4e7a1efd 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -88,7 +88,7 @@ syck_io_str_read( char *buf, SyckIoStr *str, long max_size, long skip )
}
if ( beg < str->ptr )
{
- len = ( str->ptr - beg ) + 1;
+ len = ( str->ptr - beg );
S_MEMCPY( buf + skip, beg, char, len );
}
len += skip;