WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 69011
FTPDirectoryDocument Shows Garbled String for Last Modified Date
https://bugs.webkit.org/show_bug.cgi?id=69011
Summary
FTPDirectoryDocument Shows Garbled String for Last Modified Date
Joseph Pecoraro
Reported
2011-09-28 11:41:51 PDT
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.
Attachments
[PATCH] Proposed Fix
(1.55 KB, patch)
2011-09-28 11:57 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2011-09-28 11:44:24 PDT
Typo, I meant: "coercion".
Joseph Pecoraro
Comment 2
2011-09-28 11:57:06 PDT
Created
attachment 109043
[details]
[PATCH] Proposed Fix I also switched from + ' ' to + " " which would have caused a compiler issue and help catch this earlier, but if you want we can switch that space back to a char. The important part was to force the first expr to be a WTF::String.
WebKit Review Bot
Comment 3
2011-09-28 13:17:42 PDT
Comment on
attachment 109043
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 109043 Committed
r96253
: <
http://trac.webkit.org/changeset/96253
>
WebKit Review Bot
Comment 4
2011-09-28 13:17:46 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 5
2011-09-28 13:46:05 PDT
<
rdar://problem/10173710
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug