]> git.ipfire.org Git - thirdparty/glibc.git/commit
__vfscanf_internal: fix aliasing violation (bug 26690)
authorAndreas Schwab <schwab@suse.de>
Thu, 1 Oct 2020 11:59:13 +0000 (13:59 +0200)
committerAndreas Schwab <schwab@suse.de>
Thu, 8 Oct 2020 08:09:30 +0000 (10:09 +0200)
commitc0e9ddf59e73e21afe15fca4e94cf7b4b7359bf2
tree01c560ccd7cc81242b051d0d0e8a6c920bd774cd
parent8f8052c2aadebe05140c433b2fc9b2c04a0199e0
__vfscanf_internal: fix aliasing violation (bug 26690)

As noted in <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97264>, the cast
in the call to the read_int function is an aliasing violation.  Change the
type of local variable f to a pointer to unsigned, which allows to
eliminate most casts while only adding three new ones.
stdio-common/vfscanf-internal.c