Bug report
Bug description:
A static analysis tool reported several potential division by zero vulnerabilities in
Lib/turtle.py
value xspan can be 0
xspan = float(urx - llx)
self.xscale = self.canvwidth / xspan
Lib/turtle.py
value yspan can be 0
yspan = float(ury - lly)
self.yscale = self.canvheight / yspan
Lib/turtle.py
value steps can be 0
steps = 1+int(min(11+abs(radius)/6.0, 59.0)*frac)
w = 1.0 * extent / steps
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
A static analysis tool reported several potential division by zero vulnerabilities in
Lib/turtle.pyvalue
xspancan be 0Lib/turtle.pyvalue
yspancan be 0Lib/turtle.pyvalue
stepscan be 0CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs