Jonas Ådahl 0882bce989 startup-notification: Ensure provided timestamp is always a 64 bit integer
The libsn API provides its timestamps in the "Time" X11 type, which is
usually is a typedef for "unsigned long". The type of the "timestamp"
parameter of StartupNotificationSequence is a signed 64 bit integer.
When building on an architecture where a "unsigned long" is not 64 bit,
we'd then pass a 32 bit unsigned integer via a va_list where a signed 64
bit integer is expected causing va_arg to read past the passed 32 bit
unsigned integer.

Fix this by ensuring that we always pass the expected type via the
va_list. Also change the internal timestamp type from time_t (which
size is undefined) to gint64, to avoid any potential overflow issues.

https://bugzilla.gnome.org/show_bug.cgi?id=762763
2016-03-07 11:19:08 +08:00
2015-11-09 10:25:40 -05:00
2015-07-06 00:52:18 -07:00
2016-03-05 21:17:27 +01:00
2016-03-03 14:58:20 +01:00
2015-07-06 00:52:18 -07:00
2016-03-03 14:58:20 +01:00
Description
91 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%