Skip to content

Kani implementations of mem::size_of_val and mem::align_of_val are incorrect for traits #1074

Closed

Description

@celinval

I added a test case here: tests/kani/Intrinsics/SizeOfVal/fixme_size_of_fat_ptr.rs

It fails due to incorrect implementation of size_of_val. See test for more details.

Activity

  1. added
    [C] Bug
    on Apr 20, 2022
  2. assigned and unassigned on Apr 20, 2022
  3. celinval commented on Apr 21, 2022

    @celinval
    ContributorAuthor

    We cannot handle type of traits. Until we support that, we should fail the verification for dyn T.

  4. changed the title [-]Kani implementation of `mem::size_of_val` is incorrect for unsized struct[/-] [+]Kani implementations of `mem::size_of_val` and `mem::align_of_val` are incorrect for unsized struct[/+] on Apr 21, 2022
  5. changed the title [-]Kani implementations of `mem::size_of_val` and `mem::align_of_val` are incorrect for unsized struct[/-] [+]Kani implementations of `mem::size_of_val` and `mem::align_of_val` are incorrect for traits[/+] on Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[C] Bug[F] Soundness

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions