-
loislo@chromium.org authored
Reviewed by Pavel Feldman. Web Inspector: Crash by buffer overrun crash when serializing inspector object tree. https://bugs.webkit.org/show_bug.cgi?id=52791 No new tests. The problem can be reproduced by trying to create InspectorValue from 1.0e-100 and call ->toJSONString() on this. * inspector/InspectorValues.cpp: (WebCore::InspectorBasicValue::writeJSON): Added checking the predicted buffer size and choosing exponential format, or eventually "NaN" if the buffer is too small for decimal format. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@88365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
d17b2ff4