mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
Kernel: Fix integer overflow in KCOV_SETBUFSIZE ioctl
This commit is contained in:
parent
4857943a71
commit
d5fdb97a81
2 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,7 @@ namespace Kernel {
|
|||
// Note: These need to be kept in sync with Userland/Libraries/LibC/sys/kcov.h
|
||||
typedef volatile u64 kcov_pc_t;
|
||||
#define KCOV_ENTRY_SIZE sizeof(kcov_pc_t)
|
||||
#define KCOV_MAX_ENTRIES (10 * 1024 * 1024)
|
||||
|
||||
/*
|
||||
* One KCOVInstance is allocated per process, when the process opens /dev/kcov
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue