projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb8a69
)
fix invalid %m format crash in wide scanf variants
author
Rich Felker
<dalias@aerifal.cx>
Sun, 1 Sep 2013 02:52:41 +0000
(22:52 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 1 Sep 2013 02:52:41 +0000
(22:52 -0400)
the wide variant was missed in the previous commit.
src/stdio/vfwscanf.c
patch
|
blob
|
history
diff --git
a/src/stdio/vfwscanf.c
b/src/stdio/vfwscanf.c
index 44fac78e0f069086ab3ebcaaccd3eb8db6a80b6e..75f04d725719f412328b7fcb8f143d88fa14a479 100644
(file)
--- 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 {