mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
kernel: add ubsan bindings, fix some UB reported by it
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef _TOPOLOGY_H
|
||||
#define _TOPOLOGY_H
|
||||
|
||||
#define TOPOLOGY_MAKE_ID(depth, id) ((depth << 16) | id)
|
||||
#define TOPOLOGY_MAKE_ID(depth, id) (((depth & 0xfffflu) << 16) | id)
|
||||
|
||||
#include <arch/cpu.h>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ size_t strlen(const char *str);
|
||||
char *strcpy(char *dest, const char *src);
|
||||
char *strcat(char *dest, const char *str);
|
||||
void *memcpy(void *dest, const void *src, size_t size);
|
||||
void *memset(void *dest, unsigned long what, size_t size);
|
||||
void *memset(void *dest, int what, size_t size);
|
||||
int strcmp(const char *a, const char *b);
|
||||
int strncmp(const char *a, const char *b, size_t c);
|
||||
int memcmp(const void *a, const void *b, size_t s);
|
||||
|
||||
Reference in New Issue
Block a user