Добавлена ошибка для демонстрации SANITIZE_ADDRESS

This commit is contained in:
Andrei Astafev 2021-12-21 16:22:18 +03:00
parent b07846c67d
commit 47df94c6a4

View File

@ -38,7 +38,7 @@ int main( int argc, char** argv )
QString s { QStringLiteral( "100" ) }; QString s { QStringLiteral( "100" ) };
auto ir = qStringToInt( s ); auto ir = qStringToInt( s );
QFile f; QFile* f = new QFile();
Processor p; Processor p;
QObject::connect( &app, SIGNAL(aboutToQuit()), &p, SLOT(process())); QObject::connect( &app, SIGNAL(aboutToQuit()), &p, SLOT(process()));
QTimer::singleShot( 100, &app, SLOT(quit())); QTimer::singleShot( 100, &app, SLOT(quit()));