Skip to content

Fix #10727: Avoid segfault on null strings in std.file.rename (stable… #10769

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

Closed

Conversation

Mahipalsinh00
Copy link
Contributor

Fixes #10727
Complements #10736 (adds unit tests)

0xEAB pushed a commit to 0xEAB/phobos that referenced this pull request May 1, 2025
Copy link
Member

@0xEAB 0xEAB left a comment

Choose a reason for hiding this comment

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

Thank you for your work!
Unfortunately, the added unittest is unsuitable to verify the effectiveness of your changes. As demonstrated in #10770 it also passes with the unchanged code currently on ~stable.

Please add a unittest that actually outlines the benefit(s) of your change.

@0xEAB
Copy link
Member

0xEAB commented May 1, 2025

As demonstrated in #10770 it also passes with the unchanged code currently on ~stable.

In other words: This implies that either #10727 has already been fixed or your unittest is not suitable to test for a fix of the reported issue. (To be honest, I suspect the former may be the case.)

@0xEAB 0xEAB mentioned this pull request May 1, 2025
@CyberShadow
Copy link
Member

It looks like @Mahipalsinh00 is using an LLM - at least for writing comments (see #10769 (comment)).

I'm going to close this PR because:

  1. the author is not acting in good faith
  2. it is superseded by Add unittest from #10769 #10770.

@Mahipalsinh00 Thank you for submitting the unit test. Please see my comment on a similar contribution here regarding use of LLMs.

@CyberShadow CyberShadow closed this May 2, 2025
@Mahipalsinh00 Mahipalsinh00 deleted the fix-rename-segfault-stable branch May 2, 2025 12:01
thewilsonator pushed a commit that referenced this pull request May 3, 2025
Co-authored-by: Parmar Mahipalsinh <[email protected]>
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.

3 participants