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
Status: | new → assigned |
---|
comment:2 Changed 16 years ago by
Milestone: | → Release_3.10 |
---|
comment:3 Changed 16 years ago by
Summary: | Restting INI file attributes causes trap → Resetting INI file attributes causes trap |
---|
comment:4 Changed 16 years ago by
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
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
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
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.