~ubuntu-branches/ubuntu/trusty/eglibc/trusty-security

« back to all changes in this revision

Viewing changes to .pc/any/CVE-2014-9761-1.diff/include/wchar.h

  • Committer: Package Import Robot
  • Author(s): Steve Beattie
  • Date: 2016-04-08 23:26:02 UTC
  • Revision ID: package-import@ubuntu.com-20160408232602-694337pzn1m5xgc3
Tags: 2.19-0ubuntu6.8
* SECURITY UPDATE: buffer overflow in gethostbyname_r and related
  functions
  - debian/patches/any/CVE-2015-1781.diff: take alignment padding
    into account when computing if buffer is too small.
  - CVE-2015-1781
* SECURITY UPDATE: glibc Name Service Switch (NSS) denial of sevice
  - debian/patches/any/CVE-2014-8121-1.diff: do not close NSS files
    database during iteration.
  - debian/patches/any/CVE-2014-8121-2.diff: Separate internal state
    between getXXent and getXXbyYY NSS calls.
  - CVE-2014-8121
* SECURITY UPDATE: glibc unbounded stack usage in NaN strtod
  conversion
  - debian/patches/any/CVE-2014-9761-1.diff: Refactor strtod parsing
    of NaN payloads.
  - debian/patches/any/CVE-2014-9761-1.diff:  Fix nan functions
    handling of payload strings
  - CVE-2014-9761
* SECURITY UPDATE: NSS files long line buffer overflow
  - debian/patches/any/CVE-2015-5277.diff: Don't ignore too long
    lines in nss_files
  - CVE-2015-5277
* SECURITY UPDATE: out of range data to strftime() causes segfault
  (denial of service)
  - debian/patches/any/CVE-2015-8776.diff: add range checks to
    strftime() processing
  - CVE-2015-8776
* SECURITY UPDATE: glibc honors LD_POINTER_GUARD env for setuid
  AT_SECURE programs (e.g. setuid), allowing disabling of pointer
  mangling
  - debian/patches/any/CVE-2015-8777.diff: Always enable pointer
    guard
  - CVE-2015-8777
* SECURITY UPDATE: integer overflow in hcreate and hcreate_r
  - debian/patches/any/CVE-2015-8778.diff: check for large inputs
  - CVE-2015-8778
* SECURITY UPDATE: unbounded stack allocation in catopen()
  - debian/patches/any/CVE-2015-8779.diff: stop using unbounded
    alloca()
  - CVE-2015-8779
* SECURITY UPDATE: Stack overflow in _nss_dns_getnetbyname_r
  - debian/patches/any/CVE-2016-3075.diff: do not make unneeded
    memory copy on the stack.
  - CVE-2016-3075
* SECURITY UPDATE: pt_chown privilege escalation
  - debian/patches/any/CVE-2016-2856.diff: grantpt: trust the kernel
    about pty group and permission mode
  - debian/sysdeps/linux.mk: don't build pt_chown
  - debian/rules.d/debhelper.mk: only install pt_chown when built.
  - CVE-2016-2856, CVE-2013-2207
* debian/debhelper.in/libc.postinst: add reboot notifications for
  security updates (LP: #1546457)
* debian/patches/ubuntu/submitted-no-stack-backtrace.diff: update
  patch to eliminate compiler warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _WCHAR_H
 
2
#include <wcsmbs/wchar.h>
 
3
 
 
4
# ifndef _ISOMAC
 
5
# ifdef _WCHAR_H
 
6
 
 
7
extern __typeof (wcscasecmp_l) __wcscasecmp_l;
 
8
extern __typeof (wcsncasecmp_l) __wcsncasecmp_l;
 
9
extern __typeof (wcscoll_l) __wcscoll_l;
 
10
extern __typeof (wcsxfrm_l) __wcsxfrm_l;
 
11
extern __typeof (wcstol_l) __wcstol_l;
 
12
extern __typeof (wcstoul_l) __wcstoul_l;
 
13
extern __typeof (wcstoll_l) __wcstoll_l;
 
14
extern __typeof (wcstoull_l) __wcstoull_l;
 
15
extern __typeof (wcstod_l) __wcstod_l;
 
16
extern __typeof (wcstof_l) __wcstof_l;
 
17
extern __typeof (wcstold_l) __wcstold_l;
 
18
extern __typeof (wcsftime_l) __wcsftime_l;
 
19
libc_hidden_proto (__wcstol_l)
 
20
libc_hidden_proto (__wcstoul_l)
 
21
libc_hidden_proto (__wcstoll_l)
 
22
libc_hidden_proto (__wcstoull_l)
 
23
libc_hidden_proto (__wcstod_l)
 
24
libc_hidden_proto (__wcstof_l)
 
25
libc_hidden_proto (__wcstold_l)
 
26
libc_hidden_proto (__wcsftime_l)
 
27
 
 
28
 
 
29
extern double __wcstod_internal (const wchar_t *__restrict __nptr,
 
30
                                 wchar_t **__restrict __endptr, int __group)
 
31
     __THROW;
 
32
extern float __wcstof_internal (const wchar_t *__restrict __nptr,
 
33
                                wchar_t **__restrict __endptr, int __group)
 
34
     __THROW;
 
35
extern long double __wcstold_internal (const wchar_t *__restrict __nptr,
 
36
                                       wchar_t **__restrict __endptr,
 
37
                                       int __group) __THROW;
 
38
extern long int __wcstol_internal (const wchar_t *__restrict __nptr,
 
39
                                   wchar_t **__restrict __endptr,
 
40
                                   int __base, int __group) __THROW;
 
41
extern unsigned long int __wcstoul_internal (const wchar_t *__restrict __npt,
 
42
                                             wchar_t **__restrict __endptr,
 
43
                                             int __base, int __group) __THROW;
 
44
__extension__
 
45
extern long long int __wcstoll_internal (const wchar_t *__restrict __nptr,
 
46
                                         wchar_t **__restrict __endptr,
 
47
                                         int __base, int __group) __THROW;
 
48
__extension__
 
49
extern unsigned long long int __wcstoull_internal (const wchar_t *
 
50
                                                   __restrict __nptr,
 
51
                                                   wchar_t **
 
52
                                                   __restrict __endptr,
 
53
                                                   int __base,
 
54
                                                   int __group) __THROW;
 
55
libc_hidden_proto (__wcstof_internal)
 
56
libc_hidden_proto (__wcstod_internal)
 
57
libc_hidden_proto (__wcstold_internal)
 
58
libc_hidden_proto (__wcstol_internal)
 
59
libc_hidden_proto (__wcstoll_internal)
 
60
libc_hidden_proto (__wcstoul_internal)
 
61
libc_hidden_proto (__wcstoull_internal)
 
62
libc_hidden_proto (wcstof)
 
63
libc_hidden_proto (wcstod)
 
64
libc_hidden_proto (wcstold)
 
65
libc_hidden_proto (wcstol)
 
66
libc_hidden_proto (wcstoll)
 
67
libc_hidden_proto (wcstoul)
 
68
libc_hidden_proto (wcstoull)
 
69
 
 
70
libc_hidden_proto (__wcscasecmp_l)
 
71
libc_hidden_proto (__wcsncasecmp_l)
 
72
 
 
73
libc_hidden_proto (__wcscoll_l)
 
74
libc_hidden_proto (__wcsxfrm_l)
 
75
 
 
76
libc_hidden_proto (fputws_unlocked)
 
77
libc_hidden_proto (putwc_unlocked)
 
78
libc_hidden_proto (putwc)
 
79
 
 
80
libc_hidden_proto (vswscanf)
 
81
 
 
82
libc_hidden_proto (mbrtowc)
 
83
libc_hidden_proto (wcrtomb)
 
84
libc_hidden_proto (wcscmp)
 
85
libc_hidden_proto (wcsftime)
 
86
libc_hidden_proto (wcsspn)
 
87
libc_hidden_proto (wcschr)
 
88
libc_hidden_proto (wcscoll)
 
89
libc_hidden_proto (wcspbrk)
 
90
 
 
91
libc_hidden_proto (wmemchr)
 
92
libc_hidden_proto (wmemset)
 
93
 
 
94
/* Now define the internal interfaces.  */
 
95
extern int __wcscasecmp (const wchar_t *__s1, const wchar_t *__s2)
 
96
     __attribute_pure__;
 
97
extern int __wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2,
 
98
                          size_t __n)
 
99
     __attribute_pure__;
 
100
extern size_t __wcslen (const wchar_t *__s) __attribute_pure__;
 
101
extern size_t __wcsnlen (const wchar_t *__s, size_t __maxlen)
 
102
     __attribute_pure__;
 
103
extern wchar_t *__wcscat (wchar_t *dest, const wchar_t *src);
 
104
extern wint_t __btowc (int __c);
 
105
extern int __mbsinit (const __mbstate_t *__ps);
 
106
extern size_t __mbrtowc (wchar_t *__restrict __pwc,
 
107
                         const char *__restrict __s, size_t __n,
 
108
                         __mbstate_t *__restrict __p);
 
109
libc_hidden_proto (__mbrtowc)
 
110
libc_hidden_proto (__mbrlen)
 
111
extern size_t __wcrtomb (char *__restrict __s, wchar_t __wc,
 
112
                         __mbstate_t *__restrict __ps);
 
113
extern size_t __mbsrtowcs (wchar_t *__restrict __dst,
 
114
                           const char **__restrict __src,
 
115
                           size_t __len, __mbstate_t *__restrict __ps);
 
116
extern size_t __wcsrtombs (char *__restrict __dst,
 
117
                           const wchar_t **__restrict __src,
 
118
                           size_t __len, __mbstate_t *__restrict __ps);
 
119
extern size_t __mbsnrtowcs (wchar_t *__restrict __dst,
 
120
                            const char **__restrict __src, size_t __nmc,
 
121
                            size_t __len, __mbstate_t *__restrict __ps);
 
122
extern size_t __wcsnrtombs (char *__restrict __dst,
 
123
                            const wchar_t **__restrict __src,
 
124
                            size_t __nwc, size_t __len,
 
125
                            __mbstate_t *__restrict __ps);
 
126
extern wchar_t *__wcsncpy (wchar_t *__restrict __dest,
 
127
                           const wchar_t *__restrict __src, size_t __n);
 
128
extern wchar_t *__wcpcpy (wchar_t *__dest, const wchar_t *__src);
 
129
extern wchar_t *__wcpncpy (wchar_t *__dest, const wchar_t *__src,
 
130
                           size_t __n);
 
131
extern wchar_t *__wmemcpy (wchar_t *__s1, const wchar_t *s2,
 
132
                           size_t __n);
 
133
extern wchar_t *__wmempcpy (wchar_t *__restrict __s1,
 
134
                            const wchar_t *__restrict __s2,
 
135
                            size_t __n);
 
136
extern wchar_t *__wmemmove (wchar_t *__s1, const wchar_t *__s2,
 
137
                            size_t __n);
 
138
extern wchar_t *__wcschrnul (const wchar_t *__s, wchar_t __wc)
 
139
     __attribute_pure__;
 
140
 
 
141
extern int __vfwscanf (__FILE *__restrict __s,
 
142
                       const wchar_t *__restrict __format,
 
143
                       __gnuc_va_list __arg)
 
144
     /* __attribute__ ((__format__ (__wscanf__, 2, 0)) */;
 
145
extern int __vswprintf (wchar_t *__restrict __s, size_t __n,
 
146
                        const wchar_t *__restrict __format,
 
147
                        __gnuc_va_list __arg)
 
148
     /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
 
149
extern int __fwprintf (__FILE *__restrict __s,
 
150
                       const wchar_t *__restrict __format, ...)
 
151
     /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */;
 
152
extern int __vfwprintf (__FILE *__restrict __s,
 
153
                        const wchar_t *__restrict __format,
 
154
                        __gnuc_va_list __arg)
 
155
     /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */;
 
156
#ifndef __cplusplus
 
157
extern int __vfwprintf_chk (FILE *__restrict __s, int __flag,
 
158
                            const wchar_t *__restrict __format,
 
159
                            __gnuc_va_list __arg)
 
160
     /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
 
161
extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n,
 
162
                            int __flag, size_t __s_len,
 
163
                            const wchar_t *__restrict __format,
 
164
                            __gnuc_va_list __arg)
 
165
     /* __attribute__ ((__format__ (__wprintf__, 5, 0))) */;
 
166
libc_hidden_proto (__vfwprintf_chk)
 
167
libc_hidden_proto (__vswprintf_chk)
 
168
#endif
 
169
 
 
170
extern int __isoc99_fwscanf (__FILE *__restrict __stream,
 
171
                             const wchar_t *__restrict __format, ...);
 
172
extern int __isoc99_wscanf (const wchar_t *__restrict __format, ...);
 
173
extern int __isoc99_swscanf (const wchar_t *__restrict __s,
 
174
                             const wchar_t *__restrict __format, ...)
 
175
     __THROW;
 
176
extern int __isoc99_vfwscanf (__FILE *__restrict __s,
 
177
                              const wchar_t *__restrict __format,
 
178
                              __gnuc_va_list __arg);
 
179
extern int __isoc99_vwscanf (const wchar_t *__restrict __format,
 
180
                             __gnuc_va_list __arg);
 
181
extern int __isoc99_vswscanf (const wchar_t *__restrict __s,
 
182
                              const wchar_t *__restrict __format,
 
183
                              __gnuc_va_list __arg) __THROW;
 
184
libc_hidden_proto (__isoc99_vswscanf)
 
185
libc_hidden_proto (__isoc99_vfwscanf)
 
186
 
 
187
/* Internal functions.  */
 
188
extern size_t __mbsrtowcs_l (wchar_t *dst, const char **src, size_t len,
 
189
                             mbstate_t *ps, __locale_t l) attribute_hidden;
 
190
 
 
191
/* Special version.  We know that all uses of mbsinit inside the libc
 
192
   have a non-NULL parameter.  And certainly we can access the
 
193
   internals of the data structure directly.  */
 
194
#  define mbsinit(state) ((state)->__count == 0)
 
195
#  define __mbsinit(state) ((state)->__count == 0)
 
196
 
 
197
# endif
 
198
# endif
 
199
#endif
 
200
 
 
201
/* Undefine all __need_* constants in case we are included to get those
 
202
   constants but the whole file was already read.  */
 
203
#undef __need_mbstate_t
 
204
#undef __need_wint_t