Messages in this thread | | | Subject | Re: Fw: signed kernel modules? | From | Alan Cox <> | Date | Wed, 13 Oct 2004 11:42:19 +0100 |
| |
On Mer, 2004-10-13 at 01:11, Rusty Russell (IBM) wrote: > + unsigned long len, > + unsigned long offset, > + unsigned long elemsize, > + unsigned long num) > +{ > + /* We're careful with wrap here. */ > + if (offset > len) > + return 0; > + if (elemsize * num / num != elemsize)
Whoops bang "num 0 elements". That check set isn't safe standalone
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |