Closed
Bug 225570
Opened 21 years ago
Closed 21 years ago
nsMsgCompose carefully avoids using GetTypeFromFile
Categories
(MailNews Core :: Composition, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Biesinger, Assigned: Biesinger)
References
()
Details
Attachments
(1 file)
3.66 KB,
patch
|
bzbarsky
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
In nsMsgCompose::ProcessSignature:
the code has an nsILocalFile to work with
but, it gets the nativePath from it, inits a filespec with it, then CIs a
nsIFileURL, inits it with the native path, gets the extension from that, and
asks the mimeservice for the type.
it should simply ask the mimeservice for the type of the nsILocalFile. (using
the GetTypeFromFile method)
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #135402 -
Flags: review?(mscott)
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•21 years ago
|
Attachment #135402 -
Flags: review?(mscott) → review?(ducarroz)
Updated•21 years ago
|
Attachment #135402 -
Flags: superreview+
Updated•21 years ago
|
Attachment #135402 -
Flags: review?(ducarroz) → review?(bienvenu)
Assignee | ||
Updated•21 years ago
|
Attachment #135402 -
Flags: review?(bienvenu) → review?(bzbarsky)
![]() |
||
Comment 2•21 years ago
|
||
Comment on attachment 135402 [details] [diff] [review]
something like this
r=bzbarsky
Attachment #135402 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•21 years ago
|
||
Checking in mailnews/compose/src/nsMsgCompose.cpp;
/cvsroot/mozilla/mailnews/compose/src/nsMsgCompose.cpp,v <-- nsMsgCompose.cpp
new revision: 1.412; previous revision: 1.411
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 4•21 years ago
|
||
This checkin have added a "may be used uninitialized" warning on brad TBox:
+mailnews/compose/src/nsMsgCompose.cpp:3320
+ `nsresult rv' might be used uninitialized in this function
Indeed, if identity is NULL on line 3348, then on line 3385, it will try testing
NS_FAILED on an unitialized rv - see
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/compose/src/nsMsgCompose.cpp&rev=1.412&mark=3348,3385#3320
Should I file a new bug for this or reopen this one?
![]() |
||
Comment 5•21 years ago
|
||
Fix checked in for the warning.
Updated•20 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
•