sonar-openedge
sonar-openedge copied to clipboard
Conversion from LONGCHAR to CHARACTER can overflow if source expression is larger than 32kb
Could this be handled automatically?
DEFINE VARIABLE cresponse AS CHARACTER NO-UNDO.
DEFINE VARIABLE oMemptr AS OpenEdge.Core.Memptr NO-UNDO.
oMemptr = New OpenEdge.Core.Memptr().
cresponse = oMemptr:GetString( 1, 30000 ).
The second parameter op the GetString method ensures that the result is < 32000.