[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#617680: marked as done (segfaults when attempting to import db from file)



Your message dated Sun, 15 May 2011 15:39:04 -0300
with message-id <201105151539.05016.perezmeyer@gmail.com>
and subject line New upstream version uploaded.
has caused the Debian Bug report #617680,
regarding segfaults when attempting to import db from file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
617680: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617680
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: sqlitebrowser
Version: 1.3-2.3
Severity: normal
Tags: +patch

Hello.

It appears that there is error when trying to import database from file
(.sql) and not choosing new database file name when prompted.

When file dialog opens, and user clicks reject action button (No/Abort)
then newDBfile becomes empty QString. Then db.create() is called with
empty parameter and SQLite code (implemented in sqlitedb.cpp
function bool DBBrowserDB::create ( const QString & db) that calls
deprecated function QString::utf8()). 

Application crashes:
*** glibc detected *** sqlitebrowser: free(): invalid pointer

Maybe something like this could help:

--- form1.ui.h.old	2011-03-10 15:51:05.000000000 +0100
+++ form1.ui.h	2011-03-10 15:49:22.000000000 +0100
@@ -1071,7 +1071,7 @@
      QMessageBox::information( this, applicationName ,err);
      return;
  }
- if (!fileName.isNull())
+ if ((!fileName.isNull()) && (!newDbFile.isNull()))
  {
      db.create(newDBfile);
  }

I'm not sure about this solution as I'm not able to test it, because 
this version of sqlitebrowser requires old Qt-Designer and QT3.


Regards.

-- 
 Grzegorz Bizon
 ntsn.pl Software Development
 http://ntsn.pl



--- End Message ---
--- Begin Message ---
Version: 2.0.0~beta1+ds



-- 
Contrary to popular belief, Unix is user friendly. It just happens to be
very selective about who it decides to make friends with.
  Unknown - http://www.linfo.org/q_unix.html

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply to: