TRegistry.readFloat causes stack corruption on MacOS
Original Reporter info from Mantis: scribly
-
Reporter name: Eric Heijnen
Original Reporter info from Mantis: scribly
- Reporter name: Eric Heijnen
Description:
I'm porting an windows app over to Mac and use the registry class to save/load userdefined variables.
A few of them(2) are floating point values, and I use TRegistry.readFloat to read it out, but when doing so the stack gets corrupted
Steps to reproduce:
uses registry;
...
var
r: Tregistry;
v: double;
begin
r:=TRegistry.Create;
r.RootKey := HKEY_CURRENT_USER;
if r.OpenKey('\Software\Float Tester',true) then
r.WriteFloat('FloatTest',100.5);
v:=r.ReadFloat('FloatTest');
r.free;
end
Mantis conversion info:
- Mantis ID: 36458
- OS: MacOS Catalina
- OS Build: 10.15.1
- Build: 2019/11/01
- Platform: x86_64
- Version: 3.0.4
- Fixed in version: 3.3.1
- Target version: 3.2.0