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 | : 18.226.187.60
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 /
xbm /
[ HOME SHELL ]
Name
Size
Permission
Action
.gitignore
16
B
-rwxr-xr-x
CMakeLists.txt
58
B
-rwxr-xr-x
Makemodule.am
82
B
-rwxr-xr-x
github_bug_170.c
1.16
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : github_bug_170.c
/* Test writing of XBM images with a width that is not a multiple of 8 We create an image with a width of 11 pixels, and draw a circle on it. To test that the padding is correctly applied, we write the image to disk and assert that the number of bytes written matches our expectation. See also <https://github.com/libgd/libgd/issues/170>. */ #include <inttypes.h> #include "gd.h" #include "gdtest.h" #ifdef _WIN32 int main() { /* skip for now */ return 0; } #else int main() { gdImagePtr im; int black; FILE *outFile; gdIOCtx *out; off_t length; /* create the test image */ im = gdImageCreate(11, 11); gdImageColorAllocate(im, 255, 255, 255); black = gdImageColorAllocate(im, 0, 0, 0); gdImageArc(im, 5, 5, 10, 10, 0, 360, black); /* write the file to disk, note the file length and delete the file */ outFile = gdTestTempFp(); out = gdNewFileCtx(outFile); gdTestAssert(out != NULL); gdImageXbmCtx(im, "github_bug_170.xbm", 1, out); out->gd_free(out); length = ftello(outFile); fclose(outFile); gdImageDestroy(im); gdTestAssertMsg(length == 250, "expected to write 250 bytes; %jd bytes written", (intmax_t) length); return gdNumFailures(); } #endif
Close