Closed
Bug 141154
Opened 23 years ago
Closed 23 years ago
NS_MsgCreatePathStringFromFolderURI doesn't handle "/"
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 141162
People
(Reporter: dbradley, Assigned: mscott)
Details
Attachments
(2 files)
7.16 KB,
text/plain
|
Details | |
2.22 KB,
patch
|
Details | Diff | Splinter Review |
NS_MsgCreatePathStringFromFolderURI appears to have a problem with "/", if the
folderURI is "/" oldPath.Mid is called with 1, 4294967294
I'm not sure why "/" is getting passed in, I suspect something got corrupted.
Reporter | ||
Comment 1•23 years ago
|
||
Actually the problem is the test of if (endSlashPos==-1) Because in this case,
endSlashPos == -2 since the second FindChar didn't succeed and returned -1 and
that result is reduced by 1
Reporter | ||
Comment 2•23 years ago
|
||
This patch consolidates the parsing code and addresses the problem. It seems to
work, but I haven't grilled it to see if it behaves in all conditions the same
as the previous logic.
Comment 3•23 years ago
|
||
dup of bug 141162
*** This bug has been marked as a duplicate of 141162 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•