Page MenuHome GnuPG

697_0001-Keep-a-reference-to-the-pin-when-converting-it-from-.patch
AbandonedPublic

Authored by dmllr on Oct 21 2015, 2:43 PM.

Details

Reviewers
None
Summary

From d059c6d42279ce82c8a1ac8cd722c341d764d5ec Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dirk@dmllr.de>
Date: Wed, 21 Oct 2015 14:41:53 +0200
Subject: [PATCH] Keep a reference to the pin when converting it from the UI

const char* does not keep the temporary string returned
from toUtf8() active, since it doesn't keep the reference counter
set. So you usually just copy out garbage instead of the
pin that was entered. Just keep the QByteArray which keeps
the reference active.

GnuPG-bug-id: 2133

qt/main.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

2.6.0

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped