From: Michael Beck Date: Thu, 1 Nov 2007 14:49:38 +0000 (+0000) Subject: clear the tarval buffer before fc_val_from_ieee754() fills bits in. There seems to... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d87a2c02d382730f94119bb43389a4256615264c;p=libfirm clear the tarval buffer before fc_val_from_ieee754() fills bits in. There seems to be uninitialized bytes ... [r16407] --- diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index bed4dac97..431d573f1 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -1063,6 +1063,9 @@ fp_value *fc_val_from_ieee754(LLDBL l, char exp_size, char mant_size, fp_value * if (result == NULL) result = calc_buffer; temp = alloca(value_size); + /* CLEAR the buffer */ + memset(result, 0, fc_get_buffer_length()); + result->desc.exponent_size = exp_size; result->desc.mantissa_size = mant_size;