Changeset 263405 in webkit
- Timestamp:
- Jun 23, 2020, 11:15:49 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r263335 r263405 1 2020-06-23 Mark Lam <mark.lam@apple.com> 2 3 Handle string overflow in DFG graph dump while validating AI. 4 https://bugs.webkit.org/show_bug.cgi?id=213524 5 <rdar://problem/64635620> 6 7 Reviewed by Saam Barati. 8 9 * stress/string-overflow-in-dfg-graph-dump.js: Added. 10 1 11 2020-06-21 Michael Catanzaro <mcatanzaro@gnome.org> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r263400 r263405 1 2020-06-23 Mark Lam <mark.lam@apple.com> 2 3 Handle string overflow in DFG graph dump while validating AI. 4 https://bugs.webkit.org/show_bug.cgi?id=213524 5 <rdar://problem/64635620> 6 7 Reviewed by Saam Barati. 8 9 * ftl/FTLLowerDFGToB3.cpp: 10 (JSC::FTL::DFG::LowerDFGToB3::validateAIState): 11 1 12 2020-06-23 Devin Rousso <drousso@apple.com> 2 13 -
trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
r263195 r263405 560 560 StringPrintStream out; 561 561 m_graph.dump(out); 562 m_graphDump = out.toString(); 562 auto expectedString = out.tryToString(); 563 m_graphDump = expectedString ? expectedString.value() : String("<out of memory while dumping graph>"_s); 563 564 } 564 565 -
trunk/Source/WTF/ChangeLog
r263380 r263405 1 2020-06-23 Mark Lam <mark.lam@apple.com> 2 3 Handle string overflow in DFG graph dump while validating AI. 4 https://bugs.webkit.org/show_bug.cgi?id=213524 5 <rdar://problem/64635620> 6 7 Reviewed by Saam Barati. 8 9 * wtf/StringPrintStream.cpp: 10 (WTF::StringPrintStream::tryToString): 11 * wtf/StringPrintStream.h: 12 1 13 2020-06-22 Saam Barati <sbarati@apple.com> 2 14 -
trunk/Source/WTF/wtf/StringPrintStream.cpp
r237099 r263405 96 96 } 97 97 98 Expected<String, UTF8ConversionError> StringPrintStream::tryToString() 99 { 100 ASSERT(m_next == strlen(m_buffer)); 101 if (m_next > String::MaxLength) 102 return makeUnexpected(UTF8ConversionError::OutOfMemory); 103 return String::fromUTF8(m_buffer, m_next); 104 } 105 98 106 String StringPrintStream::toString() 99 107 { -
trunk/Source/WTF/wtf/StringPrintStream.h
r261569 r263405 42 42 43 43 WTF_EXPORT_PRIVATE CString toCString(); 44 WTF_EXPORT_PRIVATE Expected<String, UTF8ConversionError> tryToString(); 44 45 WTF_EXPORT_PRIVATE String toString(); 45 46 WTF_EXPORT_PRIVATE String toStringWithLatin1Fallback();
Note:
See TracChangeset
for help on using the changeset viewer.