Skip to content

Fix NULL dereference

Zdenek Kabelac lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Check type is not NULL before accesslibdm/libdm-report.c+6 -01 reply
2/5Ensure seg is nonnulllib/activate/dev_manager.c+5 -01 reply
3/5Ensure first is not NULL before dereferencelib/format1/format1.c+5 -01 reply
4/5Fix theoretical usage of NULL pointer dereferencelibdm/regex/ttree.c+6 -02 replies
4/5Fix theoretical usage of NULL pointer dereference+0 -00 replies
5/5Check for NULL pointertools/reporter.c+4 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Fix NULL dereference

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(-)
Signature · 1 line
1.7.3.2