1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/lib
Douglas Bagnall 28eb49c7ed lib/registry/regf: better initialise nk_block
We were initialising a uint32_t[5] block with memset(..., 5) when we
surely meant memset(..., 5 * sizeof(uint32_t)) or some equivalent.

Thanks go to gcc-7 and -Wmemset-elt-size. The warning looks like this:

../source4/lib/registry/regf.c: In function ‘reg_create_regf_file’:
../source4/lib/registry/regf.c:2095:2: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
  memset(nk.unk3, 0, 5);
    ^~~~~~

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
2016-11-30 20:36:24 +01:00
..
cmdline s4-lib/cmdline: Fix help for -P / --machine-pass: this no longer implies -k 2015-03-06 17:39:58 +01:00
com werror: replace WERR_CLASS_NOT_REGISTERED with HRES_REGDB_E_CLASSNOTREG 2016-09-28 00:04:35 +02:00
events s4:lib/events: remove unused allow_warnings=True 2014-11-25 07:25:46 +01:00
http lib: Give base64.c its own .h 2016-05-04 01:28:23 +02:00
messaging messaging: Fix CID 1373625 Unused value 2016-10-14 21:45:08 +02:00
policy s4-libgpo: fix gcc6 build warning. 2016-02-06 21:48:18 +01:00
registry lib/registry/regf: better initialise nk_block 2016-11-30 20:36:24 +01:00
samba3 s4-lib/samba3: Remove unused smbpasswd_decode_acb_info() 2012-02-10 16:45:13 +11:00
socket source4: Change to use lib/util/access functions. 2016-11-16 16:35:12 +01:00
stream dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
tls tls: Fix warning Wunused-variable 2016-09-21 00:01:08 +02:00
wmi werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/lib/wmi/wbemdata.c 2016-09-28 00:04:23 +02:00