<div dir="ltr">Hi,<div><br></div><div>I am working on a SEI CERT checker (<a href="https://wiki.sei.cmu.edu/confluence/display/cplusplus/MEM54-CPP.+Provide+placement+new+with+properly+aligned+pointers+to+sufficient+storage+capacity">Provide placement new with properly aligned pointers to sufficient storage capacity</a>). This should give reports on the following:</div><div><br></div><div>#include <new><br></div><div>void f() {<br>  short s;<br>  long *lp = ::new (&s) long; // warning: insufficient storage<br>}<br></div><div><br></div><div>First I thought, the best place for the implementation would be in the existing MallocChecker.cpp.</div><div>However, there are a bunch of classes (e.g. the MallocBugVisitor) which seems to be unrelated and not needed for this new check. Now I am fidgeting because maybe it would be better to have a self-contained independent .cpp file for the implementation. What do you think, what do you suggest?</div><div><br></div><div>Thanks,</div><div>Gabor</div></div>