Skip to content

fix problematic env stray variable#35

Open
jingkaimori wants to merge 4 commits intomainfrom
jk/unnumbered/drd-fix
Open

fix problematic env stray variable#35
jingkaimori wants to merge 4 commits intomainfrom
jk/unnumbered/drd-fix

Conversation

@jingkaimori
Copy link
Contributor

When initializing drd struct from tree, some tree containing attributes is created and inserted into drd entry. These tree is supposed to be <attr|...>, but some code will return empty string as "no attributes". Because lolly 1.4.25 changes layout of string, behavior of retrieving array from atomic(string) tree differs from previous version of lolly. Thus tests in mogan on linux fails with corrupted memory. This pr use compound tree instead of string to represent <attr|>, and crash of test is fixed.

@jingkaimori jingkaimori requested a review from da-liii July 8, 2024 17:45
@jingkaimori jingkaimori marked this pull request as draft July 8, 2024 18:49
@jingkaimori jingkaimori marked this pull request as ready for review July 9, 2024 11:10
@da-liii
Copy link
Contributor

da-liii commented Jul 9, 2024

Unit tests needed for this pull request

all_accessible (outer))
return env;
return "";
return tree (ATTR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么用ATTR这个标记?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来的空字符串会变成什么?为什么会造成问题?

@da-liii
Copy link
Contributor

da-liii commented Jul 12, 2024

CI卡了,需要升级macOS 11到macOS 12

@jingkaimori jingkaimori requested a review from da-liii July 12, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants