[Webkit-unassigned] [Bug 69011] New: FTPDirectoryDocument Shows Garbled String for Last Modified Date
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 28 11:41:50 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69011
Summary: FTPDirectoryDocument Shows Garbled String for Last
Modified Date
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: joepeck at webkit.org
Opening ftp://ftp.oracle.com in a browser that uses WebCore's FTPDirectoryDocument
was including a semi-garbage incorrect string for the Last Modified Date.
It looks like this was due to a change that removed some string corrosion and
accidentally introduced pointer arithmetic:
http://trac.webkit.org/changeset/86542/trunk/Source/WebCore/html/FTPDirectoryDocument.cpp
dateString = months[month] + ' ' + String::number(fileTime.tm_mday) + ", " + String::number(fileTime.tm_year);
The first two pieces are (char* + char) instead of the desired (WTF::String + char) and result
in an unexpected prefix for dateString.
Patch to follow.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list