We check for the proper sizeofs, cf.
<https://github.com/libgd/libgd/commit/
c3cf674c>.
if (overflow2(sx, sy)) {
return NULL;
}
-
if (overflow2(sizeof(unsigned char *), sy)) {
return NULL;
}
-
- if (overflow2(sizeof(unsigned char *), sx)) {
+ if (overflow2(sizeof(unsigned char), sx)) {
return NULL;
}
if (overflow2(sx, sy)) {
return NULL;
}
-
- if (overflow2(sizeof(unsigned char *), sy)) {
+ if (overflow2(sizeof(int *), sy)) {
return NULL;
}
-
- if (overflow2(sizeof(int *), sx)) {
+ if (overflow2(sizeof(int), sx)) {
return NULL;
}