Re: [SCM] dpkg's main repository branch, master, updated. 18.104.22.168-319-gbf9cefe
On Mon, 2011-09-12 at 08:25:13 +0000, Raphaël Hertzog wrote:
> The following commit has been merged in the master branch:
> commit 9dcb50a59414e1fe0e6a8a4c8ee9f59d10706396
> Author: Raphaël Hertzog <email@example.com>
> Date: Mon Sep 12 09:42:11 2011 +0200
> update-alternatives: new non-regression test
> This one catches the regression introduced in
> 6c481e19a532080643e3cf5c76760df8009ea2c7 and fixed in
> It should also catch the former problem of passing NULL to stat() (via
> new_file). But this did not trigger any segfault, merely a failure
> with EFAULT.
Hrmm, should not have trusted the existing code when changing to
xreadlink. Because even if on Linux (and other kernels) it returns
EFAULT, due to the argument being handled directly by the kernel,
there's no guarantee it cannot segfault, and the system has all the
right to do so, as such that's not a portable assumption to make.
For example it *does* segfault on the Hurd.