From: Alyssa Ross <hi@alyssa.is>
To: libc-alpha@sourceware.org
Cc: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: [PATCH 2/2] stdio: add test for scanf matches longer than INT_MAX (bug 27650)
Date: Sun, 9 May 2021 21:56:51 +0000 [thread overview]
Message-ID: <20210509215651.wz5xvhbu6qbysljq@eve.qyliss.net> (raw)
In-Reply-To: <20210329180640.18722-1-hi@alyssa.is>
[-- Attachment #1: Type: text/plain, Size: 1877 bytes --]
On Mon, Mar 29, 2021 at 06:06:40PM +0000, Alyssa Ross wrote:
> This doesn't test the wchar_t variants. Won't run on s390 due to
> using more than INT_MAX bytes of address space.
> ---
> Applying this will need to wait until I have my copyright paperwork
> sorted.
>
> stdio-common/Makefile | 3 ++-
> stdio-common/tst-sscanf-bz27650.c | 42 +++++++++++++++++++++++++++++++
> 2 files changed, 44 insertions(+), 1 deletion(-)
> create mode 100644 stdio-common/tst-sscanf-bz27650.c
>
> diff --git a/stdio-common/Makefile b/stdio-common/Makefile
> index b2458ba4a6..281a154f5b 100644
> --- a/stdio-common/Makefile
> +++ b/stdio-common/Makefile
> @@ -70,7 +70,8 @@ tests := tstscanf test_rdwr test-popen tstgetln test-fseek \
> tst-vfprintf-width-prec-alloc \
> tst-printf-fp-free \
> tst-printf-fp-leak \
> - test-strerr
> + test-strerr \
> + tst-sscanf-bz27650
>
>
> test-srcs = tst-unbputc tst-printf tst-printfsz-islongdouble
> diff --git a/stdio-common/tst-sscanf-bz27650.c b/stdio-common/tst-sscanf-bz27650.c
> new file mode 100644
> index 0000000000..4636d26323
> --- /dev/null
> +++ b/stdio-common/tst-sscanf-bz27650.c
> @@ -0,0 +1,42 @@
> +#include <errno.h>
> +#include <limits.h>
> +#include <stddef.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
Just realised not all these headers are necessary (some were left in
from a previous approach with this test):
diff --git i/stdio-common/tst-sscanf-bz27650.c w/stdio-common/tst-sscanf-bz27650.c
index 4636d26323..c7dc8c814d 100644
--- i/stdio-common/tst-sscanf-bz27650.c
+++ w/stdio-common/tst-sscanf-bz27650.c
@@ -1,9 +1,6 @@
#include <errno.h>
#include <limits.h>
-#include <stddef.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <support/blob_repeat.h>
#include <support/check.h>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-05-09 21:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 14:01 [PATCH] stdio: fix vfscanf with " Alyssa Ross
2021-03-25 17:25 ` Florian Weimer
2021-03-25 20:28 ` Alyssa Ross
2021-03-25 21:24 ` Florian Weimer
2021-03-26 12:00 ` Alyssa Ross
2021-03-26 12:17 ` Florian Weimer
2021-03-29 12:01 ` Alyssa Ross
2021-03-29 13:34 ` Florian Weimer
2021-03-29 18:06 ` [PATCH 2/2] stdio: add test for scanf " Alyssa Ross
2021-05-09 21:56 ` Alyssa Ross [this message]
2021-05-03 8:57 ` [PATCH] stdio: fix vfscanf with " Florian Weimer
2021-05-09 16:32 ` Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210509215651.wz5xvhbu6qbysljq@eve.qyliss.net \
--to=hi@alyssa.is \
--cc=fw@deneb.enyo.de \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).