The library is using std::string. When some specific application is linked with it, the string operations performed in library are getting totally crashy.
For instance the string assignment operator ‘=’ (stack trace is attached).

The destination of memcpy_s( … ) and size are looking quite scrambled.
We can not repro it locally. Please advice.
Edit:
code is looking like this:
...
#define DEFAULT_VAL "value"
...
class MyClass {
public:
MyClass(const std::string& s=DEFAULT_VAL)
{
_test() = s;
}
protected:
inline const std::string& test() const {return m_test;}
inline std::string& _test() {return m_test;}
private:
std::string m_test;
};
....
MyClass c;
If you are in a case of a DLL exposing
std::stringat the interface, make sure that both the .EXE and the .DLL are built with the same compiler version and the same flavor of the CRT (e.g. both debug, both release, both with the same settings of_HAS_ITERATOR_DEBUGGING, etc.).