It is possible to end up with a difference value of 0 in the tooltip rendering code causing a division by zero. I have recorded a crash of dx being 0, causing a segfault.
int dx = tooltip_boundary.x - diff.x;
int dy = tooltip_boundary.y - diff.y;
int dw = tooltip_boundary.width - diff.width;
int dh = tooltip_boundary.height - diff.height;
tooltip_boundary.x -= dx/abs(dx)*dw;
tooltip_boundary.y -= dy/abs(dy)*dh;
It is possible to end up with a difference value of
0
in the tooltip rendering code causing a division by zero. I have recorded a crash ofdx
being 0, causing a segfault.