Closed Bug 122918 Opened 23 years ago Closed 23 years ago

Linux installer can crash/segfault if CRC checking fails

Categories

(SeaMonkey :: Installer, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: slogan, Assigned: slogan)

References

Details

(Keywords: crash)

Attachments

(1 file)

Uncovered this while testing something else. Patch on the way.
Keywords: nsbeta1+
Keywords: crash
Test by setting MOZ_INSTALL_TEST_CRC=1 in your environment before running the
installer -- this will stress test CRC failures.
QA Contact: bugzilla → ktrina
Keywords: patch
Comment on attachment 67389 [details] [diff] [review]
patch to fix this

>-	if ( retval == PR_TRUE && myConn->URL != (char *) NULL )
>+	if ( retval == PR_TRUE && myConn->URL != (char *) NULL ) {
>     free( myConn->URL );
>+    myConn->URL = (char *) NULL;
>+  }

Fix the tabbing problems, use TRUE instead of PR_TRUE and r=sgehani.
Attachment #67389 - Flags: review+
Comment on attachment 67389 [details] [diff] [review]
patch to fix this

>-	else if ( ( myConn->type != type || strcmp( URL, myConn->URL ) || force == PR_TRUE ) /* && gControls->state != ePaused */) {
>+	else if ( ( myConn->type != type || myConn->URL == (char *) NULL || strcmp( URL, myConn->URL ) || force == PR_TRUE ) /* && gControls->state != ePaused */) {

Wow, that's one heck of a long line

sr=dveditz
Attachment #67389 - Flags: superreview+
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
adding segfault to summary to attract dupes
Summary: Linux installer can crash in CRC checking if CRC fails → Linux installer can crash/segfault if CRC checking fails
*** Bug 123474 has been marked as a duplicate of this bug. ***
*** Bug 97249 has been marked as a duplicate of this bug. ***
Todays linux build is crashing every install I attempt. Can someone confirm it's
a dupe of this? Where is the CRC failure? Bad ZIP archives on the server? Can
someone check this in? What's supposed to happen on these way-to-frequent CRC
failures?
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified code fix
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: