Skip to content

Fix NULL dereference

Alasdair G Kergon 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 access+0 -00 replies
2/5Ensure seg is nonnull+0 -00 replies
3/5Ensure first is not NULL before dereference+0 -00 replies
4/5Fix theoretical usage of NULL pointer dereference+0 -02 replies
5/5Check for NULL pointer+0 -00 replies

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
Quoted 7 lines · Zdenek Kabelac

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.

Well the ones I've looked at here seem to be more about dealing with shortcomings in the static analysis code rather than fixing real bugs.

Alasdair