Closed
Bug 59670
Opened 24 years ago
Closed 22 years ago
Occurances of uninitialized variables being used before being set (xpinstall/wizard).
Categories
(SeaMonkey :: Installer, defect, P2)
SeaMonkey
Installer
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rich.burridge, Assigned: dveditz)
References
Details
Attachments
(1 file)
(deleted),
patch
|
dveditz
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
For more details on this problem, see:
http://bugzilla.mozilla.org/show_bug.cgi?id=59652
This bug is just for the warnings in various source files in the
Installer module:
nsZipArchive.cpp:532: warning: `PRBool regExp' might be used uninitialized in
this function
nsZipArchive.cpp:1010: warning: `PRUint32 bigBufSize' might be used
uninitialized in this function
----
nsJAR.cpp:714: warning: because conversion sequence for the argument is
betternsJAR.cpp:590: warning: `class nsJARManifestItem * curItemMF' might be
used uninitialized in this function
----
../nsZipArchive.cpp:532: warning: `PRBool regExp' might be used uninitialized in
this function
../nsZipArchive.cpp:1010: warning: `PRUint32 bigBufSize' might be used
uninitialized in this function
----
../nsJAR.cpp:590: warning: `class nsJARManifestItem * curItemMF' might be used
uninitialized in this function
----
Reporter | ||
Comment 1•24 years ago
|
||
Two more occurances:
/xpinstall/src/nsInstallPatch.cpp
nsInstallPatch.cpp:950: warning: `int32 err' might be used uninitialized in this
function
../../dist/include/nsAReadableString.h:1085: warning: `int whichString' might be
used uninitialized in this function
----
/xpinstall/src/nsInstallProgressDialog.cpp
nsInstallProgressDialog.cpp:226: warning: `nsresult rv' might be used
uninitialized in this function
----
Assignee | ||
Comment 2•24 years ago
|
||
Reassigning since Sean will be swamped with wizard work.
Assignee | ||
Updated•24 years ago
|
Keywords: nsbeta1 → mozilla1.0
Comment 3•23 years ago
|
||
Currently (http://tinderbox.mozilla.org/SeaMonkey/warn1010759460.5770.html) I
see the following warnings:
xpinstall/wizard/libxpnet/src/nsHTTPConn.cpp:356
`int total' might be used uninitialized in this function
xpinstall/wizard/libxpnet/test/TestLibxpnet.cpp:82
`time_t startTime' might be used uninitialized in this function
`time_t endTime' might be used uninitialized in this function
xpinstall/wizard/unix/src2/nsInstallDlg.cpp:1134
`int err' might be used uninitialized in this function
xpinstall/wizard/unix/src2/nsInstallDlg.cpp:924
`char * text' might be used uninitialized in this function
Updated•23 years ago
|
Summary: Occurances of uninitialized variables being used before being set. → Occurances of uninitialized variables being used before being set (xpinstall).
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Comment 4•22 years ago
|
||
The nsHTTPConn.cpp warning appears to be a real bug. If fwritePos is NULL,
aCallback will be called with an uninitialized second argument:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpinstall/wizard/libxpnet/src/nsHTTPConn.cpp&mark=403,416,433#400
This code was commited by jelwell@netscape.com for bug 87793.
Updated•22 years ago
|
Summary: Occurances of uninitialized variables being used before being set (xpinstall). → Occurances of uninitialized variables being used before being set (xpinstall/wizard).
Comment 5•22 years ago
|
||
Updated•22 years ago
|
Attachment #107045 -
Flags: superreview?
Attachment #107045 -
Flags: review?(dveditz)
Assignee | ||
Comment 6•22 years ago
|
||
Comment on attachment 107045 [details] [diff] [review]
Fix the issues reported by compiler warnings.
r=dveditz
Attachment #107045 -
Flags: review?(dveditz) → review+
Assignee | ||
Comment 7•22 years ago
|
||
Comment on attachment 107045 [details] [diff] [review]
Fix the issues reported by compiler warnings.
I can't r= and sr= the same bug
Comment 8•22 years ago
|
||
Comment on attachment 107045 [details] [diff] [review]
Fix the issues reported by compiler warnings.
> I can't r= and sr= the same bug
Bugzilla was not saying that you were asked for an sr, Bugzilla though (known
bug) that you were the one *requesting* it. And the requestee just was not
specified at all.
Hopefully brendan@mozilla.org is the right person to ask, and if not could you
please ask somebody else? Thanks!
Attachment #107045 -
Flags: superreview? → superreview?(brendan)
Comment 9•22 years ago
|
||
Comment on attachment 107045 [details] [diff] [review]
Fix the issues reported by compiler warnings.
rs=brendan@mozilla.org, but I didn't study the nsHTTPConn.cpp code enough to
understand why total = 0 is right. I'm gonna assume that the owner is all over
the logic here.
/be
Attachment #107045 -
Flags: superreview?(brendan) → superreview+
Comment 10•22 years ago
|
||
dveditz, can you please check this in (I do not have CVS access). Thanks!
Updated•22 years ago
|
Flags: wanted1.3a?
Updated•22 years ago
|
Attachment #107045 -
Flags: in?(dveditz)
Attachment #107045 -
Flags: checked
Comment 11•22 years ago
|
||
We're not going to hold 1.3a for this. That doesn't mean that the fix won't be
included in 1.3a. (The "wanted1.3a" flag has been changed to "blocking1.3a" to
more accurately reflect how the flag is used by drivers@mozilla.org).
Flags: blocking1.3a? → blocking1.3a-
Comment 12•22 years ago
|
||
Comment on attachment 107045 [details] [diff] [review]
Fix the issues reported by compiler warnings.
Patch checked in. Aleksey, can you close the bug?
Attachment #107045 -
Flags: checkin?(dveditz)
Comment 13•22 years ago
|
||
brad TBox does not show any "uninitialized" warnings left in xpinstall/wizard.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•