Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordnobori <da.git@softether.co.jp>2018-01-15 05:38:44 +0300
committerdnobori <da.git@softether.co.jp>2018-01-15 05:38:44 +0300
commitc23142a8ffc35088047060989fc3d76c5b4e00af (patch)
treec6c9b8dbe7824c82e1121ffe38889214ad81049e /src/Cedar/IPsec_L2TP.c
parentaf7b4d4afba44fc04c808a95ad5f49f5682e796d (diff)
v4.25-9656-rtmv4.25-9656-rtm
Diffstat (limited to 'src/Cedar/IPsec_L2TP.c')
-rw-r--r--src/Cedar/IPsec_L2TP.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Cedar/IPsec_L2TP.c b/src/Cedar/IPsec_L2TP.c
index 79860153..e036e1a5 100644
--- a/src/Cedar/IPsec_L2TP.c
+++ b/src/Cedar/IPsec_L2TP.c
@@ -792,6 +792,12 @@ L2TP_PACKET *ParseL2TPPacket(UDPPACKET *p)
size -= 2;
a.DataSize = a.Length - 6;
+
+ if (a.DataSize > size)
+ {
+ goto LABEL_ERROR;
+ }
+
a.Data = Clone(buf, a.DataSize);
buf += a.DataSize;