Skip to content

Make use of security enhanced C functions #4744

@GarronFish

Description

@GarronFish

Make use of the Windows security enhanced funcitons such as _wfopen_s instead of _wfopen for Windows. This request has occurred because a client was finding that Windows defender was blocking the use of readRealMatrix in MSL 4.1 (i,e, scalar(Modelica.Utilities.Streams.readRealMatrix("inputs.mat", "h_gas_to_carcass", 1, 1)))

The new behaviour by Windows Defender is likely due to fopen changing to _wfopen (Found by Ulf at DS). I don't see why this is a thing and seems like inconsistent behaviour in Windows Defender, however the security enhanced functions functions should be used.

Metadata

Metadata

Assignees

Labels

L: C-SourcesIssue addresses Modelica/Resources/C-Sources

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions