Commit Graph

359 Commits (master)

Author SHA1 Message Date
Andreas Weigel f19d6ee225
add ws_decode tests
7 years ago
Andreas Weigel a2322e7006
remove obsolete hixie protocol support
7 years ago
Andreas Weigel bcefa591cd
factor out hybi decode part to make it testable
7 years ago
Andreas Weigel aac95a9dcf
fix overflow and refactor websockets decode (Hybi)
7 years ago
Lioncash c550e1ac69 font: Fix a small resource leak in a failure case in rfbLoadConsoleFont()
7 years ago
Christian Beier 6cb0522ecb rfbInitServer: only init Winsock once
7 years ago
Christian Beier 5935c1be4f Add an rfbLogPError that shows something on WIN32
7 years ago
Christian Beier 9ac695a4b9 Merge pull request #156 from The-42/drop-autotools
7 years ago
Christian Beier 425e24196b
Fix building in C89 mode
7 years ago
Michał Kępień 75f04c14e4 Ensure compatibility with gtk-vnc 0.7.0+
7 years ago
Bert van Hall fe94339587 drop autotools
7 years ago
Christian Beier c5297bd47d
Fix building websockets with GnuTLS.
7 years ago
Christian Beier 2300efd396 Fix typo
7 years ago
Christian Beier c36147390e Fix websockets building
7 years ago
Christian Beier 7368417239 Various #ifdef fixes to allow building with MSVC2014
7 years ago
Christian Beier 1d1d2090b7 Make websockets code build on OSX without SSL.
7 years ago
Christian Beier 16cf35b2bf
Use unprefixed b64_* functions in websockets code.
7 years ago
Christian Beier 78b101f09d
LibVNCServer: fix starting of an onHold-client in threaded mode.
7 years ago
Kyle Russell aed23ae5c3 websockets: Don't supply Sec-WebSocket-Protocol if not in request
7 years ago
Samuel Mannehed 21f8a8d33d Write the correct length for end of header
8 years ago
Christian Beier 65106d3962
httpd: rework mime type handling to recognise more types
8 years ago
Christian Beier 01698f5c5b Merge pull request #128 from zmedico/autoprobe-selective
8 years ago
Stefan Weil 63bc75f24b Fix some typos (found by codespell)
8 years ago
Kyle Russell 21fd4d27bb Support systemd socket activation
8 years ago
Zac Medico cdd81bd479 Support autoPort with ipv4 or ipv6 disabled
8 years ago
Christian Beier 6f4f31fe93 Merge pull request #84 from plettix/master
8 years ago
George Fleury 1417cb1c3f Avoid calling SSL_pending when connection is already closed
8 years ago
Christian Beier 785f0fa2d1 Merge pull request #103 from rdieter/master
8 years ago
Rex Dieter 53cc1fa18a use namespaced rfbMax macro (issue #102)
8 years ago
Wen Shuguang dfa5e27579 Enable AF_UNIX socket: ignore setsockopt TCP_NODELAY failure.
8 years ago
Stefan Weil 9c7efb7633 Fix some typos (found by codespell)
9 years ago
plettix 455ba61e4f fix for issue 81
9 years ago
Christian Beier 92f558482d Do away with rfbint.h generation and use stdint.h directly instead.
9 years ago
Christian Beier 107109492e Merge pull request #70 from maxnet/master
9 years ago
Benjamin Dürholt 97490d68b0 Changed C++ style comments to C ones
9 years ago
Benjamin Dürholt 4c1bd4e76e prevent segfault
9 years ago
Floris Bos f5ae94639b httpd: disallow directory traversal
9 years ago
Peter Spiess-Knafl 344264da2f Set autotools SOVERSION.
9 years ago
Christian Beier 99bd5d7ca4 Replace SHA1 implementation with the one from RFC 6234.
9 years ago
Christian Beier 1f5f1679a9 Merge pull request #57 from maxnet/master
9 years ago
Floris Bos 6836ccb208 Fix handling of multiple VNC commands per websockets frame
9 years ago
Christian Beier b568db93b9 Merge pull request #56 from maxnet/master
9 years ago
Floris Bos a48035a1ce Only advertise xvp support when xvpHook is set
9 years ago
Timothy Pearson 7230869459 Per libvncserver developer bk138 do not automatically release onHold
9 years ago
Timothy Pearson 0ca63a7ab6 Add missing files from previous commit
9 years ago
Timothy Pearson 366c7e7c21 Port required changes for TDE's krfb server from the old libvnc version embedded with krfb
9 years ago
Christian Beier 5d3e41d257 Fix building with mingw-w64.
9 years ago
Christian Beier 0aa204d818 Update comments regarding rfbClientConnectionGone().
10 years ago
Christian Beier 668d3e3785 Fix Use-After-Free vulnerability in LibVNCServer wrt scaling.
10 years ago
Maks Naumov 02d0f73ee8 Fix selData.buttonWidth calculation
10 years ago
Nicolas Ruff c18fa98b1f Fix stack-based buffer overflow
10 years ago
newsoft 83bf1f5974 Fix multiple stack-based buffer overflows in file transfer feature
10 years ago
newsoft 8220f4da4c Make sure that no integer overflow could occur during scaling
10 years ago
Christian Beier a1125ad9a6 Merge pull request #38 from LibVNC/autotools-fix-revisited
10 years ago
Brian Bidulock 57b0e4f4fe Rename obsolete INCLUDES to AM_CPPFLAGS
10 years ago
Johannes Schindelin ad7a054e8c Close unclosed comments ;-)
10 years ago
Daniel Cohen Gindi b288722ea6 A forgotten `#ifdef WIN32` broke UNIX build.
10 years ago
Daniel Cohen Gindi fd075263f9 Signal is a fundamental UNIX function, and must be omitted for any windows compilation
10 years ago
Daniel Cohen Gindi a7f79b696e These are UNIX headers, and are not available on MSVC
10 years ago
Daniel Cohen Gindi 1fc2951f22 On windows, use the Win32 calls for directory enumerations.
10 years ago
Daniel Cohen Gindi 901eba9f46 Generally adjusting headers for compiling on windows without the mixing of Winsock 1 and 2.
10 years ago
Daniel Cohen Gindi 8c58593649 Just use a macro to bridge to the Win32 version of `mkdir`
10 years ago
Daniel Cohen Gindi 026c48e7fc Fixed a violation of the C89 standard ("declarations must come before instructions")
10 years ago
Daniel Cohen Gindi 7f8520d05c A windows version for directory enumerations
10 years ago
Daniel Cohen Gindi 42ff7fb85b MSVC also has the __FUNCTION__ predefined
10 years ago
Daniel Cohen Gindi 51d0db7107 `CreateDirectory` might clash with the `CreateDirectoryA`/`CreateDirectoryW` macros on MSVC
10 years ago
Daniel Cohen Gindi b2b705aa33 Fail when NULL is passed to CreateFileListInfo()
10 years ago
Daniel Cohen Gindi fbf48c65f3 `strings.h` and `resolv.h` are not available on MSVC, and some POSIX functions are renamed or deprecated
10 years ago
Nicolas Ruff 05a9bd41a8 Do not accept a scaling factor of zero on PalmVNCSetScaleFactor and SetScale client->server messages. This would cause a division by zero and crash the server.
10 years ago
Nicolas Ruff 6037a9074d Check malloc() return value on client->server ClientCutText message. Client can send up to 2**32-1 bytes of text, and such a large allocation is likely to fail in case of high memory pressure. This would in a server crash (write at address 0).
10 years ago
Amandeep Singh 012594b970 allow rfbInitSockets with non-ready states.
10 years ago
Amandeep Singh afd1d329ed Fix crash in krfb
10 years ago
Johannes Schindelin 3351ba69a4 Fix tyop
10 years ago
Joel Martin 7b9fc019de Set opcode correctly for binary frames.
11 years ago
Raphael Kubo da Costa 8f544bd276 Work around a gcc bug with anonymous structs and unions.
12 years ago
Raphael Kubo da Costa a63312c6fb Include stdio.h for snprintf(3)
12 years ago
Raphael Kubo da Costa 252f5d9c7c Add the required headers for read(2)
12 years ago
Raphael Kubo da Costa 95dd76327b Use htobeNN(3) to convert numbers in websocket.c.
12 years ago
Raphael Kubo da Costa 4c148e5f74 Tune the definitions needed when building with -ansi.
12 years ago
Raphael Kubo da Costa 8f1ef3d66c Add some missing feature macro definitions.
12 years ago
Raphael Kubo da Costa 3cbef1a976 Use C-style comments in rfbconfig.h.cmake and C source code.
12 years ago
Raphael Kubo da Costa 88e6043585 Correctly include rfbconfig.h.
12 years ago
Oliver Loch 584542ba97 Patched sockets.c to allow the use of IPv6 without IPv4.
12 years ago
Christian Beier af614dea11 Remove autogenerated files from repo.
12 years ago
Kyle J. McKay 66282f5800 libvncserver/sockets.c: do not segfault when listenSock/listen6Sock == -1
12 years ago
Christian Beier a0cee790cf LibVNCServer: Prefer GnuTLS over OpenSSL to be in sync with LibVNCClient.
12 years ago
Christian Beier fb824c8ce3 Some more libjpeg, libpng and zlib related build fixes.
12 years ago
Christian Beier d4cbaa0c17 Only try to build TightPNG stuff when libjpeg is available.
12 years ago
Christian Beier 81289eb624 Properly check return value.
12 years ago
Christian Beier a48ef69be3 Include some more missing files for make dist.
12 years ago
Christian Beier 450d2ebfd2 Include missing files for make dist.
12 years ago
Christian Beier 6f9a9160c4 Fix some compiler warnings thrown with newer gcc.
12 years ago
Christian Beier 413ca0dfef Merge branch 'turbovnc'
12 years ago
Christian Beier 7cb8fd9b30 Make TurboVNC compress level 3 actually work.
12 years ago
Christian Beier 2d50fc84f7 IPv6 support for LibVNCServer, part four: add copyright notices to files with non-trivial changes.
12 years ago
DRC 7124b5fbcf Replace TightVNC encoder with TurboVNC encoder. This patch is the result of further research and discussion that revealed the following:
12 years ago
DRC 503dd6bb69 Fix an issue that affects the existing Tight encoder as well as the newly-implemented Turbo encoder.
12 years ago
DRC 97001a7e7b Add TurboVNC encoding support.
12 years ago
Christian Beier 75bfb1f5d3 IPv6 support for LibVNCServer, part three: make reverse connections IPv6-capable.
12 years ago
Christian Beier edc75fa4f4 IPv6 support for LibVNCServer, part onepointseven: Plug a memleak.
12 years ago