Closed Bug 476608 Opened 15 years ago Closed 15 years ago

fix bad use of readlink in commented-out code

Categories

(Toolkit Graveyard :: XULRunner, defect, P4)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
While I was debugging why my 1.9.0.x build wouldn't start (it turned out to be because I needed http://hg.mozilla.org/mozilla-central/rev/adf33dbb59d0 for it to start on 64-bit Linux), I found a bug in some commented out code that I was trying as a workaround.

The code called readlink and used its result, but |man 2 readlink| will tell you that readlink does not null-terminate the buffer.

This fixes the code, which might make it usable (see the changes to comments).  Not sure if you'd want to use it.
Attachment #360257 - Flags: review?(benjamin)
Attachment #360257 - Flags: review?(benjamin) → review+
http://hg.mozilla.org/mozilla-central/rev/9c12373aed0a
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Priority: -- → P4
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: