Opened 17 years ago
Closed 17 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 by , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
Milestone: | → Release_3.10 |
---|
comment:3 by , 17 years ago
Summary: | Restting INI file attributes causes trap → Resetting INI file attributes causes trap |
---|
comment:4 by , 17 years ago
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 by , 17 years ago
Changes have been committed which fix the immediate problem. This ticket will be closed soon unless bugs are found.
comment:6 by , 17 years ago
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.