summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-04-28 23:57:49 +0000
committermiod <miod@openbsd.org>2005-04-28 23:57:49 +0000
commitffba9f8afbb7e465ef18dced17e7bac1ba08b94a (patch)
tree92237fef2bef0128300790b1d204772d4c06f206
parentanother (diff)
downloadwireguard-openbsd-ffba9f8afbb7e465ef18dced17e7bac1ba08b94a.tar.xz
wireguard-openbsd-ffba9f8afbb7e465ef18dced17e7bac1ba08b94a.zip
bzero() output before invoking bignum_copy().
-rw-r--r--gnu/usr.bin/gas/config/tc-vax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/gas/config/tc-vax.c b/gnu/usr.bin/gas/config/tc-vax.c
index fd2008e9b8c..cbb787d9663 100644
--- a/gnu/usr.bin/gas/config/tc-vax.c
+++ b/gnu/usr.bin/gas/config/tc-vax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tc-vax.c,v 1.3 2002/08/09 19:07:53 miod Exp $ */
+/* $OpenBSD: tc-vax.c,v 1.4 2005/04/28 23:57:49 miod Exp $ */
/* tc-vax.c - vax-specific -
Copyright (C) 1987, 1991, 1992 Free Software Foundation, Inc.
@@ -453,6 +453,7 @@ char *instruction_string; /* A string: assemble 1 instruction. */
case SEG_BIG:
/* Preserve the bits. */
if (expP->X_add_number > 0) {
+ bzero(floatP->low, SIZE_OF_LARGE_NUMBER);
bignum_copy(generic_bignum, expP->X_add_number,
floatP->low, SIZE_OF_LARGE_NUMBER);
} else {