Closed Bug 141154 Opened 23 years ago Closed 23 years ago

NS_MsgCreatePathStringFromFolderURI doesn't handle "/"

Categories

(MailNews Core :: Backend, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 141162

People

(Reporter: dbradley, Assigned: mscott)

Details

Attachments

(2 files)

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.
Attached file Stack to Mid call
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
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.
QA Contact: gayatri → sheelar
dup of bug 141162 *** This bug has been marked as a duplicate of 141162 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
vrfy dup
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: