This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3.2] New functions pthread_[sg]etattr_default_np for default thread attributes


On Thu, Jun 13, 2013 at 02:29:38PM -0400, Carlos O'Donell wrote:
> You can only copy the minimum of the sizes?
> 
> - void *p = mempcpy (cpuset, iattr->cpuset, iattr->cpusetsize);
> + void *p = mempcpy (cpuset, iattr->cpuset, MIN(cpusetsize, iattr->cpusetsize));
> 

Yes, something like that.  I'm getting a test case together to
validate this.

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]