search for: err_save

Displaying 1 result from an estimated 1 matches for "err_save".

Did you mean: e_save
2025 Feb 26
1
Allocation checks for insmod
...sr/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); + int ret, fd, err_save; + void *buffer; if (streq(filename, "-")) fd = dup(STDIN_FILENO); @@ -69,11 +69,21 @@ static void *grab_file(const char *filename, unsigned long *size) if (fd < 0) return NULL; + b...