From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3854 invoked by alias); 8 May 2018 15:11:28 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 3394 invoked by uid 89); 8 May 2018 15:11:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-33.2 required=5.0 tests=AWL,BAYES_00,ENV_AND_HDR_SPF_MATCH,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.2 spammy=Hx-languages-length:794 X-HELO: mail-wr0-f196.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BOifQqXseCBQseFD2iCSBb8b36+da9EyBaPq4ZpciME=; b=qTvrX1OJdNtHLdhg5Bq48spSB5As98VdGrasOgOmvS4kIkCvfFCpeQAnkxbL1ER51q 797Ej/uSlMzCRZbzbD48Fks2IFIJgCoY4XheOE5kfpHeR7CvxJlI99mWmbO0Hbyj7nHR mip5Z0H5b62l3+wN12hWk4SwjXuOYKPxTmvZ9F4lwqL6pAj/QqCt4UbD/mel2n5g1kS/ 4RGtqIY2FIkk/veehsfuKdGpcbpjhhKyPAyOnIXNI2zoQly2F1Tr1CLZBKxNtpkaaasf 6iOAvQPIR/n6jwwLy7n8nE/CNIKKxQeh+NZQe/1OGywqYOh7Jm4F3L/J+abc7eyn5n7A 87og== X-Gm-Message-State: ALQs6tCrmrQIVhHV9oIY82yrky8LKKi65qDZtXzSCp96oTFmAUEGak3H TTWyIyZb77bQzRXfRXt4UAScFZ8v9ebjS2LQLcWnn3nq X-Google-Smtp-Source: AB8JxZrOA9ET+oUy9pTC7eGxp8Bk6cqgYB2LtCMjbXD+uBxTqBGBU/MhleopX5FwJ5yq99cSvZBv5ndGDrevR6VlW6Q= X-Received: by 2002:adf:a075:: with SMTP id l50-v6mr36205657wrl.227.1525792284580; Tue, 08 May 2018 08:11:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul Pluzhnikov Date: Tue, 08 May 2018 15:11:00 -0000 Message-ID: Subject: Re: [patch] Fix path length overflow in realpath (BZ#22786) To: Andreas Schwab Cc: "Joseph S. Myers" , GLIBC Devel Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-05/txt/msg00283.txt.bz2 On Tue, May 8, 2018 at 7:59 AM Andreas Schwab wrote: > On Apr 17 2018, Paul Pluzhnikov wrote: > > diff --git a/stdlib/test-bz22786.c b/stdlib/test-bz22786.c > > new file mode 100644 > > index 0000000000..1b6331ac5c > > --- /dev/null > > +++ b/stdlib/test-bz22786.c > > @@ -0,0 +1,90 @@ > > +/* Bug 22786: test for stack overflow in realpath. > This is actually a buffer overflow. Ok with that change. I am not sure what you mean by that. The (stack) allocated buffer is large enough, so technically there is no buffer overflow here (at least not in the sense that "allocated buffer was too small"). But the stack is not large enough to hold the buffer of that size. -- Paul Pluzhnikov