Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#99 Patch to fix error in DialogSocket

Unstable_(example)
closed
nobody
None
5
2012-12-12
2011-09-27
Anonymous
No

When we use DialogSocket with std::vector it often call copy constructor instead assigment operator to copy DialogSocket into new location. DialogSocket don't have explicit copy constructor so C++ compiler use copy constructor by default (i.e. simple copy internal pointers). This cause the
DialogSocket to segfault because more than one instance of DialogSocket are pointed to the same internal buffer and when one of this are destroyed it destroys its internal buffer and other instances left pointed to deallocated memory.


Sergey N. Yatskevichsnc@spectrum-soft.ru

Discussion

  • fixed in 1.4.3

     
  • fixed in 1.4.3

     
  • Alex Fabijanic
    Alex Fabijanic
    2012-12-12

    • status: open --> closed
    • milestone: --> Unstable_(example)
     
  • Alex Fabijanic
    Alex Fabijanic
    2012-12-12

    closing