Actions
Bug #14856
closedClang removes dead code....
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
log/Log.cc:193:5: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
*(int *)(0) = 0xdead;
^~~~~~~~~
Code is:
if (m_inject_segv)
*(int *)(0) = 0xdead;
So this code is definitely not going to trap when running on FreeBSD or Clang.
Code is also very unclear on why we would like to trap this way
Actions