1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/passdb
Andreas Schneider 728297ca88 s3:passdb: Fix size of ascii_p16
../source3/passdb/pdb_smbpasswd.c: In function ‘mod_smbfilepwd_entry’:
../source3/passdb/pdb_smbpasswd.c:1015:7: error: ‘:LCT-’ directive
    output may be truncated writing 5 bytes into a region of size between 0
    and 255 [-Werror=format-truncat ion=]
    "%s:LCT-%08X:",
       ^~~~~
../source3/passdb/pdb_smbpasswd.c:1015:4: note: using the range [0,
    4294967295] for directive argument
    "%s:LCT-%08X:",
    ^~~~~~~~~~~~~~
In file included from ../source3/include/includes.h:23,
                 from ../source3/passdb/pdb_smbpasswd.c:23:
../lib/replace/../replace/replace.h:514:18: note: ‘snprintf’ output
    between 15 and 270 bytes into a destination of size 255
 #define slprintf snprintf
../source3/passdb/pdb_smbpasswd.c:1013:3: note: in expansion of macro ‘slprintf’
   slprintf(&ascii_p16[strlen(ascii_p16)],
   ^~~~~~~~

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2018-05-17 17:30:09 +02:00
..
ABI s3:passdb: add create_builtin_guests() 2018-03-19 20:30:49 +01:00
account_pol.c Fix Jean François name to be UTF-8 2018-05-09 10:38:57 +02:00
login_cache.c Convert all uses of uint32/16/8 to _t in source3/passdb. 2015-05-12 01:32:12 +02:00
lookup_sid.c passdb: Fix a typo 2017-11-13 23:54:46 +01:00
lookup_sid.h s3-passdb: Respect LOOKUP_NAME_GROUP flag in sid lookup. 2015-07-28 21:35:58 +02:00
machine_account_secrets.c s3:passdb: Do not return OK if we don't have pinfo set up 2018-04-19 00:32:22 +02:00
machine_sid.c s3:passdb formatting changes 2012-09-27 04:36:52 +02:00
machine_sid.h s3: rename sid_check_is_in_our_domain() to sid_check_is_in_our_sam() 2012-07-12 18:36:02 +02:00
passdb.c s3:passdb: use cli_credentials_set_kerberos_state() for trusts in pdb_get_trust_credentials() 2017-02-24 18:40:14 +01:00
pdb_compat.c Convert all uses of uint32/16/8 to _t in source3/passdb. 2015-05-12 01:32:12 +02:00
pdb_get_set.c Add --set-nt-hash option to pdbedit to update user password from nt-hash hexstring. 2015-11-30 03:49:25 +01:00
pdb_interface.c lib: Use messaging_send_all instead of message_send_all 2017-12-05 00:56:13 +01:00
pdb_ldap_schema.c s3-passdb: Remove obsolte ldapsam_compat support. 2012-07-03 21:56:49 +02:00
pdb_ldap_schema.h s3-passdb: Remove obsolte ldapsam_compat support. 2012-07-03 21:56:49 +02:00
pdb_ldap_util.c Fix Jean François name to be UTF-8 2018-05-09 10:38:57 +02:00
pdb_ldap_util.h s3: move smbldap_util to pdb_ldap_util. 2011-11-16 12:26:26 +01:00
pdb_ldap.c Fix Jean François name to be UTF-8 2018-05-09 10:38:57 +02:00
pdb_ldap.h lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
pdb_nds.c pdb_nds: Fix CID 1273401 Unused value 2018-04-07 02:11:20 +02:00
pdb_nds.h lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
pdb_samba_dsdb.c Fix spelling s/coult/could/ 2018-05-12 02:09:26 +02:00
pdb_secrets.c Convert all uses of uint32/16/8 to _t in source3/passdb. 2015-05-12 01:32:12 +02:00
pdb_secrets.h Convert all uses of uint32/16/8 to _t in source3/passdb. 2015-05-12 01:32:12 +02:00
pdb_smbpasswd.c s3:passdb: Fix size of ascii_p16 2018-05-17 17:30:09 +02:00
pdb_smbpasswd.h lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
pdb_tdb.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
pdb_tdb.h lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
pdb_unixid.c s3-passdb: add unixid_from_uid/unixid_from_gid/unixid_from_both API 2012-05-23 17:51:50 +03:00
pdb_util.c s3:passdb: add create_builtin_guests() 2018-03-19 20:30:49 +01:00
py_passdb.c s3/py_passdb: initialize optional parameters earlier 2018-04-13 07:27:14 +02:00
secrets_lsa.c s3:secrets: rename secrets_delete() to secrets_delete_entry() 2017-06-27 16:57:45 +02:00
secrets.c s3:secrets: re-add secrets_delete() helper to simplify deleting optional keys 2017-06-27 16:57:45 +02:00
wscript_build wscript_build: fix c modules deps name for Python 3 2018-04-05 08:59:09 +02:00