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

Non-zero-terminated string passed to C function puts in smallest-hello-world.rs #13603

Closed
tbu- opened this issue Apr 18, 2014 · 0 comments · Fixed by #13608
Closed

Non-zero-terminated string passed to C function puts in smallest-hello-world.rs #13603

tbu- opened this issue Apr 18, 2014 · 0 comments · Fixed by #13608

Comments

@tbu-
Copy link
Contributor

tbu- commented Apr 18, 2014

The title basically says it, in smallest-hello-world.rs the string "Hello!" (not zero-terminated) is passed to the C function puts which expects a zero-terminated string.

Note: Link to smallest-hello-worlds.rs goes to the offending version, for the up-to-date version, check smallest-hello-world.rs.

tbu- added a commit to tbu-/rust that referenced this issue Apr 18, 2014
It now hands `puts` a zero-terminated string, like it expects.

Fix rust-lang#13603.
bors added a commit that referenced this issue Apr 19, 2014
It now hands `puts` a zero-terminated string, like it expects.

Fix #13603.
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this issue Nov 16, 2022
fix: Send status notification if there are no found workspaces

Closes rust-lang/rust-analyzer#5829
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 a pull request may close this issue.

1 participant