diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-02-21 19:40:58 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-02-21 12:06:19 +0000 |
commit | 7ef9110b1eaefbcbf72f25ad941c2c3b7ed3db01 () | |
tree | 2e5994b95ad0290cb0e2f52c5e6205f1b702b48e /ext/stringio | |
parent | fa6b9f75efa8411829aa987b81b9c5ca0e081462 (diff) |
[ruby/stringio] Fix SEGV at unget to a null device StringIO
https://.com/ruby/stringio/commit/eb4ee49218
-rw-r--r-- | ext/stringio/stringio.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -180,7 +180,9 @@ check_modifiable(struct StringIO *ptr) else if (OBJ_FROZEN_RAW(ptr->string)) { rb_raise(rb_eIOError, "not modifiable string"); } - rb_str_modify(ptr->string); } static VALUE |