All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Fix NULL dereference
@ 2010-10-26 12:59 Zdenek Kabelac
  2010-10-26 12:59 ` [PATCH 1/5] Check type is not NULL before access Zdenek Kabelac
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Zdenek Kabelac @ 2010-10-26 12:59 UTC (permalink / raw)
  To: lvm-devel

Updated patchset for NULL pointer dereferences issues reported by clang.

Unlike the first version - this time less aggresive solution is used.
INTERNAL_ERRORs are reported in these moments (if they would ever happen),
and the execution path aborts when such conditions are met.
Previous version was rather ignoring these paths and could lead to 
unwanted execution of other code parts.


Zdenek Kabelac (5):
  Check type is not NULL before access
  Ensure seg is nonnull
  Ensure  first is not NULL before dereference
  Fix theoretical usage of NULL pointer dereference
  Check for NULL pointer

 lib/activate/dev_manager.c |    5 +++++
 lib/format1/format1.c      |    5 +++++
 libdm/libdm-report.c       |    6 ++++++
 libdm/regex/ttree.c        |    6 ++++++
 tools/reporter.c           |    4 ++++
 5 files changed, 26 insertions(+), 0 deletions(-)

-- 
1.7.3.2



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

end of thread, other threads:[~2010-10-27 10:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-26 12:59 [PATCH 0/5] Fix NULL dereference Zdenek Kabelac
2010-10-26 12:59 ` [PATCH 1/5] Check type is not NULL before access Zdenek Kabelac
2010-10-26 14:02   ` Alasdair G Kergon
2010-10-26 12:59 ` [PATCH 2/5] Ensure seg is nonnull Zdenek Kabelac
2010-10-26 13:29   ` Alasdair G Kergon
2010-10-26 12:59 ` [PATCH 3/5] Ensure first is not NULL before dereference Zdenek Kabelac
2010-10-26 13:52   ` Alasdair G Kergon
2010-10-26 12:59 ` [PATCH 4/5] Fix theoretical usage of NULL pointer dereference Zdenek Kabelac
2010-10-26 13:37   ` Alasdair G Kergon
2010-10-27 10:19     ` ejt
2010-10-27 10:36       ` Zdenek Kabelac
2010-10-26 12:59 ` [PATCH 5/5] Check for NULL pointer Zdenek Kabelac
2010-10-26 13:42   ` Alasdair G Kergon
2010-10-26 13:57 ` [PATCH 0/5] Fix NULL dereference Alasdair G Kergon
2010-10-26 14:05   ` Petr Rockai
2010-10-26 14:17     ` Zdenek Kabelac
2010-10-26 14:14   ` Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.