WebSiteAdvantage.KeePass.Firefox.Importer icon indicating copy to clipboard operation
WebSiteAdvantage.KeePass.Firefox.Importer copied to clipboard

Crash after manually choosing profile.ini for import profiles

Open sebkraemer opened this issue 7 years ago • 0 comments

When I started the plugin to import passwords, the combobox for the profiles was empty. I then chose a profile.ini from mozilla-firefox directory (linux 64 bit). The application crashes with the following backtrace:

libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
  at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x00053] in <373b6e083d6e45e498c9082a8eebd27f>:0 
  at WebSiteAdvantage.KeePass.Firefox.FirefoxProfileInfo.FindFirefoxProfileInfosFromIniFile (System.String profilesIni, System.Collections.Generic.List`1[T] profiles) [0x000aa] in <2d8e802397fa4592afcae63dff2c0065>:0 
  at WebSiteAdvantage.KeePass.FireFoxConverter.Form1.buttonFindProfiles_Click (System.Object sender, System.EventArgs e) [0x0006a] in <b57b9783568748949b1810f4856787a8>:0 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0001c] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00024] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00081] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x0004e] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <2f8b04a5fbc8420bbb3895e91a62c74f>:0 

If started from keepass as plugin, the dialog would silently do nothing (no crash).

The file in question looks like this:

StartWithLastProfile=0

[Profile0]
Name=default
IsRelative=1
Path=foobar.default
Default=1

Linux 64 bit, Firefox-KeePass-Importer-2-28.zip

sebkraemer avatar Nov 30 '17 20:11 sebkraemer