mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
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>
This commit is contained in:
parent
6204f8104f
commit
6e96cdd41a
@ -4838,7 +4838,7 @@ static pointer opexe_5(scheme *sc, enum scheme_opcodes op) {
|
|||||||
} else {
|
} else {
|
||||||
sc->nesting_stack[sc->file_i]++;
|
sc->nesting_stack[sc->file_i]++;
|
||||||
#if USE_TAGS && SHOW_ERROR_LINE
|
#if USE_TAGS && SHOW_ERROR_LINE
|
||||||
{
|
if (sc->load_stack[sc->file_i].kind & port_file) {
|
||||||
const char *filename =
|
const char *filename =
|
||||||
sc->load_stack[sc->file_i].rep.stdio.filename;
|
sc->load_stack[sc->file_i].rep.stdio.filename;
|
||||||
int lineno =
|
int lineno =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user