lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 6 Sep 2006 08:54:22 -0500 (CDT) From: Chase Venters <chase.venters@...entec.com> To: Chase Venters <chase.venters@...entec.com> cc: Evgeniy Polyakov <johnpol@....mipt.ru>, lkml <linux-kernel@...r.kernel.org>, David Miller <davem@...emloft.net>, Ulrich Drepper <drepper@...hat.com>, Andrew Morton <akpm@...l.org>, netdev <netdev@...r.kernel.org>, Zach Brown <zach.brown@...cle.com>, Christoph Hellwig <hch@...radead.org>, Johann Borck <johann.borck@...sedata.com> Subject: Re: [take16 1/4] kevent: Core files. On Wed, 6 Sep 2006, Chase Venters wrote: >> + if (start + num >= KEVENT_MAX_EVENTS || >> + start >= KEVENT_MAX_EVENTS || >> + num >= KEVENT_MAX_EVENTS) > > Since start and num are unsigned, the last two checks are redundant. If start > or num is individually >= KEVENT_MAX_EVENTS, start + num must be. > Actually, my early-morning brain code optimizer is apparently broken, because it forgot all about integer wraparound. Disregard please. > > Thanks, > Chase > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists