Skip to content

Overflow error #275

@samsa1

Description

@samsa1

When writing an OS where the memory is exactly mapped from 0xffff_ff00_0000_0000 with a RAM of size0x0000_0100_0000_000 the following line does an overflow which makes the bootloader panic even if it should not.

let end_inclusive = (start + size) - 1usize;

I'll could recommend changing the line to start + (size - 1) if we know that size != 0.

Otherwise, thank you for the great work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions