Date: Mon, 26 Jun 2006 21:10:35 GMT From: Clément Lecigne <clem1@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100092 for review Message-ID: <200606262110.k5QLAZ3G024295@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100092 Change 100092 by clem1@clem1_ipv6vulns on 2006/06/26 21:10:20 fix bad encoding when field size is lower than 1 bytes. Affected files ... .. //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/pcs.py#5 edit Differences ... ==== //depot/projects/soc2006/clem1_ipv6vulns/pcs/pcs/pcs.py#5 (text+ko) ==== @@ -268,7 +268,7 @@ if fieldBR < byteBR: shift = byteBR - fieldBR byteBR -= fieldBR - mask = ((2 ** shift) - 1) << shift + mask = ((2 ** fieldBR) - 1) << shift byte = (byte | ((value << shift) & mask)) # Done with the field, not with the byte get new field break @@ -289,7 +289,6 @@ byteBR = 8 # Done with the byte and the field have a nice day break - self._bytes = ''.join(bytearray) # Install the new value class Chain(list):
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606262110.k5QLAZ3G024295>