Opened 16 years ago

Closed 16 years ago

#228 closed defect (fixed)

Resetting INI file attributes causes trap

Reported by: John Small Owned by: John Small
Priority: minor Milestone: Release_3.10
Component: fm/2 base Version:
Keywords: Cc:

Description

FM/2 traps when it tries to reset attributes of the FM3.INI file.

Change History (6)

comment:1 Changed 16 years ago by John Small

Status: newassigned

comment:2 Changed 16 years ago by John Small

Milestone: Release_3.10

Running the debugger I found that the buffer being passed to xDosSetPathInfo crossed a 64K boundary (0x000bfff4).

After reading the comments preceding the function, figured that the traps were due to this fact. Changing the code to ALWAYS copy the buffer to a local (stack) buffer stopped the traps.

comment:3 Changed 16 years ago by John Small

Summary: Restting INI file attributes causes trapResetting INI file attributes causes trap

comment:4 Changed 16 years ago by John Small

A change has been committed which seems to fix this.

The fix depends on the fact that the buffer passed to xDosSetPathInfo has been allocated on the stack and that the stack has not grown by nearly 64K since then.

comment:5 Changed 16 years ago by John Small

Changes have been committed which fix the immediate problem. This ticket will be closed soon unless bugs are found.

comment:6 Changed 16 years ago by John Small

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.