bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] kern: fix mig_strncpy


From: Samuel Thibault
Subject: Re: [PATCH] kern: fix mig_strncpy
Date: Sat, 22 Feb 2014 07:53:11 -0800
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Sat 22 Feb 2014 16:17:13 +0100, a écrit :
> Quoting Samuel Thibault (2014-02-22 15:37:29)
> > Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit :
> > > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination
> > > string.  Return length of destination string.
> > 
> > Well, that calls for some rationale :)
> > 
> > I guess this is related with the other, MIG change?  I.e. that this
> > modified version of kernel mig_strncpy depends on the fixed MIG
> > behavior?
> 
> No.  It's just that the version in mach did not return anything (and
> thus I believe that sending such a string from the kernel would never
> have worked).

> The change in semantics is to make it behave like the version in the
> glibc (and like strncpy in general).

Ok, but that contradicts the previous "OUGHT" comment :) And changing
the behavior means callers would get potentially broken.  AIUI, the only
callers are the ones from mig-generated stubs ?

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]