Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.12.163.23
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
gsh /
libgd-gd-2.2.3 /
tests /
tiff /
[ HOME SHELL ]
Name
Size
Permission
Action
.gitignore
33
B
-rwxr-xr-x
CMakeLists.txt
100
B
-rwxr-xr-x
Makemodule.am
137
B
-rwxr-xr-x
tiff_dpi.c
1.67
KB
-rwxr-xr-x
tiff_im2im.c
1.37
KB
-rwxr-xr-x
tiff_null.c
281
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tiff_dpi.c
/* * Test that reading and writing image resolution values to/from TIFF files * works correctly. Set the image resolution, write the file, read the file * back and test that the image resolution comes back correct. */ #ifdef _WIN32 #include <stdio.h> int main() { printf("skip"); return 0; } #else #include "gd.h" #include "gdtest.h" int main() { gdImagePtr src, dst; int r, res_x, res_y; void *p; int size = 0; int status = 0; src = gdImageCreate(100, 100); if (src == NULL) { gdTestErrorMsg("could not create src\n"); return 1; } r = gdImageColorAllocate(src, 0xFF, 0, 0); gdImageFilledRectangle(src, 0, 0, 99, 99, r); // gd default DPI is 96; libtiff default is 72. // Use something else so we know the value has been // written / read correctly. res_x = 100; res_y = 200; src->res_x = res_x; src->res_y = res_y; #define OUTPUT_TIFF(name) do { \ FILE *fp = gdTestTempFp(); \ gdImageTiff(name, fp); \ fclose(fp); \ } while (0) OUTPUT_TIFF(src); p = gdImageTiffPtr(src, &size); if (p == NULL) { status = 1; gdTestErrorMsg("p is null\n"); goto door0; } if (size <= 0) { status = 1; gdTestErrorMsg("size is non-positive\n"); goto door1; } dst = gdImageCreateFromTiffPtr(size, p); if (dst == NULL) { status = 1; gdTestErrorMsg("could not create dst\n"); goto door1; } if (dst->res_x != res_x) { status = 1; gdTestErrorMsg("mismatch in res_x (got %d, expected %d)", dst->res_x, res_x); } if (dst->res_y != res_y) { status = 1; gdTestErrorMsg("mismatch in res_y (got %d, expected %d)", dst->res_y, res_y); } gdImageDestroy(dst); door1: gdFree(p); door0: gdImageDestroy(src); return status; } #endif
Close