[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gpa-dev
Subject:    Re: Out of memory problem with pinentry-qt
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2003-04-18 11:23:21
[Download RAW message or body]

On Thursday 17 April 2003 01:45, Steffen Hansen wrote:
> * Ingo Klöcker <kloecker@kde.org> [Apr 16. 2003 07:32]:
> > pinentry-qt has a serious "Out of memory" problem. To reproduce run
> > pinentry-qt, enter "getpin" and then move the mouse a few times
> > over the buttons (I'm using Keramik style, maybe that's important).
> > You will get the following output:
[snip]
> >
> > A possible reason could be a memory leak in the Keramik style. My
> > radical solution to make pinentry-qt stable was to #ifdef 0 the
> > whole code of pinentry/qt/cppmemory.cpp and the two occurrences of
> > is_secure in pinentry/qt/main.cpp. Of course now pinentry-qt
> > doesn't use secure memory anymore but as pinentry-qt wasn't suid
> > root the memory was anyway not secure. Or was it?
>
> You are right. On Linux you unfortunately need to be root to call
> mlock(). Which version of pinentry do you use btw? The version in CVS
> only overrides new[] and delete[] with secure mem. versions, because
> those are the operators that QString uses for the string data.
> Non-array objects are allocated with the regular new operator.

The current cvs version doesn't run out of memory anymore. You should 
release a new version of pinentry since the last "stable" version 
definitely has the out-of-memory problem which sometimes causes crashes 
as soon as the user moves the mouse over the OK button.

Regards,
Ingo


[Attachment #3 (application/pgp-signature)]
_______________________________________________
Gpa-dev mailing list
Gpa-dev@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gpa-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic