1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00
Volker Lendecke 63552f1c4c winbind: Fix idmap initialization
The fix is in the sscanf line: %u in the sscanf format mandates the use of
a pointer to an "unsigned". idmap_domain->[low|high]_id are uint32_t. On
little endian 64-bit this might at least put the correct values into
low_id and high_id, but might overwrite the read_only bit set earlier,
depending on structure alignment and packing. On big endian 64-bit,
this will just fail.

Automatic conversion to uint32_t will happen only at assignment, not
when you take a pointer of such a thing.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jan 22 17:58:16 CET 2015 on sn-devel-104
2015-01-22 17:58:16 +01:00
..
2014-01-03 05:04:44 +01:00
2015-01-01 02:47:59 +01:00
2015-01-22 13:14:37 +01:00
2014-12-07 00:12:07 +01:00
2014-12-07 00:12:07 +01:00
2015-01-06 00:33:09 +01:00
2015-01-19 06:48:05 +01:00
2013-05-18 16:32:38 +02:00
2015-01-06 00:33:09 +01:00