diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-05 15:41:19 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-05 15:41:19 +0000 |
| commit | 7bf02e963c45ba3f2869f52b4701bde7991d0b2d (patch) | |
| tree | 0ebe2c11f9cc474427381bc9c049e4da4f1c5392 | |
| parent | c3a5bc24778383b35053ae86516c1d8cd5f53e60 (diff) | |
| download | ruby-7bf02e963c45ba3f2869f52b4701bde7991d0b2d.tar.gz ruby-7bf02e963c45ba3f2869f52b4701bde7991d0b2d.tar.xz ruby-7bf02e963c45ba3f2869f52b4701bde7991d0b2d.zip | |
* signal.c (trap): sig should be less then NSIG. Coverity found
this bug. a patch from Kevin Tew <tewk at tewk.com>.
[ruby-core:07823]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | signal.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Sat May 6 00:38:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * signal.c (trap): sig should be less then NSIG. Coverity found + this bug. a patch from Kevin Tew <tewk at tewk.com>. + [ruby-core:07823] + Thu May 4 02:24:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * ext/syck/emitter.c (syck_scan_scalar): avoid accessing @@ -578,7 +578,7 @@ trap(arg) rb_raise(rb_eArgError, "unsupported signal SIG%s", s); } - if (sig < 0 || sig > NSIG) { + if (sig < 0 || sig >= NSIG) { rb_raise(rb_eArgError, "invalid signal number (%d)", sig); } #if defined(HAVE_SETITIMER) |
