summaryrefslogtreecommitdiff
path: root/src/stdio/vfwscanf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-31 22:52:41 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-31 22:52:41 -0400
commitf0328a565692320784fa8032f176e40d0998aedd (patch)
tree58ad0118bf7bbdd0ed04e93b91578e723b20321d /src/stdio/vfwscanf.c
parentcbb8a6979038f96d3f67c659363cebf0615c42ba (diff)
downloadmusl-f0328a565692320784fa8032f176e40d0998aedd.tar.gz
musl-f0328a565692320784fa8032f176e40d0998aedd.tar.bz2
musl-f0328a565692320784fa8032f176e40d0998aedd.tar.xz
musl-f0328a565692320784fa8032f176e40d0998aedd.zip
fix invalid %m format crash in wide scanf variants
the wide variant was missed in the previous commit.
Diffstat (limited to 'src/stdio/vfwscanf.c')
-rw-r--r--src/stdio/vfwscanf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/vfwscanf.c b/src/stdio/vfwscanf.c
index 44fac78e..75f04d72 100644
--- a/src/stdio/vfwscanf.c
+++ b/src/stdio/vfwscanf.c
@@ -143,6 +143,8 @@ int vfwscanf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap)
}
if (*p=='m') {
+ wcs = 0;
+ s = 0;
alloc = !!dest;
p++;
} else {