diff options
author | John Crispin <john@openwrt.org> | 2014-07-29 12:18:52 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-07-29 12:18:52 +0000 |
commit | 8d3f839da7387bcd14f809e80f7da20d0a5e6d29 (patch) | |
tree | e378701bf8cf30efa0bd711de0ca08141ed6ee27 /package/network | |
parent | 5fa9048011c5b091b010c180248d82455835a968 (diff) | |
download | mtk-20170518-8d3f839da7387bcd14f809e80f7da20d0a5e6d29.zip mtk-20170518-8d3f839da7387bcd14f809e80f7da20d0a5e6d29.tar.gz mtk-20170518-8d3f839da7387bcd14f809e80f7da20d0a5e6d29.tar.bz2 |
ppp: fix a buffer overrun in the ms chap code
https://dev.openwrt.org/ticket/17296
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41882
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch b/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch new file mode 100644 index 0000000..acbf33b --- /dev/null +++ b/package/network/services/ppp/patches/520-ms_chap_buffer_overrun.patch @@ -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; |