Displaying 1 result from an estimated 1 matches for "47b58800".
Did you mean:
47b5880
2025 Feb 26
1
Allocation checks for insmod
...ernel.org/pub/scm/utils/kernel/module-init-tools/module-init-tools.git repository. Since insmod has been restored to klibc, those changes have not yet been merged back to this version. The patch below merges the different commits together.
diff --git a/usr/utils/insmod.c b/usr/utils/insmod.c
index 47b58800..435fed21 100644
--- a/usr/utils/insmod.c
+++ b/usr/utils/insmod.c
@@ -58,8 +58,8 @@ static const char *moderror(int err)
static void *grab_file(const char *filename, unsigned long *size)
{
unsigned int max = 16384;
- int ret, fd;
- void *buffer = malloc(max);
+...