Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402876 Details for
Bug 548962
>dev-build/autoconf-2.13 incorrectly handles detection of 32 bit off_t
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
autoconf-all-32bit_off_t_fix.patch
file_548962.txt (text/plain), 1.11 KB, created by
Adam Feldman
on 2015-05-09 06:34:14 UTC
(
hide
)
Description:
autoconf-all-32bit_off_t_fix.patch
Filename:
MIME Type:
Creator:
Adam Feldman
Created:
2015-05-09 06:34:14 UTC
Size:
1.11 KB
patch
obsolete
> Description: Fix undefined behavior for 32-bit off_t. > autoconf (2.69-6) unstable; urgency=low > . > * lib/autoconf/specific.m4: Use ((off_t) 1 << 31) << 31 in place of > (off_t) 1 << 62 to avoid undefined behavior when off_t is 32-bit. > Closes: #742780. Thanks to Mathieu Malaterre <malat@debian.org> for > reporting this bug. >Author: Ben Pfaff <pfaffben@debian.org> >Bug-Debian: http://bugs.debian.org/742780 > >--- >Bug: #742780. >Bug-Debian: http://bugs.debian.org/742780 >Last-Update: 2014-03-27 > >--- autoconf-2.69.orig/lib/autoconf/specific.m4 >+++ autoconf-2.69/lib/autoconf/specific.m4 >@@ -92,7 +92,7 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUD > We can't simply define LARGE_OFF_T to be 9223372036854775807, > since some C++ compilers masquerading as C compilers > incorrectly reject 9223372036854775807. */ >-@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) >+@%:@define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) > int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 > && LARGE_OFF_T % 2147483647 == 1) > ? 1 : -1]];[]dnl
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 Raw
Actions:
View
Attachments on
bug 548962
: 402876