Closed
Bug 703175
Opened 13 years ago
Closed 12 years ago
nsImportTextAddress::DetermineDelim seems wrong
Categories
(MailNews Core :: Import, defect)
MailNews Core
Import
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 16.0
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(2 files, 2 obsolete files)
2.99 KB,
patch
|
hiro
:
review+
|
Details | Diff | Splinter Review |
1.70 KB,
patch
|
hiro
:
review+
|
Details | Diff | Splinter Review |
As you can see from the fact that some variable names contain 'line' word in nsImportTextAddress::DeteminDelim, The function aims to count tab and comma line by line but actually it fails.
First, NULL-terminated position is always kTextAddressBufferSz - 1, it should be read bytes from stream, in this case it's 'left' variable. (The variable name is not good at all, by the way)
Second, nsIInputStream is used instead of nsILineInputStream.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → hiikezoe
Attachment #575078 -
Flags: review?(dbienvenu)
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #575079 -
Flags: review?(dbienvenu)
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #2)
> Created attachment 575079 [details] [diff] [review] [diff] [details] [review]
> A test
This test depend on importHelper.js in bug 700920.
Status: NEW → ASSIGNED
Depends on: 700920
Comment 4•13 years ago
|
||
Comment on attachment 575078 [details] [diff] [review]
Fix
The patch didn't apply cleanly, but when I fixed it, it passed the tests...
Attachment #575078 -
Flags: review?(dbienvenu) → review+
Updated•13 years ago
|
Attachment #575079 -
Flags: review?(dbienvenu) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #575078 -
Attachment is obsolete: true
Attachment #636594 -
Flags: review+
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #575079 -
Attachment is obsolete: true
Attachment #636595 -
Flags: review+
Comment 7•12 years ago
|
||
So should these be checkin-needed ?
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Ludovic Hirlimann [:Usul] from comment #7)
> So should these be checkin-needed ?
Yes. Thanks for the notice. I do sometimes forget the flag.
Keywords: checkin-needed
Comment 9•12 years ago
|
||
https://hg.mozilla.org/comm-central/rev/c3444a3d3436
https://hg.mozilla.org/comm-central/rev/206610bffbe7
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 16.0
You need to log in
before you can comment on or make changes to this bug.
Description
•