From kde-bugs-dist Sun Nov 09 12:26:21 2014 From: Jens Dagerbo Date: Sun, 09 Nov 2014 12:26:21 +0000 To: kde-bugs-dist Subject: [kdeconnect] [Bug 340787] New: kdeconnectd crashes when attempting upload of file larger than 2GB Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=141553598924305 https://bugs.kde.org/show_bug.cgi?id=340787 Bug ID: 340787 Summary: kdeconnectd crashes when attempting upload of file larger than 2GB Product: kdeconnect Version: unspecified Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: crash Priority: NOR Component: common Assignee: albertvaka@gmail.com Reporter: jens.dagerbo@swipnet.se kdeconnectd uses 'int' to keep track of the payload size. Obviously, this isn't sufficient when sizes go >2GB. Fixing that we run into the fact that kdeconnectd reads the entire file into memory before sending it, and QByteArray has an internal limitation of 2GB. I made a patch to fix this and have successfully uploaded 2+GB files with it. Reproducible: Always Steps to Reproduce: 1. Find a file larger than 2GB 2. Attempt to upload it to the android unit Actual Results: kdeconnectd crashes. Expected Results: The file should be uploaded correctly. Patch will follow. -- You are receiving this mail because: You are watching all bug changes.