Author: blogic Date: 2014-07-29 14:18:52 +0200 (Tue, 29 Jul 2014) New Revision: 41882
Added: trunk/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch Log: ppp: fix a buffer overrun in the ms chap code https://dev.openwrt.org/ticket/17296 Signed-off-by: John Crispin <[email protected]> Added: trunk/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch =================================================================== --- trunk/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch (rev 0) +++ trunk/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch 2014-07-29 12:18:52 UTC (rev 41882) @@ -0,0 +1,13 @@ +Index: ppp-2.4.6/pppd/chap_ms.c +=================================================================== +--- ppp-2.4.6.orig/pppd/chap_ms.c 2014-07-29 00:38:03.073968867 +0100 ++++ ppp-2.4.6/pppd/chap_ms.c 2014-07-29 00:41:52.897964689 +0100 +@@ -382,7 +382,7 @@ + unsigned char *private) + { + const struct chapms2_response_cache_entry *cache_entry; +- unsigned char auth_response[MS_AUTH_RESPONSE_LENGTH]; ++ unsigned char auth_response[MS_AUTH_RESPONSE_LENGTH+1]; + + challenge++; /* skip length, should be 16 */ + *response++ = MS_CHAP2_RESPONSE_LEN; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
