[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kdeconnect] [Bug 340787] New: kdeconnectd crashes when attempting upload of file larger than 2GB
From:       Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date:       2014-11-09 12:26:21
Message-ID: bug-340787-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic