chiark / gitweb /
gpgscm: Guard use of union member.
authorJustus Winter <justus@g10code.com>
Wed, 21 Dec 2016 15:14:45 +0000 (16:14 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 3 Jan 2017 20:39:52 +0000 (20:39 +0000)
commit441e87b25af7bfb8aa854104e30ded5732fb39f5
tree3bacf6adb8e56b9401098a2a1267a37b85101264
parentfd200e494c0e288d4de5cd9e59136983cf9b5765
gpgscm: Guard use of union member.

* tests/gpgscm/scheme.c (opexe_5): Check that we have a file port
before accessing filename.  Fixes a crash on 32-bit architectures.

Fixes-commit: e7429b1ced0c69fa7901f888f8dc25f00fc346a4
Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit 6e96cdd41a0e55b672309431062f37c4a4a9f485)

Gbp-Pq: Name 0012-gpgscm-Guard-use-of-union-member.patch
tests/gpgscm/scheme.c