mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 19:28:13 +02:00
read_record_fields: fix overflows of variant record size variables
Could happen in case of > 32 bit variant parts, or variant parts at offsets > 32 bit offsets. Fixes webtbs/tw9039c with a compiler compiled with -Cr
This commit is contained in:
parent
a19deace45
commit
60b0bc5535
@ -1679,7 +1679,7 @@ implementation
|
||||
hdef,casetype : tdef;
|
||||
{ maxsize contains the max. size of a variant }
|
||||
{ startvarrec contains the start of the variant part of a record }
|
||||
maxsize, startvarrecsize : longint;
|
||||
maxsize, startvarrecsize : asizeint;
|
||||
usedalign,
|
||||
maxalignment,startvarrecalign,
|
||||
maxpadalign, startpadalign: shortint;
|
||||
|
Loading…
Reference in New Issue
Block a user