From c49f28a6959aac09bf8ba189ba04611c66d82cfd Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 27 Feb 2018 20:46:02 -0500 Subject: [PATCH] btscanner: the files --- .../btscanner/files/fix-buffer-overflow.patch | 30 +++++++++++++++++++ .../btscanner/files/fix-typo-config.patch | 13 ++++++++ 2 files changed, 43 insertions(+) create mode 100644 net-wireless/btscanner/files/fix-buffer-overflow.patch create mode 100644 net-wireless/btscanner/files/fix-typo-config.patch diff --git a/net-wireless/btscanner/files/fix-buffer-overflow.patch b/net-wireless/btscanner/files/fix-buffer-overflow.patch new file mode 100644 index 000000000..3b78bdb85 --- /dev/null +++ b/net-wireless/btscanner/files/fix-buffer-overflow.patch @@ -0,0 +1,30 @@ +Description: Fix buffer overflow + btscanner fails with "buffer overflow" error when using option "b". + Use the correct variable format in memset. +Author: Sophie Brun +Bug-Kali: https://bugs.kali.org/view.php?id=4532 +Last-Update: 2018-02-19 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/screen.c ++++ b/screen.c +@@ -986,8 +986,8 @@ int screen_init_bf(void) + + screen_init_bf_retry: + memset(&cb, 0, sizeof(cbuf_t)); +- memset(&start, 0, sizeof(cbuf_t)); +- memset(&end, 0, sizeof(cbuf_t)); ++ memset(&start, 0, sizeof(bdaddr_t)); ++ memset(&end, 0, sizeof(bdaddr_t)); + ret = 0; + for (dl = 1; dl && bts_run; ) { + switch(screen_textbox("Start address", BD_RE, &cb)) { +@@ -1268,7 +1268,7 @@ int screen_run(void) + } + break; + case 'b': +- if(SCAN_NONE == threader_running() && ++ if (SCAN_NONE == threader_running() && + 0 == screen_init_bf()) { + if (0 == threader_start(SCAN_BF)) { + screen_log("error: no threads started, check the log"); diff --git a/net-wireless/btscanner/files/fix-typo-config.patch b/net-wireless/btscanner/files/fix-typo-config.patch new file mode 100644 index 000000000..54f465d3b --- /dev/null +++ b/net-wireless/btscanner/files/fix-typo-config.patch @@ -0,0 +1,13 @@ +Description: Fix typo in config.h +Author: Uwe Hermann +Last-Update: 2018-02-20 + +--- btscanner-2.1.orig/config.h.in ++++ btscanner-2.1/config.h.in +@@ -118,5 +118,5 @@ + /* Define to rpl_malloc if the replacement function should be used. */ + #undef malloc + +-/* Define to `unsigned' if does not define. */ ++/* Define to `unsigned int' if does not define. */ + #undef size_t