Project

General

Profile

Actions

Bug #19095

closed

use-after-poison with shapes

Added by nobu (Nobuyoshi Nakada) about 2 years ago. Updated about 2 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 3.2.0dev (2022-10-30T14:21:31Z master 7ed10abdd9) [x86_64-darwin21]
[ruby-core:110555]

Description

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.

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) use-after-poison.txt nobu (Nobuyoshi Nakada), 10/31/2022 05:48 AM
Actions

Also available in: Atom PDF

Like0
Like0