General

Profile

hanazuki (Kasumi Hanazuki)

  • Login: hanazuki
  • Registered on: 11/21/2017
  • Last sign in: 09/05/2024

Issues

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

Activity

11/06/2024

08:55 PM Ruby master Bug #20745 (Closed): IO::Buffer#copy triggers UB when src/dest buffers overlap
Applied in changeset commit:git|35bf6603372360c7680653328274a670fa1d9f38.
----------
io_buffer.c: Allow copies betwe...
hanazuki (Kasumi Hanazuki)
08:55 PM Ruby master Revision 35bf6603 (git): io_buffer.c: Allow copies between overlapping buffers with #copy and #set_string (#11640)
The current implementation of `IO::Buffer#copy` and `#set_string` has
an undefined behavior when the source and desti...
hanazuki (Kasumi Hanazuki)
11:57 AM Ruby master Bug #20872: Undefined RUBY_API_VERSION_* macros used in <ruby/backward/cxxanyargs.hpp>
nobu (Nobuyoshi Nakada) wrote in #note-1:
> It looks no hurt to remove the conditional already.
Ah, yes. That sho...
hanazuki (Kasumi Hanazuki)

11/05/2024

11:40 PM Ruby master Bug #20872 (Open): Undefined RUBY_API_VERSION_* macros used in <ruby/backward/cxxanyargs.hpp>
I just noticed that C++ compilers warn for undefined RUBY_API_VERSION_MAJOR/RUBY_API_VERSION_MINOR macros in `<ruby/b... hanazuki (Kasumi Hanazuki)

09/23/2024

06:29 PM Ruby master Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
After reviewing `memcpy` and `memmove` from open-source libc implementations, I found some optimize for small copies ... hanazuki (Kasumi Hanazuki)

09/18/2024

01:29 PM Ruby master Bug #20755 (Closed): IO::Buffer#transfer transfers mutable reference to String's memory but not lock ownership
`IO::Buffer.for` with a block yields a mutable IO::Buffer that shares underlying memory with a mutable String. While ... hanazuki (Kasumi Hanazuki)
10:17 AM Ruby master Bug #20753 (Closed): [doc] IO::Buffer examples try to write into readonly buffer returned from IO::Buffer.for
`IO::Buffer.for` without a block returns a readonly `IO::Buffer`. Some examples in the documentation for `IO::Buffer`... hanazuki (Kasumi Hanazuki)
09:38 AM Ruby master Bug #20752 (Closed): IO::Buffer#slice creates mutable IO::Buffer instance that points to readonly memory (e.g. fronzen String)
```irb
irb(main):001> RUBY_DESCRIPTION.frozen?
=> true
irb(main):002> IO::Buffer.for(RUBY_DESCRIPTION).set_string(...
hanazuki (Kasumi Hanazuki)
08:03 AM Ruby master Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
If this is an intentional restriction to gain performance, I would like to propose adding documentation that the meth... hanazuki (Kasumi Hanazuki)

09/16/2024

06:51 AM Ruby master Bug #20745: IO::Buffer#copy triggers UB when src/dest buffers overlap
`#set_string` in combination with `.for` with a block has the same problem.
```shell-session
% docker run --platf...
hanazuki (Kasumi Hanazuki)

Also available in: Atom