I found a bug in the RTTI under powerpc.
Boolean properties stored in fields
(e.g. properrty MyBoolean: boolean read FMyBoolean)
always returns false.
The GetOrdProp is used to read boolean values. It reads a longint and
applies "and $ff" to get only the lowest byte. Under PowerPC the boolean
On Sat, 14 Aug 2004 20:46:30 +0200 Mattias Gaertner
<[EMAIL PROTECTED]> wrote:
>
> I found a bug in the RTTI under powerpc.
>
> Boolean properties stored in fields
> (e.g. properrty MyBoolean: boolean read FMyBoolean)
> always returns false.
>
> The GetOrdProp is used to read boolean values.
On 14 aug 2004, at 21:07, Mattias Gaertner wrote:
The GetOrdProp is used to read boolean values. It reads a longint and
applies "and $ff" to get only the lowest byte. Under PowerPC the
boolean
value is stored just like under i386 in the first byte. Reading the
longint under i386 works, but of cour
On Sat, 14 Aug 2004 23:59:55 +0200 Jonas Maebe <[EMAIL PROTECTED]> wrote:
>
> On 14 aug 2004, at 21:07, Mattias Gaertner wrote:
>
> >> The GetOrdProp is used to read boolean values. It reads a longint and
> >> applies "and $ff" to get only the lowest byte. Under PowerPC the
> >> boolean
> >> v
Jonas Maebe wrote:
On 14 aug 2004, at 21:07, Mattias Gaertner wrote:
The GetOrdProp is used to read boolean values. It reads a longint and
applies "and $ff" to get only the lowest byte. Under PowerPC the boolean
value is stored just like under i386 in the first byte. Reading the
longint under i386
On 15 aug 2004, at 00:20, Florian Klaempfl wrote:
To me, the fact that it always reads a longint regardless of the size
of the property seems to be inherently wrong. What if the last field
of a class is a byte? Then you can read past the end of the class,
possibly into unallocated memory causing
On Sun, 15 Aug 2004 00:20:47 +0200 Florian Klaempfl <[EMAIL PROTECTED]>
wrote:
> Jonas Maebe wrote:
>
> >
> > On 14 aug 2004, at 21:07, Mattias Gaertner wrote:
> >
> >>> The GetOrdProp is used to read boolean values. It reads a longint and
> >>> applies "and $ff" to get only the lowest byte. U
Jonas Maebe wrote:
On 15 aug 2004, at 00:20, Florian Klaempfl wrote:
To me, the fact that it always reads a longint regardless of the size
of the property seems to be inherently wrong. What if the last field
of a class is a byte? Then you can read past the end of the class,
possibly into unalloc
On Sun, 15 Aug 2004 03:18:59 +0200 Mattias Gaertner
<[EMAIL PROTECTED]> wrote:
> On Sat, 14 Aug 2004 23:59:55 +0200 Jonas Maebe <[EMAIL PROTECTED]>
> wrote:
>
> >
> > On 14 aug 2004, at 21:07, Mattias Gaertner wrote:
> >
> > >> The GetOrdProp is used to read boolean values. It reads a longint