DragonFly BSD
DragonFly commits List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: dsched: Avoid integer overflow.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Apr 2010 11:33:13 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]