Segmentation fault if can't get current directory

VERIFIED WONTFIX

Status

MozillaClassic
P3
minor
VERIFIED WONTFIX
20 years ago
19 years ago

People

(Reporter: Michael Gordon, Assigned: Chris McAfee)

Tracking

1998-04-29

Details

(Reporter)

Description

20 years ago
Created by Michael Gordon (mfg@ee.ed.ac.uk) on Wednesday, May 13, 1998 6:15:17 AM PDT
Additional Details :
There's a segmentation fault in strlen() at line 4915
of cmd/xfe/mozilla.c if the previous getcwd() fails.
Is setting 'string' to '.' if getcwd() fails acceptable?
(Assignee)

Updated

20 years ago
Status: NEW → ASSIGNED
Component: Platform: Rhapsody → XFE
(Assignee)

Comment 1

20 years ago
I put an assert in here for now, yeah there's a segfault possibility.
Do you have a case where this happens so I can test this?
Sorry it took so long for me to get to this bug.
(Assignee)

Comment 2

20 years ago
[from mfg]
Just do

  mkdir /tmp/foo
  mkdir /tmp/foo/foo2
  chmod 111 /tmp/foo
  cd /tmp/foo/foo2
  moz-export

I discovered this when other people tried to run the mozilla binary I'd
compiled under my home directory, which is mode 711.  I don't know how
likely it is that this bug would be triggered in normal use.
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → WONTFIX
(Assignee)

Comment 3

19 years ago
xfe is gone in the new world.

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 4

19 years ago
Marking Verified/Won't Fix
You need to log in before you can comment on or make changes to this bug.