FreeBSD Security Advisory FreeBSD-SA-05:02.sendfile

Colin Percival cperciva at freebsd.org
Tue Apr 5 01:40:06 PDT 2005


Uwe Doering wrote:
> +                       vnode_pager_setsize(vp, 0);
> 
> I wonder, isn't the variable 'vp' actually supposed to be 'ovp' in the
> added line?  Technically they are identical.  'ovp' is assigned from
> 'vp' once in the variable definition section at the start of the function.
> 
> However, using 'vp' when calling vnode_pager_setsize() looks a little
> odd given that anywhere else in this function, including another call to
> vnode_pager_setsize(), the variable 'ovp' is used instead of 'vp'.

I agree that it looks a bit odd; a few people have pointed this out to us
(but none of them before it was committed into the CVS tree). That said,
it doesn't seem to matter, so I'm not going to go back and change the patch
now.

Colin Percival


More information about the freebsd-security mailing list