1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/lib
Xin LI da4ab3aa26 In DCE 1.1, the time_low value is defined as an unsigned 32-bit
integer.  Presently, our implementation employs an approach that
converts the value to int64_t, then back to int, unfortunately,
this approach can be problematic when the the difference between
the two time_low is larger than 0x7fffffff, as the value is then
truncated to int.

To quote the test case from the original PR, the following is
true with the current implementation:

865e1a56-b9d9-11d9-ba27-0003476f2e88 < 062ac45c-b9d9-11d9-ba27-0003476f2e88

However, according to the DCE specification, the expected result
should be:

865e1a56-b9d9-11d9-ba27-0003476f2e88 > 062ac45c-b9d9-11d9-ba27-0003476f2e88

This commit adds a new intermediate variable which uses int64_t
to store the result of subtraction between the two time_low values,
which would not introduce different semantic of the MSB found in
time_low value.

PR:		83107
Submitted by:	Steve Sears <sjs at acm dot org>
MFC After:	1 month
2006-08-03 03:34:36 +00:00
..
bind Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
csu GC these crt{begin,end}.c, which are unused since the last FreeBSD platform 2006-05-22 19:30:02 +00:00
libalias
libarchive If skip_file_dev and skip_file_ino haven't been set (are still == 0), 2006-08-01 05:31:29 +00:00
libatm Bump library majro version for gethostbyaddr(3). 2006-05-21 15:15:21 +00:00
libautofs
libbegemot
libbluetooth
libbsm Add audit_submit.3 to the set of man pages built and installed with 2006-06-05 12:53:44 +00:00
libbsnmp
libbz2
libc In DCE 1.1, the time_low value is defined as an unsigned 32-bit 2006-08-03 03:34:36 +00:00
libc_r Fix a symlink. 2006-04-12 19:51:14 +00:00
libcalendar
libcam Go with a different version of the previous patch so to preserve errno. 2006-04-30 07:08:43 +00:00
libcom_err
libcompat
libcrypt Provide alternate default for SHLIBDIR before bsd.own.mk does this. 2006-03-18 11:01:06 +00:00
libdevinfo Make the variadic macro debug() comply to C99. 2006-07-17 09:33:24 +00:00
libdevstat
libdisk o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions. 2006-04-25 20:42:15 +00:00
libedit
libexpat
libfetch Respect MK_INET6_SUPPORT. 2006-07-27 04:54:03 +00:00
libform
libftpio Respect MK_INET6_SUPPORT. 2006-07-27 04:54:03 +00:00
libgeom
libgpib Apply style.Makefile(5) here. 2006-04-13 08:12:31 +00:00
libgssapi
libio NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
libipsec Provide alternate default for SHLIBDIR before bsd.own.mk does this. 2006-03-18 11:01:06 +00:00
libipx
libkiconv
libkse o Remove a cruft prevented libpthread sigaction(2) wrapper to 2006-06-09 14:23:40 +00:00
libkvm Rev. 1.44 of this file didn't introduce a right solution, 2006-07-25 22:39:57 +00:00
libmagic Update for the 'file' 4.17 import. 2006-06-19 08:10:23 +00:00
libmd
libmemstat Increase the number of CPUs to 32 to suit sun4v. 2006-07-26 07:46:32 +00:00
libmenu
libmilter Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
libmp Pass BN_CTX to internal functions instead of allocating it internally. 2006-07-30 19:29:26 +00:00
libncp NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
libncurses Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
libnetgraph
libngatm
libopie
libpam Change the GCC specific __FUNCTION__ to C99's __func__. 2006-07-17 11:48:52 +00:00
libpanel
libpcap Place shared libpcap library under /lib, currently needed by 2006-04-13 07:25:02 +00:00
libpmc MFP4: Support for profiling dynamically loaded objects. 2006-03-26 12:20:54 +00:00
libpthread o Remove a cruft prevented libpthread sigaction(2) wrapper to 2006-06-09 14:23:40 +00:00
libradius Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
librpcsvc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
librt Account for recent changes in namespace.h. Use _pthread_create 2006-03-29 04:20:53 +00:00
libsbuf
libsdp Fix an unwanted gcc4 warning. 2006-06-06 16:58:19 +00:00
libsm Add new libsm file from sendmail 8.13.6 2006-03-22 16:58:15 +00:00
libsmb NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
libsmdb
libsmutil
libstand
libtacplus
libtelnet Stop enforcing dependencies between MK_* options at Makefile level. 2006-07-31 13:29:36 +00:00
libthr 1. Don't override underscore version of aio_suspend(), system(), 2006-07-25 12:50:05 +00:00
libthread_db Fix return value. 2006-05-17 05:14:45 +00:00
libufs
libugidfw Add some new options to mac_bsdestended. We can now match on: 2006-04-23 17:06:18 +00:00
libusbhid
libutil style.Makefile(5) is good for our eyes. 2006-07-27 12:36:46 +00:00
libvgl
libwrap Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
liby
libypclnt Remove debug code. 2006-07-28 21:34:37 +00:00
libz Resolve conflicts. 2006-03-23 14:09:21 +00:00
msun Fixed the threshold for using the simple Taylor approximation. 2006-07-07 04:33:08 +00:00
ncurses Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
Makefile Extend coverage of the MK_IPX build option to the following: 2006-03-20 14:24:58 +00:00
Makefile.inc