python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / admin / tightvnc / 1.3.10-CVE-2019-15680.patch
blob7426a2b58b10849fb447c13198333b15d8854dde
1 diff --git a/vncviewer/zlib.c b/vncviewer/zlib.c
2 index 80c4eee..76998d8 100644
3 --- a/vncviewer/zlib.c
4 +++ b/vncviewer/zlib.c
5 @@ -55,6 +55,11 @@ HandleZlibBPP (int rx, int ry, int rw, int rh)
6 raw_buffer_size = (( rw * rh ) * ( BPP / 8 ));
7 raw_buffer = (char*) malloc( raw_buffer_size );
9 + if ( raw_buffer == NULL ) {
10 + fprintf(stderr,
11 + "couldn't allocate raw_buffer in HandleZlibBPP");
12 + return False;
13 + }
16 if (!ReadFromRFBServer((char *)&hdr, sz_rfbZlibHeader))