From: Vinay K N. <vin...@gs...> - 2005-03-31 06:09:38
|
Hi, using Dave Jone's script for grepping swapped memset arguments, I found one such case in bochs. The bug exists in bochs-2.1.1 as well. Patch attached below: Thanks Vinay ========================================================================= diff -urN bochs-2.2.pre2/iodev/harddrv.cc bochs-2.2.pre2-m/iodev/harddrv.cc --- bochs-2.2.pre2/iodev/harddrv.cc 2005-02-16 02:16:20.000000000 +0530 +++ bochs-2.2.pre2-m/iodev/harddrv.cc 2005-03-31 11:27:19.406904024 +0530 @@ -3806,7 +3806,7 @@ } else { - memset(buf, read_size, 0); + memset(buf, 0, read_size); } } else ========================================================================= -- Views expressed in this mail are those of the individual sender and do not bind Gsec1 Limited. or its subsidiary, unless the sender has done so expressly with due authority of Gsec1. _________________________________________________________________________ |