Out of memory problem with pinentry-qt

Ingo Klöcker kloecker@kde.org
Wed Apr 16 00:26:18 2003


--Boundary-02=_khHn+nv5/JK3ZlM
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

Hi,

pinentry-qt has a serious "Out of memory" problem. To reproduce run=20
pinentry-qt, enter "getpin" and then move the mouse a few times over=20
the buttons (I'm using Keramik style, maybe that's important). You will=20
get the following output:
=3D=3D=3D=3D=3D
> pinentry-qt
Warning: using insecure memory!
[0x4103102c] -> OK Your orders please
OK Your orders please
getpin
[0x4103102c] <- getpin
Out of memory!
Aborted
=3D=3D=3D=3D=3D

A possible reason could be a memory leak in the Keramik style. My=20
radical solution to make pinentry-qt stable was to #ifdef 0 the whole=20
code of pinentry/qt/cppmemory.cpp and the two occurrences of is_secure=20
in pinentry/qt/main.cpp. Of course now pinentry-qt doesn't use secure=20
memory anymore but as pinentry-qt wasn't suid root the memory was=20
anyway not secure. Or was it?

Regards,
Ingo


--Boundary-02=_khHn+nv5/JK3ZlM
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+nHhkGnR+RTDgudgRApkzAJ9MLMaJI7h14jp2r71GfsrvFRwyuACdHJlQ
Htw6msPLkaxKB1PWaICVmbA=
=maXI
-----END PGP SIGNATURE-----

--Boundary-02=_khHn+nv5/JK3ZlM--