General

Profile

nowacki (Maciek Nowacki)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

11/27/2013

06:03 AM Ruby Bug #9157: rb_readlink() calls rb_str_modify_expand() too early
nobu (Nobuyoshi Nakada) wrote:
> This issue was solved with changeset r43853.
Ah, I didn't realize that rb_str_modify_expand() takes a difference as its argument, not the total buffer length. This works because the function doubles t...
nowacki (Maciek Nowacki)

11/26/2013

03:23 PM Ruby Bug #9158 (Closed): bug in rb_readlink() in file.c (fixed)
Hello,

Here is a cute bug that has existed for a little while in file.c . Ruby will tend to crash when File.readlink() is called on a symlink with a long target. Fix:

--- - 2013-11-25 22:10:59.694183795 -0700
+++ file.c 2013...
nowacki (Maciek Nowacki)
03:12 PM Ruby Bug #9157 (Closed): rb_readlink() calls rb_str_modify_expand() too early
If rb_readlink() (file.c) is called on a long symlink, Ruby tends to crash. This is present in -trunk. The problem is that the rb_str_modify_expand() statement is incorrectly placed before the statement 'size*=2'. Here is a patch:
---...
nowacki (Maciek Nowacki)

Also available in: Atom