git: dsched: Avoid integer overflow.

看板DFBSD_commit作者時間16年前 (2010/04/21 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 51a4bb9f7d116a7dda9cbe5ca9beef5918ab0376 Author: Sascha Wildner <saw@online.de> Date: Tue Apr 20 21:32:44 2010 +0300 dsched: Avoid integer overflow. Multiplication of two 32 bit values can overflow the 32 bit result. Cast one of the multiplicants to force 64 bit multiplication. This fixes a lockup due to an infinite loop in the following while(). In-collaboration-with: aggelos Summary of changes: sys/dsched/fq/dsched_fq_core.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51a4bb9f7d116a7dda9cbe5ca9beef5918ab0376 -- DragonFly BSD source repository
文章代碼(AID): #1BpVdp1y (DFBSD_commit)