Commit d87a2c02 authored by Michael Beck's avatar Michael Beck
Browse files

clear the tarval buffer before fc_val_from_ieee754() fills bits in. There...

clear the tarval buffer before fc_val_from_ieee754() fills bits in. There seems to be uninitialized bytes ...

[r16407]
parent 5f6a016f
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment