Fix: solved stack smashing when creating StatusNotifierCommand.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 29 Jan 2012 16:45:40 +0000 (14:45 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sun, 29 Jan 2012 17:44:40 +0000 (15:44 -0200)
commit709ded826885d536ec58b6c7008e5239e8b87db1
treef0d985826c1eb934422f341414e8996ced4841ea
parent438e777e1a397cb9b5e7ff73fb78be994c8983d0
Fix: solved stack smashing when creating StatusNotifierCommand.
- The StatusNotifierCommand member is a smart pointer instead of an object.
- Stack smashing is a protection from GCC to avoid segmentation faults from
  buffer overruns. Use -fno-stack-protector to disable it.
- This workaround protects some std::string strings from optimizations, which
  cause destructors to be called onto invalid std::string objects. Not sure
  whether is it a bug from gcc or in the pingcheck.
src/link/linkstatus.cpp
src/link/linkstatus.h
src/link/statusnotifiercommand.h