mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix ASAN error
This code was trying to access memory before unpoisoning it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4283fb42bc
commit
e377eb0e75
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -2630,8 +2630,8 @@ internal_object_p(VALUE obj)
|
|||
{
|
||||
RVALUE *p = (RVALUE *)obj;
|
||||
void *ptr = __asan_region_is_poisoned(p, SIZEOF_VALUE);
|
||||
bool used_p = p->as.basic.flags;
|
||||
unpoison_object(obj, false);
|
||||
bool used_p = p->as.basic.flags;
|
||||
|
||||
if (used_p) {
|
||||
switch (BUILTIN_TYPE(p)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue