Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 668477 Details for
Bug 750992
=sys-libs/glibc-2.32-r2 hang uname with gcc-11
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glibc-9999-alias.patch
glibc-9999-alias.patch (text/plain), 971 bytes, created by
Sergei Trofimovich (RETIRED)
on 2020-10-25 09:15:57 UTC
(
hide
)
Description:
glibc-9999-alias.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2020-10-25 09:15:57 UTC
Size:
971 bytes
patch
obsolete
>Avoid type punning on pointers to values. >Leave type punning on values. > >https://gcc.gnu.org/PR97264 >https://sourceware.org/PR26690 >--- a/stdio-common/vfscanf-internal.c >+++ b/stdio-common/vfscanf-internal.c >@@ -486,7 +486,9 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr, > /* Check for a positional parameter specification. */ > if (ISDIGIT ((UCHAR_T) *f)) > { >- argpos = read_int ((const UCHAR_T **) &f); >+ const UCHAR_T * uf = (void*)f; >+ argpos = read_int (&uf); >+ f = (void*)uf; > if (*f == L_('$')) > ++f; > else >@@ -521,8 +523,11 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr, > > /* Find the maximum field width. */ > width = 0; >- if (ISDIGIT ((UCHAR_T) *f)) >- width = read_int ((const UCHAR_T **) &f); >+ if (ISDIGIT ((UCHAR_T) *f)) { >+ const UCHAR_T * uf = (void*)f; >+ width = read_int (&uf); >+ f = (void*)uf; >+ } > got_width: > if (width == 0) > width = -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 750992
: 668477