Closed
Bug 127289
Opened 23 years ago
Closed 23 years ago
nsMsgThread::GetFirstUnreadChild code path returns uninitialized value
Categories
(MailNews Core :: Database, defect, P5)
MailNews Core
Database
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: timeless, Assigned: Bienvenu)
References
Details
Attachments
(1 file)
(deleted),
patch
|
naving
:
review+
|
Details | Diff | Splinter Review |
follow this path:
1045 NS_IMETHODIMP nsMsgThread::GetFirstUnreadChild(nsIMsgDBHdr **result)
1049 nsresult rv;
1051 GetNumChildren(&numChildren);
make a path where numChildren is not positive.
1053 if ((PRInt32) numChildren < 0)
1054 numChildren = 0;
1056 for (PRUint32 childIndex = 0; childIndex < numChildren; childIndex++)
nothing happens here
1076 return rv;
1077 }
Assignee | ||
Comment 1•23 years ago
|
||
This would only happen if the thread was empty (i.e., no messages). If the
thread is empty, we don't call this routine anyway in any case that we care
about the return value (we care about the result). So, marking trivial.
Severity: normal → trivial
Priority: -- → P5
Assignee | ||
Comment 2•23 years ago
|
||
just init rv to NS_OK - callers need to (and do) check for non-null result.
Assignee | ||
Comment 3•23 years ago
|
||
Navin, can I get a review? thx.
Comment 4•23 years ago
|
||
Comment on attachment 83752 [details] [diff] [review]
proposed fix
r=naving
Attachment #83752 -
Flags: review+
Assignee | ||
Comment 5•23 years ago
|
||
fix checked in, sr=sspitzer.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 6•23 years ago
|
||
V, warning is no longer there in
http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1021577100.8769.gz&fulltext=1
(Thu, 16 May 2002 15:25 -0400)
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•