Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21671

QFile::seek() to an address which is greater than 0x7FFFFFFF fails on Symbian

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.7.4
    • Fix Version/s: 4.8.0
    • Component/s: Core: I/O
    • Environment:
      Symbian Belle wk38

      Description

      Steps to reproduce
      1. Run the following simple app (also sis file attached)
      2. Open any file on the device
        #include <QtGui>
        
        int main(int argc, char** argv)
        {
            QApplication app(argc, argv);
        
            QTextBrowser window;
            window.showMaximized();
        
            QString fileName = QFileDialog::getOpenFileName(&window, "select file", "C:/");
            if (!fileName.isEmpty()) {
                QFile file(fileName);
                if (file.open(QIODevice::ReadOnly)) {
                    window.append(QString("0x7FFFFFFF: %1").arg(file.seek(0x7FFFFFFF) ? "success" : "fail"));
                    window.append(QString("0x80000000: %1").arg(file.seek(0x80000000) ? "success" : "fail"));
                }
            }
            return app.exec();
        }
        
      Actual result
      0x7FFFFFFF: success
      0x80000000: fail
      
      Expected result
      0x7FFFFFFF: success
      0x80000000: success
      

        Attachments

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

          Activity

            People

            Assignee:
            e0348803 Miikka Heikkinen
            Reporter:
            matsumot Tadaaki Matsumoto
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes