This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gokdrive. commit 71604606657a85ed16b9fcfb53f014f77d5bcdc9 Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> Date: Tue Sep 20 11:06:42 2022 +0200 change from alder32 to crc32 to avoid collisions on small frames. --- debian/changelog | 1 + x2gokdriveremote.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7d5feb2..eeabf70 100644 --- a/debian/changelog +++ b/debian/changelog @@ -33,6 +33,7 @@ x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium - don't show invisible windows. - sending KEYRELEASE immediately after KEYPRESS to avoid the "key sticking". - set initial geometry form the -geometry command line option. + - change from alder32 to crc32 to avoid collisions on small frames. [ Mihai Moldovan ] * Initial release: diff --git a/x2gokdriveremote.c b/x2gokdriveremote.c index 7726648..04c47ca 100644 --- a/x2gokdriveremote.c +++ b/x2gokdriveremote.c @@ -4518,13 +4518,13 @@ remote_paint_rect(KdScreenInfo *screen, uint32_t calculate_crc(uint32_t width, uint32_t height, int32_t dx, int32_t dy) { - uint32_t crc=adler32(0L, Z_NULL, 0); + uint32_t crc=crc32(0L, Z_NULL, 0); pthread_mutex_lock(&remoteVars.mainimg_mutex); for(uint32_t y=0; y< height;++y) { - crc=adler32(crc,remoteVars.main_img+ ((y+dy)*remoteVars.main_img_width + dx)*XSERVERBPP, width*XSERVERBPP); + crc=crc32(crc,remoteVars.main_img+ ((y+dy)*remoteVars.main_img_width + dx)*XSERVERBPP, width*XSERVERBPP); } pthread_mutex_unlock(&remoteVars.mainimg_mutex); -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git