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

Fix #12638 FP overlappingWriteFunction with last array element #6323

Merged
merged 15 commits into from
Apr 27, 2024

Conversation

chrchr-github
Copy link
Collaborator

No description provided.

@chrchr-github chrchr-github marked this pull request as draft April 22, 2024 10:39
@chrchr-github
Copy link
Collaborator Author

chrchr-github commented Apr 22, 2024

Seems like we have several incorrect test cases:

void foo() {
    wchar_t a[10];
    wmemcpy(&a[5], &a[4], 2u);
}

should not result in an error.

Edit: Actually it should, since wmemcpy() takes a character count instead of a byte count as the 3rd arg. This isn't evident from std.cfg though.

@chrchr-github chrchr-github reopened this Apr 22, 2024
@chrchr-github chrchr-github marked this pull request as ready for review April 22, 2024 20:11
@chrchr-github chrchr-github merged commit 5d0aa2a into danmar:main Apr 27, 2024
64 checks passed
@chrchr-github chrchr-github deleted the chr_fix12638 branch April 27, 2024 10:41
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.

1 participant