Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traverse all strings in MO translation document to detect memory access violation #52249

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

BrettDong
Copy link
Member

Summary

None

Purpose of change

I want to be more confident that there is no bug in the newly introduced TranslationManager.

Describe the solution

Add a test case that walks through every string contained in *.mo translation documents. The test case itself detects if there is any string buffer overlap, and AddressSanitizer can also detect if there is any memory access violation.

Describe alternatives you've considered

Testing

Additional context

@BrettDong BrettDong added [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. Translation I18n labels Oct 11, 2021
@ZhilkinSerg ZhilkinSerg merged commit e793b87 into master Oct 12, 2021
@BrettDong BrettDong deleted the asan branch October 12, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants