RE: [Passwordsafe-users] "out of memory" error!
Popular easy-to-use and secure password manager
Brought to you by:
ronys
From: Rony S. <ro...@gm...> - 2003-04-10 05:00:24
|
Hi Karel, That was my first thought too: I was thinking of diving into the code with a debugger and manually changing the allocation to the correct value. On second thought, however, if the length decrypts to garbage, chances are that the whole file is corrupt. Anyway, reading the length and allocating accordingly is done in _readcbc() in Util.cpp: unsigned char* wholething = new unsigned char[BlockLength]; Rony -----Original Message----- From: Van der Gucht Karel ICM CP RD VD 2 [mailto:kar...@si...] Sent: Thursday, April 10, 2003 6:43 AM To: 'Rony Shapiro'; 'hl...@tr...' Subject: AW: [Passwordsafe-users] "out of memory" error! Hi, This is Karel Van der Gucht Is there any chance to limit the amount of memory allocated (e.g. twice the amount of the file), to get a chance of loading and "resaving" the .dat file, if the calculated amount of memory is out of reasonable scale? This could help Hua in restoring his .dat file We are using a version 1.9.4 (derived from 1.9.0, with an enhanced password generating feature). Hua: I did send you the file 1.9.4, so you can test if this one is working. BUT: I'm pretty shure it won't, because I didn't change anything about reading and storing files. After all, lets give it a try. Rony: do you know the area in the code of pwsafe where this allocation is done, so I could give it a try on my suggestion. mit freundlichen Grüßen, kind regards Karlo Van der Gucht ----------------------------------------- Siemens AG ICM CP RD VD 2 Grillparzerstr 10 81675 München Postfach 801707 Telefon : +49 89 722 41399 FAX : +49 89 722 913523 E-Mail : Kar...@si... ----------------------------------------- -----Ursprüngliche Nachricht----- Von: Rony Shapiro [mailto:ro...@gm...] Gesendet: Mittwoch, 9. April 2003 19:24 An: Hua William Li; pas...@li... Betreff: RE: [Passwordsafe-users] "out of memory" error! Ah, that's better! It indeed seems that the file in question got corrupted. Here's why: One of the first things that's encrypted in the file is the length of the actual data. This is read and decrypted, and memory is allocated accordingly. If this is somehow corrupted, then a HUGE amount of memory is (trying to be) allocated. Rony -----Original Message----- From: Hua William Li [mailto:hl...@tr...] Sent: Wednesday, April 09, 2003 5:37 PM To: Rony Shapiro; pas...@li... Subject: Re: [Passwordsafe-users] "out of memory" error! Hi Rony, Thanks for your response. Here are my answers for your questions: 1. version 1.7 2. everytime for that particular file. 3. 1KB 4. only that particular file, other files are fine. 5. only 3 entries. 6. I am using Window 2K Pro, 512MB ram. I have other large applications but are fine. My guess is that particular file might get somehow corrupted. But I donot know how. I appreciate your help on this. Best Regards, Will ----- Original Message ----- From: "Rony Shapiro" <ro...@gm...> To: "Hua William Li" <hl...@tr...>; <pas...@li...> Sent: Wednesday, April 09, 2003 2:28 AM Subject: RE: [Passwordsafe-users] "out of memory" error! > Hi Will, > > This is new to me. Let's try to gather some more information: > > - What version of passwordsafe are you using? > > - How often is "sometimes"? > > - How large is the .dat file (in kilobytes)? > > - Does this happen with any .dat file, or only a particular one? > > - How many entries are there in the file? > > - What about the computer you're using? What OS, how much memory? are other > applications giving you trouble as well? > > Rony > > -----Original Message----- > From: pas...@li... > [mailto:pas...@li...]On Behalf Of Hua > William Li > Sent: Wednesday, April 09, 2003 9:03 AM > To: pas...@li... > Subject: [Passwordsafe-users] "out of memory" error! > > > Hi folks, > > I am Will. I am new to PasswordSafe. > I have one quick question. I sometimes get "out of memory" error on screen > when I try to open the .dat file. > > Any help is appreciated. Thank you in advance! > > Will > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Passwordsafe-users mailing list Pas...@li... https://lists.sourceforge.net/lists/listinfo/passwordsafe-users |