mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c, win32/file.c: Removed obsoleted safe level checks.
[fix GH-1327] Patch by @cremno git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f6e35f4ca
commit
48d22f8360
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 22 10:43:19 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* file.c, win32/file.c: Removed obsoleted safe level checks.
|
||||
[fix GH-1327] Patch by @cremno
|
||||
|
||||
Fri Apr 22 10:01:48 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* benchmark/bm_so_meteor_contest.rb: fix a typo.
|
||||
|
|
2
file.c
2
file.c
|
@ -124,7 +124,7 @@ VALUE rb_cFile;
|
|||
VALUE rb_mFileTest;
|
||||
VALUE rb_cStat;
|
||||
|
||||
#define insecure_obj_p(obj, level) ((level) >= 4 || ((level) > 0 && OBJ_TAINTED(obj)))
|
||||
#define insecure_obj_p(obj, level) ((level) > 0 && OBJ_TAINTED(obj))
|
||||
|
||||
static VALUE
|
||||
file_path_convert(VALUE name)
|
||||
|
|
|
@ -27,7 +27,7 @@ static struct code_page_table {
|
|||
#define INVALID_CODE_PAGE 51932
|
||||
#define PATH_BUFFER_SIZE MAX_PATH * 2
|
||||
|
||||
#define insecure_obj_p(obj, level) ((level) >= 4 || ((level) > 0 && OBJ_TAINTED(obj)))
|
||||
#define insecure_obj_p(obj, level) ((level) > 0 && OBJ_TAINTED(obj))
|
||||
|
||||
/* defined in win32/win32.c */
|
||||
#define system_code_page rb_w32_filecp
|
||||
|
|
Loading…
Add table
Reference in a new issue