General

Profile

csabahenk2 (Csaba Henk)

  • Login: csabahenk2
  • Registered on: 02/09/2016
  • Last sign in: 08/08/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

08/09/2021

11:28 PM Ruby Bug #18074: ARGF.read(length) exhibits short rea
Proposed fix: https://github.com/ruby/ruby/pull/4727 csabahenk2 (Csaba Henk)
11:21 PM Ruby Bug #18074: ARGF.read(length) exhibits short rea
It was commit [4f5976c](https://github.com/ruby/ruby/commit/4f5976cbb826df462c62a0a8e72ebe91c15a7ba4) that introduced this bug:
```
commit 4f5976cbb826df462c62a0a8e72ebe91c15a7ba4
Author: matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b0...
csabahenk2 (Csaba Henk)
11:20 PM Ruby Bug #18074: ARGF.read(length) exhibits short rea
[`argf_read`](https://github.com/ruby/ruby/blob/v3_0_2/io.c#L12307-L12351) pseudocodized:
``` c
/* 1 */ argf_read(VALUE length)
/* 2 */ {
/* 3 */ long len = NUM2LONG(length);
/* 4 */ VALUE str = StringValue();
/* 5 */ retry:
/* ...
csabahenk2 (Csaba Henk)
11:18 PM Ruby Bug #18074 (Closed): ARGF.read(length) exhibits short rea
If ruby is invoked with three file name arguments (which refer to extant non-empty regular files), and `ARFG.read` is called with a length argument that exceeds the combined size of the first two files[1], then only the content of the fi... csabahenk2 (Csaba Henk)

Also available in: Atom