[PATCH] fix length bug in affinity mask displays (try 3)

Dmitry V. Levin ldv at altlinux.org
Thu Jan 7 22:00:31 UTC 2016


On Wed, Jan 06, 2016 at 09:27:12AM -0500, Joe Korty wrote:
> Fix mask length bug in print_affinitylist.
> 
> The incoming length argument is in terms of bytes not
> longs.
> 
> As a result, a buffer overrun occurs and either four or
> eight times more mask data than is actually available
> is displayed.

The cpu set decoder was really strange, thanks for reporting.
I've pushed commit v4.11-122-g6bf08e3 that changes this decoder to print
cpu_set_t as a set of integers, similar to the way fd_set is printed
as a set of descriptors.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160108/91062c37/attachment.bin>


More information about the Strace-devel mailing list