Fix a buffer overrun on Linux/PPC64. #1792

Merged
merged 1 commit into from Mar 24, 2013

Projects

None yet

2 participants

@redstar

The buffer in realToMangleBuffer() is too small for longdouble values. It produces strings like 0X1.599999999999999999999999998P+1 or 0X1.999999999999999999999999998P-4 which have a length of 34. This results in an ICE e.g. in the unit test of std.range.

@redstar redstar Fix a buffer overrun on Linux/PPC64.
The buffer in realToMangleBuffer() is too small for longdouble values.
It produces strings like 0X1.599999999999999999999999998P+1 or
0X1.999999999999999999999999998P-4 which have a length of 34. This
results in an ICE e.g. in the unit test of std.range.
f0f6fa0
@WalterBright WalterBright merged commit cfec6fb into dlang:master Mar 24, 2013

1 check was pending

Details default Pass: 9, In Progress: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment