fcl-passrc segfaults on "array [0..7] of 0..1" const
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
The definition of C0 in attached file causes access violation inside fcl-passrc parser.
This is valid code, FPC compiles it (in any case, fcl-passrc should not segfault even on invalid code).
$ fpc range_type_access_violation.lpr
$ fpc test_passrc.lpr
$ ./test_passrc range_type_access_violation.lpr
An unhandled exception occurred at $0000000000486CA4:
EAccessViolation: Access violation
It seems that the using type like "0..1" is problematic in any case. Commenting out the C0 definition:
$ fpc test_passrc.lpr
$ ./test_passrc range_type_access_violation.lpr
An unhandled exception occurred at $0000000000477825:
EParserError: Expected "=" at token ";" in file range_type_access_violation.lpr at line 3 column 15
Mantis conversion info:
- Mantis ID: 30722
- OS: Debian GNU/Linux
- OS Build: (testing)
- Build: 34702
- Platform: x86-64
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 35353 (#27b51188)
- Target version: 3.2.0