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

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

      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
      }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes