Menu

#42 OpenSSL does not work with range checking

Release_37
open
nobody
None
5
2018-02-15
2018-02-15
No

I just received a bug report for Android:
$ xidel
An unhandled exception occurred at $0F1DC7EC:
ERangeError: Range check error
$0F1DC7EC LOADLIB, line 1848 of /home/theo/hg/components/pascal/import/synapse/ssl_openssl_lib.pas

The issue is easy to spot:
Synapse's LoadLib returns HModule = System.HModule = PtrUint, however fpc's LoadLibrary returns TLibHandle = PtrInt

Unsigned and signed types should not be mixed.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB