Exploit databaseDownload repository ZIP
GH-4642edc2de9658f32424c896f3a2846e
ahallais/php71-debian9-backport
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files66
ahallais/php71-debian9-backportRevision f1162e18d1be
- ↑..Parent directory
- COPYING
- README
- gd.c
- gd.h
- gd2copypal.c
- gd2time.c
- gd2topng.c
- gd_arc.c
- gd_arc_f_buggy.c
- gd_color.c
- gd_crop.c
- gd_filter.c
- gd_gd.c
- gd_gd2.c
- gd_gif_in.c
- gd_gif_out.c
- gd_intern.h
- gd_interpolation.c
- gd_io.c
- gd_io.h
- gd_io_dp.c
- gd_io_file.c
- gd_io_ss.c
- gd_jpeg.c
- gd_matrix.c
- gd_pixelate.c
- gd_png.c
- gd_rotate.c
- gd_security.c
- gd_ss.c
- gd_topal.c
- gd_transform.c
- gd_wbmp.c
- gd_webp.c
- gdcache.c
- gdcache.h
- gddemo.c
- gdfontg.c
- gdfontg.h
- gdfontl.c
- gdfontl.h
- gdfontmb.c
- gdfontmb.h
- gdfonts.c
- gdfonts.h
- gdfontt.c
- gdfontt.h
- gdft.c
- gdhelpers.c
- gdhelpers.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
sury/build/php7.1-7.1.33/ext/gd/libgd/gd_transform.c
C · 1,299 bytes#include "gd.h"
void gdImageFlipVertical(gdImagePtr im)
{
register int x, y;
if (im->trueColor) {
for (y = 0; y < im->sy / 2; y++) {
int *row_dst = im->tpixels[y];
int *row_src = im->tpixels[im->sy - 1 - y];
for (x = 0; x < im->sx; x++) {
register int p;
p = row_dst[x];
row_dst[x] = im->tpixels[im->sy - 1 - y][x];
row_src[x] = p;
}
}
} else {
unsigned char p;
for (y = 0; y < im->sy / 2; y++) {
for (x = 0; x < im->sx; x++) {
p = im->pixels[y][x];
im->pixels[y][x] = im->pixels[im->sy - 1 - y][x];
im->pixels[im->sy - 1 - y][x] = p;
}
}
}
return;
}
void gdImageFlipHorizontal(gdImagePtr im)
{
int x, y;
if (im->trueColor) {
int *px1, *px2, tmp;
for (y = 0; y < im->sy; y++) {
px1 = im->tpixels[y];
px2 = im->tpixels[y] + im->sx - 1;
for (x = 0; x < (im->sx >> 1); x++) {
tmp = *px1;
*px1 = *px2;
*px2 = tmp;
px1++;
px2--;
}
}
} else {
unsigned char *px1, *px2, tmp;
for (y = 0; y < im->sy; y++) {
px1 = im->pixels[y];
px2 = im->pixels[y] + im->sx - 1;
for (x = 0; x < (im->sx >> 1); x++) {
tmp = *px1;
*px1 = *px2;
*px2 = tmp;
px1++;
px2--;
}
}
}
}
void gdImageFlipBoth(gdImagePtr im)
{
gdImageFlipVertical(im);
gdImageFlipHorizontal(im);
}