403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/graphics/pnglite/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/graphics/pnglite/files/patch-pnglite.c
* Fix zlib include
* Fix buffer size (obtained from teeworlds)
	* this buffer will contain compressed data + "IDAT" string + CRC32, but the latter two were not accounted
--- pnglite.c.orig	2019-01-05 19:00:10 UTC
+++ pnglite.c
@@ -5,7 +5,7 @@
 #define USE_ZLIB 1
 
 #if USE_ZLIB
-#include "../zlib/zlib.h"
+#include <zlib.h>
 #else
 #include "zlite.h"
 #endif
@@ -492,7 +492,7 @@ static int png_write_idats(png_t* png, unsigned char* 
 	(void)png_end_deflate;
 	(void)png_deflate;
 
-	chunk = png_alloc(size);
+	chunk = png_alloc(size + 8);
 	memcpy(chunk, "IDAT", 4);
 	
 	written = size;

Youez - 2016 - github.com/yon3zu
LinuXploit