Hello!

I discovered two bugs, causing crash of WCartesianChart.

Here I attach patches for these bugs:

1. x and y were passed to stream as raw double's. They were wrappered
by Utils::round_str.

2. generic_double_to_str used to produce nan instead of NaN.

After this, WCartesianChart works.

Another crash, which I can't reproduced, was caused by this JS:
ctx.lineTo(39.500,-0.00>);
When I tried to reproduce it, it turned into
ctx.lineTo(39.500,-nan);

I thought that "-0.00>" is a result of error in "fast float->string
converter". But I can't find error in it. And it should not be called
for NaN. So there can be another bug related.

Attachment: fillText.diff
Description: Binary data

Attachment: generic_double_to_str.diff
Description: Binary data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to