Skip to content

FFI: allocate can return negative pointers on 32-bit systems #36311

@sjindel-google

Description

@sjindel-google

If the pointer returned from malloc is > 2^31, the "address" field of the Pointer will be negative. Since Dart integers are always 64-bits, the address of a 32-bit pointer should always be positive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffi

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions