зеркало из https://github.com/github/ruby.git
* file.c (file_expand_path): check invalid access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b283b1d813
Коммит
2fcd15d45d
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Aug 29 00:03:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* file.c (file_expand_path): check invalid access.
|
||||||
|
|
||||||
Thu Aug 28 23:55:50 2008 Shugo Maeda <shugo@ruby-lang.org>
|
Thu Aug 28 23:55:50 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* strftime.c (rb_strftime): Time.mktime(2000).strftime("%-S") should
|
* strftime.c (rb_strftime): Time.mktime(2000).strftime("%-S") should
|
||||||
|
|
1
file.c
1
file.c
|
@ -2734,6 +2734,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
|
||||||
*p = '/';
|
*p = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BUFCHECK(bdiff + 1 >= buflen);
|
||||||
p[1] = 0;
|
p[1] = 0;
|
||||||
root = skipprefix(buf);
|
root = skipprefix(buf);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче