+
Skip to content

Delphi 12 + Linux #30

@kabiri

Description

@kabiri

In Delphi 12 on the Linux platform, line (4832) Map := Mmap(nil, DumpSize, PROT_READ, MAP_SHARED, Mem, $000C0000); raises the error: Project [vdso] raised exception class ERangeError with message 'Range check error'.

edit :
I changed the function declaration from:

function mmap(Addr: Pointer; Len: NativeUInt; Prot: Integer; Flags: Integer; FileDes: Integer; Off: LongInt): Pointer; cdecl; external libc name _PU + 'mmap';
to:

function mmap(Addr: Pointer; Len: NativeUInt; Prot: Integer; Flags: Integer; FileDes: NativeUInt; Off: LongInt): Pointer; cdecl; external libc name _PU + 'mmap';

The code on line 4881 was changed from:

CheckSum: Byte; to:
CheckSum: Integer;

And the code on line 4900 was changed from:

if CheckSum <> 0 then
to:
if (CheckSum mod 256) <> 0 then

-----------SOLVED

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载