1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
rhe e6e66094f9 stringio.c: fix signed integer overflow
* ext/stringio/stringio.c (strio_seek): Avoid signed integer overflow.
  It's not harmful in practice here, but is still undefined behavior.

* ext/stringio/stringio.c (strio_extend): Check that the new length does
  not exceed LONG_MAX. This fixes the invalid write on the overflow.

* test/stringio/test_stringio.rb (test_write_integer_overflow): Add a
  test case for the above fix in strio_extend().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-26 07:24:55 +00:00
..
-test- dlntest.dll: move 2016-09-22 06:35:27 +00:00
bigdecimal Use https instead of http in some URLs 2016-09-11 10:33:36 +00:00
cgi/escape
continuation
coverage
date
dbm
digest Use qualified names 2016-08-30 06:22:30 +00:00
etc
fcntl
fiber
fiddle
gdbm
io Use https instead of http in some URLs 2016-09-11 10:33:36 +00:00
json Fix rdoc of OpenStruct.json_create [ci skip] 2016-08-30 06:27:29 +00:00
mathn
nkf
objspace objspace_dump.c: dc is no longer used [ci skip] 2016-09-17 09:22:26 +00:00
openssl fid typos [ci skip] 2016-09-24 02:28:25 +00:00
pathname rb_funcallv 2016-07-29 11:57:14 +00:00
psych * ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of 2016-09-08 05:33:59 +00:00
pty
racc/cparse
rbconfig/sizeof
readline
ripper
sdbm
socket fid typos [ci skip] 2016-09-24 02:28:25 +00:00
stringio stringio.c: fix signed integer overflow 2016-09-26 07:24:55 +00:00
strscan
syslog
win32 win32/resolv: fix for cygwin 2016-08-10 11:11:36 +00:00
win32ole win32ole.c: fix long conversion 2016-08-13 13:01:13 +00:00
zlib install extra libraries 2016-09-24 13:26:21 +00:00
.document
extmk.rb install extra libraries 2016-09-24 13:26:21 +00:00
Setup * ext/tk: Tk is removed from stdlib. [Feature #8539] 2016-08-09 06:44:45 +00:00
Setup.atheos * ext/tk: Tk is removed from stdlib. [Feature #8539] 2016-08-09 06:44:45 +00:00
Setup.nacl * ext/tk: Tk is removed from stdlib. [Feature #8539] 2016-08-09 06:44:45 +00:00
Setup.nt * ext/tk: Tk is removed from stdlib. [Feature #8539] 2016-08-09 06:44:45 +00:00