The sources of the Free Pascal compiler, RTL, packages and utilities. See https://www.freepascal.org/ for more info.
Go to file
lacak 42d11a1274 fcl-db: base: mark ABookmark parameter of TDataset.GotoBookmark method as const.
In trunk TBookmark is of type array of bytes (TBytes), prior this it was Pointer (to memory block of BookmarkSize where is stored "bookmark data").
BufDatset uses GotoBookmark and passes address of bookmark, which is okay when TBookmark was pointer, but when it is dynamic array then on entry into method FPC_DYNARRAY_INCR_REF is called, where is accessed "array header" in unallocated memory, which leads to invalid pointer operation.
Making parameter as const will avoid invoking reference counting mechanism. Bug #23381. Discussed also in DB-Core ML.

git-svn-id: trunk@23665 -
2013-02-28 09:26:25 +00:00
compiler * MIPS: allocate 16-byte outgoing parameter area also for procedures declared as 'assembler' without 'nostackframe'. This is a half-measure because there is no way to determine correct size to allocate for such procedures (probably we must add some directive to specify it). The same generally applies to all targets with fixed stack, not just MIPS. 2013-02-25 22:47:09 +00:00
ide * Regenerated all makefiles. 2013-01-17 11:36:12 +00:00
installer * Regenerated makefiles. 2013-01-16 14:52:36 +00:00
packages fcl-db: base: mark ABookmark parameter of TDataset.GotoBookmark method as const. 2013-02-28 09:26:25 +00:00
rtl rtl: apply piece of changes to charset.pp from Inoussa (part of mantis #0022909) 2013-02-25 02:22:14 +00:00
tests * MIPS: fixed parameter handling for big-endian targets, and removed a lot of garbage. 2013-02-18 04:20:10 +00:00
utils * Top level makefile: Fixed and simplified cross-building. It is now possible to perform cross builds when having only bootstrap compiler executable. 2013-02-21 14:54:57 +00:00
.gitattributes rtl: 2013-02-25 01:46:33 +00:00
.gitignore * more finegrained parallelism support for testsuite runs: the tests are no 2012-06-03 17:56:28 +00:00
Makefile * add 2.6.2 to allowed computers. Allow 2.6.0 too for a while. 2013-02-24 19:46:26 +00:00
Makefile.fpc * add 2.6.2 to allowed computers. Allow 2.6.0 too for a while. 2013-02-24 19:46:26 +00:00