Security Audit 5.13: Ensure that string lengths are within limits
and null terminated before copying them to buffers.
This commit is contained in:
@@ -50,8 +50,9 @@ namespace Novell.CASA.DataEngines.GK
|
||||
public int cTime;
|
||||
public NativeItemInfo()
|
||||
{
|
||||
displayName = Marshal.AllocHGlobal(128);
|
||||
secret = Marshal.AllocHGlobal(128);
|
||||
/* The GUI allows 256 as the max number of chars for these items */
|
||||
displayName = Marshal.AllocHGlobal(256);
|
||||
secret = Marshal.AllocHGlobal(256);
|
||||
}
|
||||
~NativeItemInfo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user