Re: [PATCH] ALSA: Remove subsystem-specific malloc (1/8)
From: Arjan van de Ven
Date: Wed Jun 09 2004 - 15:23:02 EST
> + */
> +void *kcalloc(size_t n, size_t size, int flags)
> +{
> + void *ret = kmalloc(n * size, flags);
how about making sure n*size doesn't overflow an int in this function?
We had a few security holes due to that happening a while ago; might as
well prevent it from happening entirely
Attachment:
signature.asc
Description: This is a digitally signed message part