init_from_slice seems bugged

Open Beginner friendly
#94 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start by locating init_from_slice and the assertion self.bottom().is_null() in the linked-list allocator implementation. Inspect the intended initialization and panic behavior, then determine whether the condition should be negated. Verify the fix with the repository's existing allocator tests, especially cases covering init_from_slice.

Written by the indexing model from the issue text.

Description

The assert in self.bottom().is_null() causes the the init_from_slice function to just fail at the start I think its a miss-type to !self.bottom().is_null() to properly panic out instead. unless I'm missunderstanding the funciton

Dominant language
Rust
Stars
243
Forks
57
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-osdev/linked-list-allocator

All issues in rust-osdev/linked-list-allocator

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.