Changeset 174122 in webkit
- Timestamp:
- Sep 30, 2014, 2:05:08 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r174121 r174122 1 2014-09-30 Mark Lam <mark.lam@apple.com> 2 3 Label some asserts as having security implications. 4 <https://webkit.org/b/137260> 5 6 Reviewed by Filip Pizlo. 7 8 * dfg/DFGGraph.cpp: 9 (JSC::DFG::Graph::handleAssertionFailure): 10 * runtime/JSCell.h: 11 (JSC::jsCast): 12 * runtime/StructureIDTable.h: 13 (JSC::StructureIDTable::get): 14 1 15 2014-09-30 Filip Pizlo <fpizlo@apple.com> 2 16 -
trunk/Source/JavaScriptCore/dfg/DFGGraph.cpp
r173993 r174122 1229 1229 dataLog("DFG ASSERTION FAILED: ", assertion, "\n"); 1230 1230 dataLog(file, "(", line, ") : ", function, "\n"); 1231 CRASH ();1231 CRASH_WITH_SECURITY_IMPLICATION(); 1232 1232 } 1233 1233 -
trunk/Source/JavaScriptCore/runtime/JSCell.h
r173706 r174122 235 235 inline To jsCast(From* from) 236 236 { 237 ASSERT (!from || from->JSCell::inherits(std::remove_pointer<To>::type::info()));237 ASSERT_WITH_SECURITY_IMPLICATION(!from || from->JSCell::inherits(std::remove_pointer<To>::type::info())); 238 238 return static_cast<To>(from); 239 239 } … … 242 242 inline To jsCast(JSValue from) 243 243 { 244 ASSERT (from.isCell() && from.asCell()->JSCell::inherits(std::remove_pointer<To>::type::info()));244 ASSERT_WITH_SECURITY_IMPLICATION(from.isCell() && from.asCell()->JSCell::inherits(std::remove_pointer<To>::type::info())); 245 245 return static_cast<To>(from.asCell()); 246 246 } -
trunk/Source/JavaScriptCore/runtime/StructureIDTable.h
r171953 r174122 84 84 { 85 85 #if USE(JSVALUE64) 86 ASSERT (structureID && structureID < m_capacity);86 ASSERT_WITH_SECURITY_IMPLICATION(structureID && structureID < m_capacity); 87 87 return table()[structureID].structure; 88 88 #else
Note:
See TracChangeset
for help on using the changeset viewer.