Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1190

buffer overflow not detected on certain circumstances debugging with /fsanitize=address

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 3.1.0 (rev.02)
    • Debug/test integration
    • None
    • Windows 11 Pro
      Visual Studio 2022, version 17.9.6
    • Windows

    Description

      when code like the following is executed when the Visual C++ is set to

      /fsanitize=address /RTCs /Zi  /INCREMENTAL:NO

       

      it does not catch the buffer overflow but only when done right after a QDialog::exec():

       

      void MyMainWindow::runDialog()
      {
                 char y[10];
                 y[35] = 55; // THIS OVERFLOW caught by debugger
      
                 auto m = new MyDialog();
                 m->exec();
      
                 char x[10];
                 x[35] = 55;    // THIS OVERFLOW NOT caught by debugger
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ali.demiralp Ali Can Demiralp
            juandent JUAN DENT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes