IOChunkedTransfer: Check that `sink` and `source` are not null before using them
Those QPointers are pointing to devices that can be destroyed early,
for example if a connection was closed before the transfer has completed.
This fixes a potential crash.
Fixes: QTBUG-121219
Pick-to: 6.7 6.6 6.5
Change-Id: I255176d1779dd49cb0447ee72d78a3f6e25d5ccd
Reviewed-by: Andre Vehreschild <vehre@badgersystems.de>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
| commit | 91bfef367a2e5bdafca072ae8bf0f0824a50a194 |
| parent | 206878ea7012279708887f22a8459e9c7d01c5e7 |
| author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> |
| committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> |
| commit time | Fri, 19 Jan 2024 11:26:48 +0000 |