Closed Bug 15740 Opened 25 years ago Closed 25 years ago

ReadWriteProc needs to check return value from PB[Read|Write]Async

Categories

(NSPR :: NSPR, defect, P3)

PowerPC
Mac System 8.5
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfraser_bugs, Assigned: sdagley)

References

Details

ReadWriteProc makes calls to PBReadAsync and PBWriteAsync, but throws away the return values: (void) PBReadAsync(&pbAsync.pb); and (void) PBWriteAsync(&pbAsync.pb); This is bad, because if these routines fail right away (e.g. attempt to write to locked file), then we'll go off into threading land and never return. We have to check those return values.
Status: NEW → ASSIGNED
Target Milestone: M11
Will fix this one once the 3.5 branch lands (expected in the next week or so)
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fix checked in. Since this is a case of fixing a potential problem without an example of the potential problem biting us yet I don't know of a way for QA to verify this. "Trust me" said the man with the glowing eyes.
Blocks: 16654
Target Milestone: M11 → ---
You need to log in before you can comment on or make changes to this bug.