[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-core
Subject: [ruby-core:110555] [Ruby master Bug#19095] use-after-poison with shapes
From: "nobu (Nobuyoshi Nakada)" <noreply () ruby-lang ! org>
Date: 2022-10-31 5:56:48
Message-ID: redmine.issue-19095.20221031055647.4 () ruby-lang ! org
[Download RAW message or body]
Issue #19095 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #19095: use-after-poison with shapes
https://bugs.ruby-lang.org/issues/19095
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Assignee: tenderlovemaking (Aaron Patterson)
* Target version: 3.2
* ruby -v: ruby 3.2.0dev (2022-10-30T14:21:31Z master 7ed10abdd9) [x86_64-darwin21]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Compiling with the clang address sanitizer and the following patch, `make \
BASERUBY='$(MINIRUBY)' golf_prelude.c` aborts by use-after-poison. I can't make \
minimum code yet.
```patch
diff --git i/template/prelude.c.tmpl w/template/prelude.c.tmpl
index 428c9f4d014..7d4c3505d88 100644
--- i/template/prelude.c.tmpl
+++ w/template/prelude.c.tmpl
@@ -77,7 +77,7 @@ class Prelude
result
end
end
-Prelude.new(output, ARGV, vpath).instance_eval do
+p(Prelude.new(output, ARGV, vpath)).instance_eval do
-%>
/* -*-c-*-
THIS FILE WAS AUTOGENERATED BY template/prelude.c.tmpl. DO NOT EDIT.
```
---Files--------------------------------
use-after-poison.txt (5.51 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic