[BusyBox] patch for working modprobe under both 2.4 and 2.6 kernels :)
Anders Eriksson
aeriksson at fastmail.fm
Tue Aug 3 14:44:18 UTC 2004
> /* last path component */
> const char *last_comp = strrchr (mod_path, '/');
> + const char *mod_ext = ".o";
> +
> +#if defined(CONFIG_FEATURE_2_6_MODULES)
> + if ( k_version > 4 )
> + mod_ext = ".ko";
> +#endif
>
Doesn't this lengthening of the string essentially constitute a buffer
overflow? I guess you could do it the other way around (define to .ko,
and shrink to .o).
/A
More information about the busybox
mailing list