From 8f7853d38bd337a6e8c3e53f23bedfd022ec0cc5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 31 Jan 2009 03:23:21 +0000 Subject: [PATCH] chillispot: fix buffer overflow (thx to Sebastian Gottschall) SVN-Revision: 14295 --- net/chillispot/patches/120-fix_bufferoverflow.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/chillispot/patches/120-fix_bufferoverflow.patch diff --git a/net/chillispot/patches/120-fix_bufferoverflow.patch b/net/chillispot/patches/120-fix_bufferoverflow.patch new file mode 100644 index 0000000000..abc293b2bb --- /dev/null +++ b/net/chillispot/patches/120-fix_bufferoverflow.patch @@ -0,0 +1,11 @@ +--- a/src/radius.c ++++ b/src/radius.c +@@ -1002,7 +1002,7 @@ int radius_pwencode(struct radius_t *thi + } + + /* Copy first 128 octets of src into dst */ +- if (srclen <= 128) ++ if (srclen > 128) + memcpy(dst, src, 128); + else + memcpy(dst, src, srclen); -- 2.30.2