Commit Graph

11 Commits (57df06d70ad4631131401132e94b3699babd895c)

Author SHA1 Message Date
Petr Písař 20e7000d0c
Limit client cut text length to 1 MB
This patch constrains a client cut text length to 1 MB. Otherwise
a client could make server allocate 2 GB of memory and that seems to
be to much to classify it as a denial of service.

The limit also prevents from an integer overflow followed by copying
an uninitilized memory when processing msg.cct.length value larger
than SIZE_MAX or INT_MAX - sz_rfbClientCutTextMsg.

This patch also corrects accepting length value of zero (malloc(0) is
interpreted on differnet systems differently).

CVE-2018-7225
<https://github.com/LibVNC/libvncserver/issues/218>
(cherry picked from commit 28afb6c537dc82ba04d5f245b15ca7205c6dbb9c)
6 years ago
Timothy Pearson 1de96857f5 Remove additional unneeded tq method conversions 13 years ago
Timothy Pearson 089118c185 Rename old tq methods that no longer need a unique name 13 years ago
Timothy Pearson 83677e3550 Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 808e453c56.
13 years ago
Timothy Pearson 808e453c56 Rename a number of old tq methods that are no longer tq specific 13 years ago
tpearson 69cac65817 TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
14 years ago
tpearson 675e9f7c0f Backed out accidental conversion of TSIGNAL to TQT_SIGNAL in automated TQT conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1162927 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
15 years ago
tpearson 47c8a359c5 Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
15 years ago
tpearson 654fcc369e Fixed remaining GPL address zip codes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1070598 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
15 years ago
tpearson 1654c5f87b Updated obsolete GPL license addresses to current GPL address
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1070573 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
15 years ago
toma bcb704366c Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
15 years ago