From: leslie Date: Fri, 26 Sep 2008 00:11:29 +0000 (+0800) Subject: irdeto1: fix buffer overflow in KID save X-Git-Tag: 0.9.1~21 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=08e4c4e315cd1fb050a57dcbef01e4215f69f082;p=sasc-ng.git irdeto1: fix buffer overflow in KID save --- diff --git a/systems/irdeto/irdeto1.c b/systems/irdeto/irdeto1.c index a54b17c..ceaf718 100644 --- a/systems/irdeto/irdeto1.c +++ b/systems/irdeto/irdeto1.c @@ -50,7 +50,7 @@ bool cIrdCardInfo::Parse(const char *line) cString cIrdCardInfo::ToString(bool hide) { - char s1[20], s2[20], s3[20], s4[20]; + char s1[20], s2[24], s3[20], s4[20]; return cString::sprintf("%s %s %02x %s %s", HexStr(s1,hexSer,sizeof(hexSer)),HexStr(s2,HMK,sizeof(HMK)),provBase, HexStr(s3,provId,sizeof(provId)),HexStr(s4,PMK,sizeof(PMK)));