madorin / fibplus

FibPlus Library for Delphi and C++Builder. Data access components for Firebird & Interbase.
168 stars 58 forks source link

Access violation in TFIBCustomDataSet.DataEvent on 64bit application with Delphi 11.1 #60

Open davideangeli opened 2 years ago

davideangeli commented 2 years ago

Hi, I'm compiling Fibplus with new D11.1 Alexandria. An application compiled as win64 raises always an access violation when processing TFIBCustomDataSet.DataEvent. The problem is due to a couple of calls to that method with a brutal cast of the Field variable as longint instead of EventInfo (that is NativeInt).

I correct with the right cast the 2 methods TFIBCustomDataSet.SetFieldData and TFIBDSBlobStream.Destroy and the access violation is gone.

davideangeli commented 2 years ago

Hi, I suppose that the issue appear on D11.1 win64 apps due to this D11.1 changes on linker about ASLR: https://blog.marcocantu.com/blog/rad111_pe_security.html.

madorin commented 11 months ago

@davideangeli , can you submit a MR on this?

davideangeli commented 3 weeks ago

@davideangeli , can you submit a MR on this?

@madorin Sorry for long time replay.. I see that you did the changes in latest version so I think that this issue could be closed and no need for MR.