| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
for integration with TQt event loop.
Use tq... includes instead of ntq....
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
|
|
|
|
| |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ammends 15bb719c03cc70f14c36a843dcb16ed69b405707 fix for a heap
out-of-bound write access in rfbProcessFileTransferReadBuffer() when
reading a transfered file content in a server. The former fix did not
work on platforms with a 32-bit int type (expected by rfbReadExact()).
CVE-2018-15127
<https://github.com/LibVNC/libvncserver/issues/243>
<https://github.com/LibVNC/libvncserver/issues/273>
(cherry picked from commit 09e8fc02f59f16e2583b34fe1a270c238bd9ffec)
|
|\
| |
| |
| | |
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
|
| |
| |
| |
| | |
... explaining cedae6e6f97b14f5df3ea7c5f7efd59f2bc9ad82.
|
| |\
| | |
| | | |
Fix use-after-free and concurrent access segmentation fault
|
| | | |
|
| | |
| | |
| | |
| | | |
clientOutput thread
|
| | | |
|
| | |
| | |
| | |
| | | |
re #273
|
| |\ \
| | | |
| | | | |
Allow to use global LZO library instead of miniLZO
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The complete LZO library nowadays is installed on many systems so we can
optionally make use of it and omit internal miniLZO implementation.
|
| |/ / |
|
| |\ \
| | | |
| | | | |
LibVNCClient: fix integer shifts for cursor colors
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Shifting values > 32768 by 16 places can cause undefined results for
signed integers. Therefore cast color components to unsigned integer
before shifting.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The TLS macro never has been defined due to the missing
LIBVNCSERVER_HAVE_TLS macro. This revises the macro logic to also cover
Win32 builds with MSVC.
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
... as this crashes badly and the client is closed by the main thread machinery afterwards.
re #242
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
previous one ends
re #242
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
...and use it when deregistering the file transfer extension.
Closes #242
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
...for closing upload and download separately.
re #242
|
| | |/ /
| | | |
| | | |
| | | | |
re #242
|
| |/ /
| | |
| | |
| | | |
Fixes compiler warnings about redefined macros from errno.h.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
One can only guess what the intended semantics were here, but as every
other rfbCloseClient() call in this file is followed by an immediate
return, let's assume this was forgotton in this case.
Anyway, don't forget to clean up to not leak memory.
Closes #241
|
| | |
| | |
| | |
| | | |
Closes #243
|
| | |
| | |
| | |
| | | |
Closes #162
|
| | |
| | |
| | |
| | | |
re #148
|
| |/
| |
| |
| |
| |
| | |
Closes #204
Signed-off-by: Christian Beier <dontmind@freeshell.org>
|
| |
| |
| |
| |
| |
| | |
As of now, only LibVNCServer makes uses of these digest functions _and_
they depend on sys/uio.h, but in the future LibVNCClient will need those
as well.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These functions can be used to send already compressed jpegs to a
client, circumventing the usual rect/region update methods which
operate on a raw rgb framebuffer. Rename the functions with the usual
rfb prefix and add the prototypes in rfb.h.
Signed-off-by: Eddie James <eajames@us.ibm.com>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
|
| |
| |
| |
| | |
of base64 functions.
|
| |\
| | |
| | | |
websockets: Ensure compatibility with gtk-vnc 0.7.0+
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
use FIN bit and implement opcode 0x00
make consistent use of uint64_t for big frame sizes
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
add wstestdata.c, because the python data generation script has too many
dependencies
remove some redundance from jpeg test creation
add support for decoding close messages
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
modify automake to include ws_decode test
add python frame generator for decode tests
modify configure to only include ws_decode test if preconditions are
fulfilled
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
remove direct dependency on rfbClientPtr structure in hybi decode
function(s)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
fix critical heap-based buffer overflow which allowed easy modification
of a return address via an overwritten function pointer
fix bug causing connections to fail due a "one websocket frame = one
ws_read" assumption, which failed with LibVNCServer-0.9.11
refactor websocket Hybi decode to use a simple state machine for
decoding of websocket frames
|
| | |
| | |
| | |
| | | |
The file handle wouldn't be closed in this instance.
|
| | | |
|