projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent CNAME/PTR parsing from reading data past the response end
[musl]
/
src
/
stdio
/
stderr.c
diff --git
a/src/stdio/stderr.c
b/src/stdio/stderr.c
index
3fd8f81
..
f2bc464
100644
(file)
--- a/
src/stdio/stderr.c
+++ b/
src/stdio/stderr.c
@@
-1,7
+1,9
@@
#include "stdio_impl.h"
#include "stdio_impl.h"
+#undef stderr
+
static unsigned char buf[UNGET];
static unsigned char buf[UNGET];
-
static FILE f
= {
+
hidden FILE __stderr_FILE
= {
.buf = buf+UNGET,
.buf_size = 0,
.fd = 2,
.buf = buf+UNGET,
.buf_size = 0,
.fd = 2,
@@
-12,5
+14,5
@@
static FILE f = {
.close = __stdio_close,
.lock = -1,
};
.close = __stdio_close,
.lock = -1,
};
-FILE *const stderr = &
f
;
-FILE *
const __stderr_used = &f
;
+FILE *const stderr = &
__stderr_FILE
;
+FILE *
volatile __stderr_used = &__stderr_FILE
;