public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12881] New: {get,set}timeofday declared with incorrect '__nonnull' attribute
@ 2011-06-12 12:25 aurelien at aurel32 dot net
  2011-06-16  1:59 ` [Bug libc/12881] " drepper.fsp at gmail dot com
  2014-06-24  8:35 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: aurelien at aurel32 dot net @ 2011-06-12 12:25 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12881

           Summary: {get,set}timeofday declared with incorrect '__nonnull'
                    attribute
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: aurelien@aurel32.net
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu
             Build: x86_64-unknown-linux-gnu


Created attachment 5790
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5790
Patch to fix the issue

On Linux it is valid to call {get,set}timeofday() with a null timeval
pointer and non-null timezone pointer.  This will get or set the
kernel's local time offset, which is used for converting timestamps on
brain-dead filesystems like VFAT.  settimeofday(NULL, tz) is also used
to fix the system time during the boot process if the RTC is set to
local time for compatibility with a similarly brain-dead operating
system.

Patch to fix the problem is attached.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/12881] {get,set}timeofday declared with incorrect '__nonnull' attribute
  2011-06-12 12:25 [Bug libc/12881] New: {get,set}timeofday declared with incorrect '__nonnull' attribute aurelien at aurel32 dot net
@ 2011-06-16  1:59 ` drepper.fsp at gmail dot com
  2014-06-24  8:35 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-06-16  1:59 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12881

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-06-16 01:59:22 UTC ---
These are invalid calls.  These calls should then use the syscalls directly and
not cause everyone else to suffer from not being warned about invalid uses.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/12881] {get,set}timeofday declared with incorrect '__nonnull' attribute
  2011-06-12 12:25 [Bug libc/12881] New: {get,set}timeofday declared with incorrect '__nonnull' attribute aurelien at aurel32 dot net
  2011-06-16  1:59 ` [Bug libc/12881] " drepper.fsp at gmail dot com
@ 2014-06-24  8:35 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-24  8:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12881

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-24  8:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-12 12:25 [Bug libc/12881] New: {get,set}timeofday declared with incorrect '__nonnull' attribute aurelien at aurel32 dot net
2011-06-16  1:59 ` [Bug libc/12881] " drepper.fsp at gmail dot com
2014-06-24  8:35 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).