[Webkit-unassigned] [Bug 146494] New: REGRESSION (185319): Reproducible crash in WebHistoryItem launching FluidApp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 30 22:35:17 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=146494
Bug ID: 146494
Summary: REGRESSION (185319): Reproducible crash in
WebHistoryItem launching FluidApp
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Macintosh
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: beidson at apple.com
REGRESSION (185319): Reproducible crash in WebHistoryItem launching FluidApp
Steps to reproduce:
1 - Download FluidApp from http://fluidapp.com
2 - Create an app from a website (I used webkit.org)
3 - Launch that WebApp
Crash:
1 0x1034112e0 WTFCrash
2 0x104dbe7d9 WTF::CrashOnOverflow::crash()
3 0x104dbe7a9 WTF::CrashOnOverflow::overflowed()
4 0x104dbf471 WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow, 16ul>::at(unsigned long)
5 0x104e51edd WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow, 16ul>::operator[](unsigned long)
6 0x104eb909b -[WebHistoryItem initFromDictionaryRepresentation:]
7 0x104eb0897 -[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]
8 0x104eb0a8c -[WebHistoryPrivate loadFromURL:collectDiscardedItemsInto:error:]
9 0x104eb17db -[WebHistory loadFromURL:error:]
10 0x100019c11 -[FUHistoryController setUpHistory]
11 0x1000198ca -[FUHistoryController init]
12 0x100019807 +[FUHistoryController instance]
13 0x10000e293 -[FUApplication finishLaunching]
14 0x7fff8b010a21 -[NSApplication run]
15 0x7fff8af8d354 NSApplicationMain
16 0x1000017c4 start
The code in question:
auto redirectURLsVector = std::make_unique<Vector<String>>();
for (NSUInteger i = 0; i < size; ++i) {
id redirectURL = [redirectURLs objectAtIndex:i];
if (![redirectURL isKindOfClass:[NSString class]])
continue;
(*redirectURLsVector)[i] = (NSString *)redirectURL;
}
We create a Vector of size 0 then immediately reference the first element.
That's obviously wrong.
In radar as rdar://problem/21598293
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150701/cd9d8b86/attachment.html>
More information about the webkit-unassigned
mailing list