Unable to retrieve data from SQLite3 databases
Original Reporter info from Mantis: jrcar
-
Reporter name: James Carthew
Original Reporter info from Mantis: jrcar
- Reporter name: James Carthew
Description:
Retrieving data from SQLite3 databases results in an attempt to read a null pointer.
Steps to reproduce:
Modify packages/sqlite/tests/test.pas to use the SQLite3 and SQLite3db units.
Compile with the 2.6.4 compiler and run the executable.
This will fail with an attempt to read memory address 0.
This also fails on Windows.
If the same thing is done with version 2.6.2 the test program succeeds.
Additional information:
The problem appears to be in packages/sqlite/src/sqlite3db.pas, line 317.
Which is "Field.free".
I believe this not only frees the TStringList inside the procedure TSQLite.SQLOnData it also frees the TStringList that has just been added to List_Field.
Mantis conversion info:
- Mantis ID: 27260
- OS: Linux Mint
- OS Build: 16
- Platform: Linux
- Version: 2.6.4
- Fixed in version: 3.0.0
- Fixed in revision: 30138 (#2c878e76)
- Monitored by: » jrcar (James Carthew)
- Target version: 3.0.0