Opened 12 years ago

Closed 12 years ago

#228 closed defect (fixed)

Resetting INI file attributes causes trap

Reported by: jbs Owned by: jbs
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 12 years ago by jbs

  • Status changed from new to assigned

comment:2 Changed 12 years ago by jbs

  • Milestone set to 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 12 years ago by jbs

  • Summary changed from Restting INI file attributes causes trap to Resetting INI file attributes causes trap

comment:4 Changed 12 years ago by jbs

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 12 years ago by jbs

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

comment:6 Changed 12 years ago by jbs

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.