Skip to content

Commit e7bc601

Browse files
committed
bump linked_list_allocator (0.9 -> 0.10(.5))
https://rustsec.org/advisories/RUSTSEC-2022-0063.html
1 parent 50e3c02 commit e7bc601

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

kernel/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ x86_64 = "0.14"
1414
uart_16550 = "0.3"
1515
pic8259 = "0.11"
1616
pc-keyboard = "0.7"
17-
linked_list_allocator = "0.9"
17+
linked_list_allocator = "0.10"
1818

1919
[dependencies.bootloader]
2020
version = "0.9"

kernel/src/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub mod bump;
1212
pub mod fixed_size_block;
1313
pub mod linked_list;
1414

15-
pub const HEAP_START: usize = 0x_4444_4444_0000;
15+
pub const HEAP_START: *mut u8 = 0x_4444_4444_0000 as *mut u8;
1616
pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB
1717

1818
#[global_allocator]

kernel/src/allocator/fixed_size_block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl FixedSizeBlockAllocator {
3232
}
3333
}
3434

35-
pub unsafe fn init(&mut self, heap_start: usize, heap_size: usize) {
35+
pub unsafe fn init(&mut self, heap_start: *mut u8, heap_size: usize) {
3636
self.fallback_allocator.init(heap_start, heap_size);
3737
}
3838

0 commit comments

Comments
 (0)