aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
Commit message (Collapse)AuthorAgeFilesLines
* Client support for cursors with full alphaPierre Ossman2017-02-227-0/+68
|
* Properly handle depth > 24 in ZRLE decoderPierre Ossman2017-02-221-16/+20
|
* Client support for X CursorPierre Ossman2017-02-223-1/+62
|
* Dither cursors when reducing depthPierre Ossman2017-02-221-19/+119
|
* Change cursor API to use RGBA dataPierre Ossman2017-02-2214-315/+190
| | | | | This will allow us to use better formats that preserve the entire alpha channel.
* Fix for exception handling in decoder threadsPierre Ossman2017-02-221-1/+1
|
* spelling fixesklemens2017-01-286-7/+7
|
* Crop cursor before calling maskRect()Pierre Ossman2017-01-201-4/+6
| | | | We can no longer assume maskRect() will tolerate uncropped data.
* Restore cropping API to maskRect()Pierre Ossman2017-01-202-23/+31
| | | | | | We need to restore the previous, more complex API in order to easily handle masks now that we no longer accept out-of-bounds operations.
* Prevent invalid PixelBuffer accessesPierre Ossman2017-01-181-73/+126
| | | | | | There has been multiple attempts at tricking decoders to exceed the boundaries of the active pixel buffer. Add extra checks to prevent such invalid access.
* Check invalid RRE rectsPierre Ossman2017-01-181-0/+5
|
* Fix buffer overflow in ModifiablePixelBuffer::fillRect.Michal Srb2017-01-171-4/+15
| | | | | | It can be triggered by RRE message with subrectangle out of framebuffer boundaries. It may prevent the same kind of issue caused by evil message from another encoding too.
* Merge branch 'master' of https://github.com/atalax/tigervncPierre Ossman2016-11-101-0/+4
|\
| * hextileDecode.h: Fix buffer overflowJosef Gajdusek2016-11-041-0/+4
| | | | | | | | | | The hextileDecodexx functions do not properly check for out-of-bounds writes, which allows a malicious server to overwrite parts of the stack.
* | Log statistics from ComparingUpdateTrackerPierre Ossman2016-11-083-1/+42
|/
* Move getSockets() to SocketServer interfacePierre Ossman2016-10-052-15/+8
| | | | | Any caller using add or remove should also be able to list the sockets.
* Fix temporary decoder buffer sizesPierre Ossman2016-10-053-8/+8
| | | | | Some of these were excessively large because of redundant factors in the size calculation.
* Fix minor typo in framebuffer initializationBrian P. Hinz2016-09-051-1/+1
|
* Proper global init/deinit of GnuTLSPierre Ossman2016-08-234-33/+10
| | | | | | These are reference counted so it is important to retain symmetry between the calls. Failure to do so will result in bad memory access and crashes.
* Fix display/port switch at display 100Pierre Ossman2016-07-111-8/+5
| | | | | 168b92c broke the handling that assumes display 100 and above are actually a port number.
* Replace Windows specific thread handlingPierre Ossman2016-07-078-67/+42
| | | | Use the platform independent primitives instead.
* Clean up getHostAndPort()Pierre Ossman2016-06-281-15/+61
| | | | | It now does more validation, and handles unescaped IPv6 addresses better.
* Split Xregion headers according to upstreamPierre Ossman2016-05-131-2/+6
| | | | | We've stolen the Xregion code from libX11, so let's keep the same header naming so that it is easier to keep things in sync.
* Fix mistake in TightEncoder::setCompressLevel.Michal Srb2016-05-061-1/+1
|
* Flush socket before checking bufferPierre Ossman2016-04-291-0/+1
| | | | | | There might be stuff lingering in the buffer simply because flush() hasn't been called in a while, rather than because the transport is congested.
* Asynchronously retry update on congestionPierre Ossman2016-04-292-12/+7
| | | | | | We now get notifications when the output buffer empties, and we already caught incoming RTT pongs, meaning we can now react at the proper time to retry a congested update rather than use a timer.
* Flush socket after ever rectPierre Ossman2016-04-291-0/+1
| | | | | This makes sure we keep the socket busy even if one rect takes some time to encode.
* Move socket write event handling in to the RFB corePierre Ossman2016-04-296-6/+59
| | | | | | What to do when a socket is writeable should be handled in the RFB core code as there may be other events we want to fire off when this happens.
* Early propagate of access rights to connection.Henrik Andersson2016-01-271-1/+1
|
* Add workaround for Vino's VeNCrypt implementationPierre Ossman2015-12-291-1/+12
|
* Optimised shortcut for decoding on single CPU systemsPierre Ossman2015-11-271-1/+17
|
* Limit the number of decoder threads to 4Pierre Ossman2015-11-271-1/+6
| | | | | They just end up burning CPU fighting each other without much improvement to the decoding time beyond four threads.
* Propagate exceptions from worker threads back to main threadPierre Ossman2015-11-272-3/+44
|
* Create one decode thread for each CPUPierre Ossman2015-11-271-4/+10
| | | | | | We can start creating more decoding threads now that we handle rect ordering properly. No point in creating more threads than there are CPUs though.
* Allow parallel decoding of Tight JPEG rectsPierre Ossman2015-11-272-6/+2
| | | | | | The cost is some more load on malloc(), but it should be small compared to the gains of spreading the CPU heavy JPEG decoding over multiple CPUs.
* Allow conditional dependencies between rects when decodingPierre Ossman2015-11-275-1/+80
| | | | | | Some encodings only cause dependencies between rects some of the time. Make sure we can allow parallel decoding of those rect that aren't dependent on each other.
* Decode rectangles in order if neededPierre Ossman2015-11-274-4/+15
| | | | | Some encodings must be handled in the order they are received. Make sure we respect this in the decode manager.
* Decode overlapping rectangles in orderPierre Ossman2015-11-276-3/+58
|
* Add flags member to decodersPierre Ossman2015-11-278-8/+17
| | | | | Allows us to add attributes later that affect of the decoder manager deals with the decoders.
* Make the decoder multi-threadedPierre Ossman2015-11-274-9/+254
| | | | | | | This implements the basic infrastructure for multi-threaded decoding of rects. However there is just one thread reading data and one thread decoding it. More logic is needed to safely decode multiple rects at the same time.
* Let CConnection intercept more callbacksPierre Ossman2015-11-272-0/+32
| | | | | We need more callbacks for correct operation of multi-threaded rect decoding.
* Fix copy-paste error for the secTypeX509Vnc security typePierre Ossman2015-11-271-1/+1
|
* Clear up ZlibInStream::reset() behaviourPierre Ossman2015-11-272-3/+3
| | | | | | | | | It previously only did a reset of the ZlibInStream object, not the underlying zlib stream. It also had the side effect of flushing the underlying stream and disassociating from it. Clear things up by changing the naming, and introducing a proper reset function (which is needed by the Tight decoder).
* Split decoders into a read and decode stepPierre Ossman2015-11-2717-364/+622
| | | | | | | | We need to split these steps up in preparation for multi-core support. Reading needs to be done in a serial manner, whilst decoding can be done in parallel. This also involved a rather large cleanup of the Tight decoder.
* Remove CMsgReader::getImageBuf() as nothing uses itPierre Ossman2015-11-272-26/+1
|
* Decouple decoders from CConnectionPierre Ossman2015-11-2716-83/+110
|
* Make ConnParams useful when constPierre Ossman2015-11-272-8/+8
|
* Delegate decoder object management to a separate classPierre Ossman2015-11-275-1/+173
| | | | | | | | | Done in preparation for multi-core decoding. Keeps the complexity out of the other classes. This also moves ownership of the framebuffer in to CConnection. It's the CConnection object that is aware of the threads and how to synchronise with them. Therefore the ownership of the framebuffer must also be there to make sure it isn't deleted whilst threads are working.
* Clean out unused dependencies from CConnection.hPierre Ossman2015-11-094-4/+11
|
* Remove old Windows CE codePierre Ossman2015-11-091-2/+0
|