Erratic behavior of "FindFirst" under Win32
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
In the Win32 version, I sometimes get peculiar results from the "FindFirst" procedure in the Dos unit. Most of the time, it does work correctly, but certain patterns come up empty when they shouldn't, and others -- in particular, '.' -- seem to cause a segfault in a system DLL! (Afterwards, the procedure can't be used at all until I reboot.) This is under Win 95.
I'm sorry I can't give a more clearly reproducible report, but where I first noticed this was in trying to match a file with a numeric extension, using '.*' for the extension.
The program below is a general exercise of FindFirst. Try it with various patterns until you get a crash. :-) The problem does not appear with the GO32V2, Linux, or OS/2 ports.
Additional information:
Reporter: William McBrine
EMail: wmcbrine at clark dot net
Mantis conversion info:
- Mantis ID: 2579
- OS: Linux
- Version: ?
- Fixed in version: 0.99.13