mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 19:44:13 +03:00
Added missing xx pointer check
This commit is contained in:
parent
1c02d467ef
commit
696924f5ac
|
@ -458,6 +458,9 @@ polygon_generic(Imaging im, int n, Edge *e, int ink, int eofill,
|
||||||
|
|
||||||
/* Process the edge table with a scan line searching for intersections */
|
/* Process the edge table with a scan line searching for intersections */
|
||||||
float* xx = malloc(sizeof(float) * edge_count * 2);
|
float* xx = malloc(sizeof(float) * edge_count * 2);
|
||||||
|
if (!xx) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
for (; ymin <= ymax; ymin++) {
|
for (; ymin <= ymax; ymin++) {
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for (i = 0; i < edge_count; i++) {
|
for (i = 0; i < edge_count; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user