public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] bsearch: fix overflow and avoid unnecessary calculation
@ 2009-11-09 14:26 André Goddard Rosa
  2009-11-09 14:26 ` [PATCH 1/2] bsearch: avoid unneeded decrement arithmetic André Goddard Rosa
  2009-11-09 14:26 ` [PATCH 2/2] bsearch: prevent overflow when computing middle comparison element André Goddard Rosa
  0 siblings, 2 replies; 3+ messages in thread
From: André Goddard Rosa @ 2009-11-09 14:26 UTC (permalink / raw)
  To: tabbott, alan-jenkins, rusty, linux-kernel; +Cc: André Goddard Rosa

Fix a rare overflow situation which can occur when working with large arrays.
Also, remove an unneeded calculation.

André Goddard Rosa (2):
  bsearch: avoid unneeded decrement arithmetic
  bsearch: prevent overflow when computing middle comparison element

 lib/bsearch.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-10 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 14:26 [PATCH 0/2] bsearch: fix overflow and avoid unnecessary calculation André Goddard Rosa
2009-11-09 14:26 ` [PATCH 1/2] bsearch: avoid unneeded decrement arithmetic André Goddard Rosa
2009-11-09 14:26 ` [PATCH 2/2] bsearch: prevent overflow when computing middle comparison element André Goddard Rosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox