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

rustc -pp lib/_str.rs corrupts memory #277

Closed
pcwalton opened this issue Mar 17, 2011 · 1 comment
Closed

rustc -pp lib/_str.rs corrupts memory #277

pcwalton opened this issue Mar 17, 2011 · 1 comment

Comments

@pcwalton
Copy link
Contributor

Looks like it's trying to call take glue on an already-freed token.

@pcwalton
Copy link
Contributor Author

I believe this is fixed.

oli-obk pushed a commit to oli-obk/rust that referenced this issue Sep 19, 2017
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Added strnlen function to all platforms.

strnlen is used to find the length of a C string that may be
lacking a terminal NUL character. Whilst it is possible to
implement the equivalent functionality in rust code, it is
cleaner, simpler and removes the need for duplication of tricky
functionality to get right. It also makes it easier to port
C code snippets to rust. In my case, it's needed for dealing with
the result of `gethostname`.

Note that strnlen is not part of POSIX or C99, but is present on all major platforms.
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
Move all the casts from `__m128i` to `i8x16` outside the macro invocations so
rustc only has to resolve a few function calls, not thousands!
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
antoyo added a commit to antoyo/rust that referenced this issue Jun 19, 2023
@rustbot rustbot mentioned this issue Nov 4, 2024
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

No branches or pull requests

1 participant