aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/serialhdl.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-12-24 12:02:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-12-24 12:02:37 -0500
commit4a16053c002ffb88cd7bdf4dbe9e8a36018dab8d (patch)
treea0d0fe61c6bc347459152a17b41b9c5078495103 /klippy/serialhdl.py
parentd0c61f0f76b116e07567e6fbfe2a6bb585545249 (diff)
downloadkutter-4a16053c002ffb88cd7bdf4dbe9e8a36018dab8d.tar.gz
kutter-4a16053c002ffb88cd7bdf4dbe9e8a36018dab8d.tar.xz
kutter-4a16053c002ffb88cd7bdf4dbe9e8a36018dab8d.zip
stepcompress: Fix integer overflow leading to infinite loop
Commit a217c0f3 changed the way the "addfactor" was calculated. Unfortunately, it was possible for the updated method to cause an integer overflow and have a negative addfactor. Fix this by explicitly casting the addfactor calculation to uint32_t. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialhdl.py')
0 files changed, 0 insertions, 0 deletions