Bug#229333: Small typo in lib/core.c give segfault
tag 229333 + fixed-upstream
thanks
On Sat, Jan 24, 2004 at 12:36:42PM +0100, Petter Reinholdtsen wrote:
>
> I was finally able to trace down a bug in discover2. I hope this is
> the segfault error I have seen when using it in d-i on VMWare. This
> patch fixes the problem. Someone forgot to make room for the
> zero-terminator in the string.
>
> --- lib/core.c.orig 2004-01-24 11:22:05.000000000 +0000
> +++ lib/core.c 2004-01-24 11:22:07.000000000 +0000
> @@ -84,7 +84,7 @@
> if((*status)->message) {
> free((*status)->message);
> }
> - (*status)->message = _discover_xmalloc(strlen(message));
> + (*status)->message = _discover_xmalloc(strlen(message)+1);
> strcpy((*status)->message, message);
> }
>
> This is reported as Debian bug #229333. Please apply upstream as
> well. :)
Committed as r4060. Thanks!
--
Branden Robinson | GPG signed/encrypted mail welcome
branden@progeny.com | 1024D/9C0BCBFB
Progeny Linux Systems | D5F6 D4C9 E25B 3D37 068C
| 72E8 0F42 191A 9C0B CBFB
Reply to: