Bug 411107 - kdeconnectd crashes when a file with a size > INT_MAX is shared
Summary: kdeconnectd crashes when a file with a size > INT_MAX is shared
Status: RESOLVED WORKSFORME
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 1.3.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Erik Duisters
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-20 16:20 UTC by Erik Duisters
Modified: 2024-03-08 03:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Duisters 2019-08-20 16:20:54 UTC
SUMMARY

kdeconnectd crashes when a file with a size > INT_MAX is shared

STEPS TO REPRODUCE
1. Share a file with kdeconnect-kde with a filesize > 2147483647

OBSERVED RESULT

kdeconnect crashes with the following backtrace:

#9  0x00007ffff636ded1 in qt_assert(char const*, char const*, int) () from /lib64/libQt5Core.so.5
#10 0x00007ffff7f420af in NetworkPacket::setPayload (this=0x7fffffffbc70, device=..., payloadSize=-289417216) at /home/erik/src/kde-gitlab/kdeconnect-kde/core/networkpacket.h:72
#11 0x00007ffff7f41868 in LanDeviceLink::dataReceived (this=0x6eda40) at /home/erik/src/kde-gitlab/kdeconnect-kde/core/backends/lan/landevicelink.cpp:146
#12 0x00007ffff7f433ce in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (LanDeviceLink::*)()>::call(void (LanDeviceLink::*)(), LanDeviceLink*, void**) (f=(void (LanDeviceLink::*)(LanDeviceLink * const)) 0x7ffff7f414c2 <LanDeviceLink::dataReceived()>, o=0x6eda40, arg=0x7fffffffbf50) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152
EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Comment 1 TraceyC 2024-02-07 01:29:06 UTC
I was not able to reproduce this bug. I tested by sharing a 2.3G .iso file from Plasma to my Android phone with kdeconnect. The transfer was successful. 

Erik, can you please confirm that you can still reproduce this bug on a system that is up to date? If you can, can you please provide a few extra details:
1. The operating System that kdeconnect is installed on
2. Current version of KDE software (you can just copy from About This System using the button)
3. Current version of kdeconnect
4. The file size you attempted to transfer (I assume 2147483647 from your original report was in bytes)

Thanks for your input into this bug.

## System details

kdeconnect 23.08.4

Operating System: Solus 4.5
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.6.15-272.current (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: XPS 17 9710
Comment 2 Bug Janitor Service 2024-02-22 03:46:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-03-08 03:47:02 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!