[ruby/mmtk] Keep track of pending pages in RubyHeapTrigger
We need to keep track of pending pages in RubyHeapTrigger otherwise a large allocation may cause infinite number of GCs to be ran since it will always appear that we have enough space in the heap (and thus the heap won't grow)...
Guard against oob read in rb_ary_aref1
When the array is shrunk during rb_arithmetic_sequence_beg_len_step, ary_subseq_len returns -1. Return an empty array instead of passing the negative length to ary_make_partial or ary_make_partial_step.
[Bug #22325]
[ruby/fileutils] Add tests for FileUtils.touch
FileUtils.touch
Fix https://github.com/ruby/fileutils/pull/177
https://github.com/ruby/fileutils/commit/86278df2f7
[ruby/fileutils] Workaround for symlink bug on Windows
Fixed by ruby/ruby#17545.
https://github.com/ruby/fileutils/commit/9e957c2330
Fix out-of-bounds access in String#byteindex/byterindex
If the source string is modified when converting offset to an integer, then there could be an out-of-bounds access because the length of the string is captured before to_int is called. For example, the following...
[ruby/fileutils] Remove redundant condition
Since Process.uid returns 0 always on mingw or mswin, root_in_posix? returns true too.
Process.uid
0
root_in_posix?
true
https://github.com/ruby/fileutils/commit/d18fbf0c56
[ruby/fileutils] Skip test_rm_r_no_permissions test under root
Skip the test_rm_r_no_permissions test under the root user, as deletion always succeeds.
Signed-off-by: Jiaying Song jiaying.song.cn@windriver.com
https://github.com/ruby/fileutils/commit/3c831389c5
[ruby/fileutils] Skip chown tests when the target group is not assignable
In user-namespace environments (e.g. ChromeOS Crostini) getgroups(2) can report supplementary groups such as the overflow GID 65534 (nobody) that a non-root process cannot actually chgrp a file to. TestFileUtils#setup built @groups straight from [Process.gid] | Process.groups, so the chown tests tried to chgrp to such a group and failed with EPERM instead of being skipped....
[Process.gid] | Process.groups
[ruby/fileutils] Remove unused fu_copy_stream0 helper
fu_copy_stream0 has had no caller since b26846bf replaced both uses with direct IO.copy_stream calls in 2008. The retained private wrapper is unreachable.
https://github.com/ruby/fileutils/commit/feba38f651
[ruby/fileutils] Fix relative symlink target generation
https://github.com/ruby/fileutils/commit/7de921e801
View all revisions | View revisions
Also available in: Atom