Commit Graph

359 Commits (master)

Author SHA1 Message Date
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
Christian Beier e7dfd0a9d6 IPv6 support for LibVNCServer, part two: Let the http server listen on IPv6, too.
12 years ago
Christian Beier 0e74b5db9a IPv6 support for LibVNCServer, part onepointsix: fix a small logic error.
12 years ago
Christian Beier 23413bf120 IPv6 support for LibVNCServer, part onepointfive: Fix compilation with IPv6 missing.
12 years ago
Christian Beier 83a7c713a9 IPv6 support for LibVNCServer, part one: accept IPv4 and IPv6 connections.
12 years ago
Kyle J. McKay 5c57575c35 Support Mac OS X vnc client with no password
12 years ago
Christian Beier 5ea7e51e6b Merge branch 'websockets' of https://github.com/kanaka/libvncserver
12 years ago
Gernot Tenchio f597599d2a websockets: removed debug message
12 years ago
Gernot Tenchio 4d9178dcf2 websockets: restore errno after logging an error
12 years ago
Christian Beier 50d8a33782 Fix build error when libpng is available, but libjpeg is not.
13 years ago
Christian Beier 49e59435e3 Merge branch 'included-novnc'
13 years ago
Christian Beier 7cb0e4a9a9 novnc client: use the client's notion about the server hostname instead of what the server thinks.
13 years ago
Christian Beier 3df7537a30 Fix deadlock in threaded mode when using nested rfbClientIteratorNext() calls.
13 years ago
George Fleury fba4818ae8 Fix memory leak
13 years ago
Christian Beier 5756b133f7 httpd: fix sending of binary data such as images.
13 years ago
Christian Beier edbd5ab8d4 Add noVNC HTML5 client connect possibility to our http server.
13 years ago
Gernot Tenchio 170033a907 rfbcrypto_included: fix c&p errors
13 years ago
Gernot Tenchio d4cfc260fe rfbcrypto_polarssl: it was way to late last night...
13 years ago
Gernot Tenchio bd9cae3d12 Add support for different crypto implementations
13 years ago
Christian Beier cb0340ccc5 Autotools: Fix OpenSSL and GnuTLS advertisement.
13 years ago
Christian Beier 2046cc9abd Fix libvncserver GnuTLS init.
13 years ago
Christian Beier 98a9d49c05 Update AUTHORS regarding the websocket guys.
13 years ago
Gernot Tenchio 2c45d08dd8 websocket: Use a single buffer for both, encoding and decoding
13 years ago
Gernot Tenchio 3eec976558 Merge branch 'kanaka/websockets' into websockets
13 years ago
Gernot Tenchio 7d1c1033c5 rfbssl_gnutls: Merge rfbssl_peek/rfbssl_read into one function
13 years ago
Gernot Tenchio b1671e6de9 websockets: fix webSocketCheckDisconnect()
13 years ago
Gernot Tenchio 0f2ac00f6e websockets: use 32bit Xor in webSocketsDecodeHybi()
13 years ago
Gernot Tenchio fd73186769 websockets: nothing to worry about
13 years ago
Gernot Tenchio 7b80ff5b3a websockets: added gcrypt based sha1 digest funtion
13 years ago
Joel Martin d8b7f7a7d6 Add sha1.*. Remove UTF-8 encode. Protocol handling.
13 years ago
Gernot Tenchio e22b7acbc8 websockets: remove warning on 64bit platforms
13 years ago
Gernot Tenchio 099e5c8251 websockets: Removed debugging left over
13 years ago
Gernot Tenchio 72b18fdfb7 websockets: Use callback functions for encode/decode
13 years ago
Gernot Tenchio 55234a37fd websockets: Move Hixie disconnect hack to websockets.c
13 years ago
Gernot Tenchio 1408866c86 websockets: Initial HyBi support
13 years ago
Gernot Tenchio 297072a691 websockets: Add wspath member to rfbClientRec
13 years ago
Gernot Tenchio b543d48677 Move libvncserver/md5* to common
13 years ago
Joel Martin 9afe4e1faa websockets: Add SSL cert command line options.
13 years ago
Gernot Tenchio a2a6e25699 websockets: add GnuTLS and OpenSSL support
13 years ago
Gernot Tenchio 4aa3586367 websockets: Add encryption support
13 years ago
Joel Martin 7a77cc32b2 websockets: Properly parse Hixie-76 handshake.
13 years ago
Joel Martin 430b8f2449 websockets: Add UTF-8 encoding support.
13 years ago
Joel Martin 0860c4951f websockets: Better disconnect detection.
13 years ago
Joel Martin 6fac22a74b websockets: Initial WebSockets support.
13 years ago
Joel Martin 353b35e86a tightPng: check even for SendGradientRect.
13 years ago
Joel Martin 896ca2036c tightPng: Add initial tightPng encoding support.
13 years ago
Christian Beier 17ce0c5628 Remove some unused variables.
13 years ago
George Kiagiadakis ddd9b5ac7b Fix rfbProcessNewConnection to return some value instead of void.
13 years ago
George Kiagiadakis 9f8d8d4ef3 Split two event-loop related functions out of the rfbProcessEvents() mechanism.
13 years ago
Cristian Rodríguez c8b8938106 Fix buffer overflow
13 years ago
Christian Beier 984706076c Revert "Fix memory corruption bug."
13 years ago
George Kiagiadakis c1363fa958 Fix memory corruption bug.
13 years ago
George Kiagiadakis 35246edddd Fix compilation in c89 mode.
13 years ago
Christian Beier 62b7acf480 Fix regression in Ultra encoding introduced by commit fe1ca16e9b.
13 years ago
Christian Beier fe1ca16e9b Fix (most) MinGW32 compiler warnings.
13 years ago
Christian Beier 56234cd0b6 Fix remaining compiler warnings.
13 years ago
Christian Beier e832999a58 Set proper file permissions for source files.
13 years ago
Christian Beier cf72a0f7c3 Call WSAGetLastError() everywhere errno is read after a Winsock call.
13 years ago
Christian Beier f5b96e57bf Update minilzo library used for Ultra encoding to ver 2.04.
13 years ago
Christian Beier 9f49600787 libvncserver: Make RRE, CoRRE and Ultra encodings thread-safe.
13 years ago
Christian Beier 558a58e039 Remove unneeded files concerning CVS.
13 years ago
Christian Beier ffe30366d6 Put files used by both libs into a 'common' dir.
13 years ago
ebola_rulez 5e1488beb3 Fix two errors found by cppcheck
13 years ago
runge 658bef5fde Remove never used protocol version name string.
14 years ago
Tobias Doerffel d4fabc217e libvncserver sockets: check cl->screen before accessing it
14 years ago
Christian Beier a5f8d3a310 libvncserver: fix endless loop when server closed client in threaded mode.
14 years ago
Christian Beier 079394ca5b libvncserver sockets: favor per-screen maxclientwait over global one when set.
14 years ago
Christian Beier 453645a6ea libvncserver cleanup: remove rfbKeyFrame remnants.
14 years ago
Christian Beier e5523350a8 libvnc[server|client]: implement xvp VNC extension.
14 years ago
Tobias Doerffel 5da7c7a71a Added missing initialization of extension mutex
14 years ago
Tobias Doerffel 71ad3229f6 In rfbSendDirContent() we have to make sure to call closedir() before
14 years ago
Christian Beier c0373e9cd4 Non-blocking sockets for Windows.
14 years ago
Christian Beier 0df84e5c27 Cleanup: remove CORBA stuff.
14 years ago
Christian Beier ad25446978 Fix MinGW32 compilation with libjpeg.
14 years ago
Christian Beier 09f7c684a2 Implement a DisplayFinishedHook for libvncserver.
14 years ago
Christian Beier 07008deea2 libvncserver/font.c: add some checks to rfbDrawChar().
15 years ago
runge 69cd710dd2 year++;
15 years ago
runge c15b6165ab tightvnc-filetransfer/rfbtightserver.c: enabled fix
15 years ago
runge f40b011182 Add locks of updateMutex in rfbRedrawAfterHideCursor() and
15 years ago
Christian Beier 9ed410668c Fix checks for socket values, 0 is a legal value.
15 years ago
Vic Lee a4cc897222 Fix various compilation warnings
15 years ago
Johannes Schindelin f49a292783 Merge branch 'VeNCrypt'
15 years ago
Vic Lee 29990f0090 Add MSLogon security type
15 years ago
runge 0142acdded Some broken build environments treat fprintf(fh, buf) as a fatal error...
15 years ago
runge 804335f9d2 Thread safety for zrle, zlib, tight.
15 years ago
dscho 3d2eab575e clean up build flags
15 years ago
runge dbfa4ad1f7 We seem to need to guard against freeing iterator 'i' twice in rfbSendFramebufferUpdate() (italc reported bug)
16 years ago
runge eaecbf4bec Handle colormaps with more than 256 colors.
16 years ago
dscho c04a28f306 Please MS Visual C++ a bit (Christian Ehrlicher)
16 years ago
dscho befcb6fc14 Fix ZYWRLE en/decoding for width != scanline (thanks Noriaki Yamazaki)
16 years ago
runge 8bb8271615 Add ZYWRLE to server printout.
16 years ago
runge fe63ea1365 Need to include zywrletemplate.c in Makefile.am
16 years ago
dscho c17aef31ac Fix rfbSendSupportedEncodings
16 years ago
dscho c5173f364f Fix Swap16IfLE() on bytes
16 years ago
dscho 3d9a563983 Move tightQualityLevel out of the JPEG specific part
16 years ago
dscho ce8d6c2409 Make ZYWRLE thread-safe for multiple clients
16 years ago
dscho 5b9b454361 ZYWRLE brown paper bag fix
16 years ago
dscho 87fa3452c1 Add missing #include <time.h> (thanks Christian Ehrlicher)
16 years ago
dscho 059afcdf81 Add ZYWRLE server-side support (thanks Noriaki Yamazaki, Hitachi)
16 years ago
dscho 1df143d1a1 Avoid misaligned access on 64-bit machines
17 years ago
runge e9353e8d29 More fixes to ultra java viewer, ultrafilexfer debugging output, fix -loop in .x11vncrc case.
17 years ago