1
0
This repository has been archived on 2025-06-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openwrt_archive/net/chillispot/patches/120-fix_bufferoverflow.patch
2009-01-31 03:23:21 +00:00

12 lines
266 B
Diff

--- 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);