[buildd-tools-devel] Bug#763896: Bug#763896: schroot: infinite allocation on uid/gid entry errors.
Roger Leigh
rleigh at codelibre.net
Sun Nov 9 19:07:15 UTC 2014
tags 763896 + pending fixed-upstream
thanks
On Fri, Oct 03, 2014 at 11:19:22AM -0300, Daniel Serpell wrote:
> The attached patch fixes an infinite allocation loop inside the
> passwd::query_name, passwd::query_uid, group::query_gid and
> group::query_name functions.
>
> Current code simply fails with std::bad_alloc on any error,
> because it always retries with a bigger buffer.
Applied to git on the 1.6 and master branch:
https://github.com/rleigh-codelibre/schroot/commit/83bc6d3f99b1aa04a4864faeeb867ed09bae8e55
https://github.com/rleigh-codelibre/schroot/commit/76a85f0fb34d39f796185d296fadde81b79a3948
Thanks,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
More information about the Buildd-tools-devel
mailing list