Closed
Bug 506631
Opened 16 years ago
Closed 3 years ago
nsSAXXMLReader should not use nsDependentString(PRUnichar(0))
Categories
(Core :: XML, defect)
Core
XML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: timeless, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: coverity, Whiteboard: qa-not-actionable)
Attachments
(1 file, 1 obsolete file)
|
8.76 KB,
patch
|
Details | Diff | Splinter Review |
192 nsSAXXMLReader::HandleStartDTD(const PRUnichar *aName,
193 const PRUnichar *aSystemId,
194 const PRUnichar *aPublicId)
195 {
196 PRUnichar nullChar = PRUnichar(0);
197 if (!aName)
198 aName = &nullChar;
199 if (!aSystemId)
200 aSystemId = &nullChar;
201 if (!aPublicId)
202 aPublicId = &nullChar;
203
204 mSystemId = aSystemId;
205 mPublicId = aPublicId;
206 if (mLexicalHandler) {
207 return mLexicalHandler->StartDTD(nsDependentString(aName),
208 nsDependentString(aSystemId),
209 nsDependentString(aPublicId));
Summary: nsSAXXMLReader::HandleStartDTD should use EmptyString → nsSAXXMLReader should not use nsDependentString(PRUnichar(0))
Attachment #390796 -
Attachment is obsolete: true
Attachment #390798 -
Flags: review?(jonas)
Attachment #390796 -
Flags: review?(jonas)
Why? The sting code seems to deal fine:
http://mxr.mozilla.org/mozilla-central/source/xpcom/build/nsXPCOMStrings.cpp#219
Attachment #390798 -
Flags: review?(jonas)
Comment on attachment 390798 [details] [diff] [review]
for the class
Removing review request while waiting for reply.
Updated•7 years ago
|
Blocks: coverity-analysis
Updated•4 years ago
|
Whiteboard: qa-not-actionable
Comment 5•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:peterv, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: timeless → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(peterv)
Updated•3 years ago
|
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(peterv)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•