Skip to content

libc.rs: is exporting libc::malloc and friends really safe? #2750

Closed
@bblum

Description

@bblum

The unsafe pointer it returns is irrelevant - all you need to do is have multiple tasks 'safely' call it to corrupt the heap.

There are probably a bunch of other non-threadsafe library functions that we oughta think about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions