commit 1fb08774cec4ba7e5237cddde8bb4eb9c103000e Author: cjwatson Commit: cjwatson * Fix off-by-one error reading from confmodule (thanks, Baruch Even; closes: #430108). git-svn-id: svn+ssh://svn.debian.org/svn/d-i/trunk@47633 48c42b26-1dd6-0310-b98f-a58d8bce7237 diff --git a/packages/cdebconf/debian/changelog b/packages/cdebconf/debian/changelog index 088d5ef..5c2b745 100644 --- a/packages/cdebconf/debian/changelog +++ b/packages/cdebconf/debian/changelog @@ -13,6 +13,8 @@ cdebconf (0.117) UNRELEASED; urgency=low * Remove five function pointers in every struct template that always pointed to the same functions (or were entirely unused, in the cases of get and set); export those functions from template.c instead. + * Fix off-by-one error reading from confmodule (thanks, Baruch Even; + closes: #430108). -- Attilio Fiandrotti Mon, 18 Jun 2007 15:35:11 +0200 diff --git a/packages/cdebconf/src/confmodule.c b/packages/cdebconf/src/confmodule.c index 7689a4e..89cf02e 100644 --- a/packages/cdebconf/src/confmodule.c +++ b/packages/cdebconf/src/confmodule.c @@ -84,7 +84,7 @@ static int confmodule_communicate(struct confmodule *mod) return DC_OK; } - ret = read(mod->infd, buf, sizeof(buf)); + ret = read(mod->infd, buf, sizeof(buf) - 1); if (ret < 0) { if (errno == EINTR) continue;