From f7eba43cb82f6f5d55623f411c7645b4214ebd88 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Feb 2020 12:32:57 +1100 Subject: [PATCH] GCS_MAVLink: raise ftp stack size to 3072 from 1024 this prevents memory corruption on directory listing --- libraries/GCS_MAVLink/GCS_FTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_FTP.cpp b/libraries/GCS_MAVLink/GCS_FTP.cpp index 6f1aae2a4a..2e2f44aa27 100644 --- a/libraries/GCS_MAVLink/GCS_FTP.cpp +++ b/libraries/GCS_MAVLink/GCS_FTP.cpp @@ -42,7 +42,7 @@ bool GCS_MAVLINK::ftp_init(void) { } if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&GCS_MAVLINK::ftp_worker, void), - "FTP", 1024, AP_HAL::Scheduler::PRIORITY_IO, 0)) { + "FTP", 3072, AP_HAL::Scheduler::PRIORITY_IO, 0)) { goto failed; }