git: dsched: Avoid integer overflow.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Apr 20 11:33:53 PDT 2010


commit 51a4bb9f7d116a7dda9cbe5ca9beef5918ab0376
Author: Sascha Wildner <saw at 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





More information about the Commits mailing list