Page MenuHome GnuPG

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

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

Details

Reviewers
None
Summary

From b8d44384ec6c225c62162377e477db9c029b6adb 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