diff -Nru libfilezilla-0.46.0/debian/changelog libfilezilla-0.46.0/debian/changelog --- libfilezilla-0.46.0/debian/changelog 2024-03-31 02:55:58.000000000 +0100 +++ libfilezilla-0.46.0/debian/changelog 2024-05-10 15:00:52.000000000 +0100 @@ -1,3 +1,9 @@ +libfilezilla (0.46.0-3.1ubuntu0.1) noble; urgency=medium + + * Add patch: 01_uploading_crash_fix.patch (Closes: #2061954) + + -- Phil Wyett Fri, 10 May 2024 15:00:52 +0100 + libfilezilla (0.46.0-3.1build3) noble; urgency=medium * No-change rebuild for CVE-2024-3094 diff -Nru libfilezilla-0.46.0/debian/patches/01_uploading_crash_fix.patch libfilezilla-0.46.0/debian/patches/01_uploading_crash_fix.patch --- libfilezilla-0.46.0/debian/patches/01_uploading_crash_fix.patch 1970-01-01 01:00:00.000000000 +0100 +++ libfilezilla-0.46.0/debian/patches/01_uploading_crash_fix.patch 2024-05-10 15:00:52.000000000 +0100 @@ -0,0 +1,30 @@ +Description: Fix crash when uploading files using filezilla client + Filezilla client will crash when file uploads are attempted. The application + will hang and then crash (core dump). This makes the filezilla client unusable + in normal operation. This patch corrects the issue and fixes upload operations + and they work/complete as intended. + . + libfilezilla (0.46.0-3.1ubuntu0.1) noble; urgency=medium + . + * Add patch: 01_uploading_crash_fix.patch (Closes: #2061954) +Author: Phil Wyett + . +Origin: upstream, https://svn.filezilla-project.org/filezilla/libfilezilla/trunk/lib/aio/reader.cpp?r1=11064&r2=11095&view=patch +Forwarded: not-needed +Bug: https://trac.filezilla-project.org/ticket/13056 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libfilezilla/+bug/2061954 +Last-Update: 2024-05-10 + +--- + +--- libfilezilla-0.46.0.orig/lib/aio/reader.cpp ++++ libfilezilla-0.46.0/lib/aio/reader.cpp +@@ -319,7 +319,7 @@ void file_reader::entry() + if (remaining_ != nosize && to_read > remaining_) { + to_read = remaining_; + } +- rwresult r = to_read ? file_.read2(b->get(to_read), to_read) : rwresult{rwresult::none, 0}; ++ rwresult r = to_read ? file_.read2(b->get(to_read), to_read) : rwresult{size_t(0)}; + l.lock(); + if (quit_ || error_) { + return; diff -Nru libfilezilla-0.46.0/debian/patches/series libfilezilla-0.46.0/debian/patches/series --- libfilezilla-0.46.0/debian/patches/series 2024-01-19 20:58:08.000000000 +0000 +++ libfilezilla-0.46.0/debian/patches/series 2024-05-10 15:00:52.000000000 +0100 @@ -0,0 +1 @@ +01_uploading_crash_fix.patch