This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
libc/wcsmbs/bits wchar2.h
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 26 Sep 2007 20:44:16 -0000
- Subject: libc/wcsmbs/bits wchar2.h
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.org 2007-09-26 20:44:16
Modified files:
wcsmbs/bits : wchar2.h
Log message:
(__wmemcpy_chk_warn, __wmemmove_chk_warn,
__wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
__wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
__mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
__wcsnrtombs_chk_warn): New aliases with __warnattr.
(wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
compile time detectable overflow is found.
(wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
to use __*_chk or not.
(fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
in comparisons which function should be called and in __*_chk*
arguments. Call __*_chk_warn instead of __*_chk if compile time
detectable overflow is found.
(swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
__*_chk argument.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/wcsmbs/bits/wchar2.h.diff?cvsroot=glibc&r1=1.13&r2=1.14