1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3
Günther Deschner 9b6dc8f504 s3-utils: fix format-truncation in smbpasswd
../source3/utils/smbpasswd.c: In function ‘process_root’:
../source3/utils/smbpasswd.c:414:37: error: ‘$’ directive output may be truncated writing 1 byte into a region of size between 0 and 255 [-Werror=format-truncation=]
   slprintf(buf, sizeof(buf) - 1, "%s$", user_name);
                                     ^
In file included from ../source3/include/includes.h:23,
                 from ../source3/utils/smbpasswd.c:19:
../lib/replace/../replace/replace.h:514:18: note: ‘snprintf’ output between 2 and 257 bytes into a destination of size 255
 #define slprintf snprintf
../source3/utils/smbpasswd.c:414:3: note: in expansion of macro ‘slprintf’
   slprintf(buf, sizeof(buf) - 1, "%s$", user_name);
   ^~~~~~~~
../source3/utils/smbpasswd.c:397:35: error: ‘$’ directive output may be truncated writing 1 byte into a region of size between 0 and 255 [-Werror=format-truncation=]
   slprintf(buf, sizeof(buf)-1, "%s$", user_name);
                                   ^
In file included from ../source3/include/includes.h:23,
                 from ../source3/utils/smbpasswd.c:19:
../lib/replace/../replace/replace.h:514:18: note: ‘snprintf’ output between 2 and 257 bytes into a destination of size 255
 #define slprintf snprintf
../source3/utils/smbpasswd.c:397:3: note: in expansion of macro ‘slprintf’
   slprintf(buf, sizeof(buf)-1, "%s$", user_name);
   ^~~~~~~~
cc1: some warnings being treated as errors

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

Pair-Programmed-With: Andreas Schneider <asn@samba.org>

Signed-off-by: Guenther Deschner <gd@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
2018-05-17 17:30:09 +02:00
..
auth auth: Add unique session GUID identifier 2018-05-10 20:02:22 +02:00
build
client build: Make --with-libarchive the default 2018-05-15 03:36:08 +02:00
exports
groupdb Fix Jean François name to be UTF-8 2018-05-09 10:38:57 +02:00
include s3:libsmbclient: Use const for setting and getting strings 2018-05-17 01:10:28 +02:00
intl lib: Give util_paths.c its own header 2017-06-24 01:21:10 +02:00
lib Fix spelling s/formated/formatted/ 2018-05-12 02:09:26 +02:00
libads Fix some incorrect debug messages that look to be copy-paste issues. 2018-05-03 08:16:26 +02:00
libgpo/gpext s3/security.c undefined value 2018-04-20 18:18:25 +02:00
libnet libsmb: Give dsgetdcname.c its own header 2018-04-11 01:06:39 +02:00
librpc Revert "Use "localhost" to be ipv6 only friendly" 2018-03-19 15:34:32 +01:00
libsmb s3:libsmbclient: cleanup smbc_setWorkgroup() usage 2018-05-17 01:10:28 +02:00
locale pam_winbind: initial Turkish translation 2017-11-15 13:52:05 +01:00
locking s3:locking: Fix integer overflow check in posix_lock_in_range() 2018-03-20 23:16:16 +01:00
modules s3:modules: Initialize pointers in vfs_virusfilter 2018-05-16 21:30:22 +02:00
nmbd nmbd: Fix a typo 2018-04-11 01:06:39 +02:00
param smbd: fileserver: Change defaults to work with EA support out of the box. 2018-05-15 12:40:48 +02:00
passdb Fix spelling s/specfied/specified/ 2018-05-12 02:09:27 +02:00
printing s3-printing: fix format-truncation in print_queue_update() 2018-05-17 17:30:09 +02:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3:registry: Fix size types and length calculations 2018-03-21 04:25:39 +01:00
rpc_client libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
rpc_server Fix spelling s/receving/receiving/ 2018-05-12 02:09:27 +02:00
rpcclient cmd_drsuapi: add dswriteaccountspn command 2018-05-12 02:09:28 +02:00
script s3:smbspool: Fix cmdline argument handling 2018-05-03 16:33:54 +02:00
selftest selftest: Require libarchive for --enable-selftest 2018-05-15 06:31:03 +02:00
services srcctl3: Improve debug messages 2018-01-16 02:43:03 +01:00
smbd s3:smbd: Fix converity warning with _smb_setlen_large() 2018-05-16 21:30:23 +02:00
torture Fix spelling s/processs/process/ 2018-05-12 02:09:27 +02:00
utils s3-utils: fix format-truncation in smbpasswd 2018-05-17 17:30:09 +02:00
web
winbindd s3-winbindd: remove unused fill_domain_username() 2018-05-17 17:30:09 +02:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript selftest: Require libarchive for --enable-selftest 2018-05-15 06:31:03 +02:00
wscript_build wscript_build: make sure we link extra-python versions of libraries 2018-04-13 07:27:11 +02:00
wscript_configure_system_ncurses