mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (secure_visibility): visibility check for untainted modules.
* signal.c (sigpipe): sighandler which does nothing. * signal.c (trap): set sigpipe function for SIGPIPE. * signal.c (Init_signal): default SIGPIPE handler should be sigpipe function. * array.c (rb_ary_subseq): wrong boundary check. * parse.y (cond0): integer literal in condition should not be compared to lineno ($.). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d63d8012f4
commit
3ae4fd7258
8 changed files with 90 additions and 16 deletions
|
@ -299,12 +299,12 @@ struct waitall_data {
|
|||
int pid;
|
||||
int status;
|
||||
VALUE ary;
|
||||
}
|
||||
};
|
||||
|
||||
static int
|
||||
waitall_each(key, value, data)
|
||||
int key, value;
|
||||
struct wait_data *data;
|
||||
struct waitall_data *data;
|
||||
{
|
||||
VALUE pid_status_member;
|
||||
|
||||
|
@ -563,6 +563,10 @@ rb_proc_exec(str)
|
|||
char **argv, **a;
|
||||
|
||||
security(str);
|
||||
|
||||
while (*str && ISSPACE(*str))
|
||||
str++;
|
||||
|
||||
for (s=str; *s; s++) {
|
||||
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
|
||||
#if defined(MSDOS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue