1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/lib
Andreas Schneider 8b7c8eb390 lib: Fix array size in audit_logging
../lib/audit_logging/audit_logging.c: In function ‘json_add_timestamp’:
../lib/audit_logging/audit_logging.c:603:12: error: ‘%s’ directive
       output may be truncated writing up to 9 bytes into a region of size
       between 0 and 43 [-Werror=format-truncation=]
   "%s.%06ld%s",
            ^~
../lib/audit_logging/audit_logging.c:606:3:
   tz);
   ~~
../lib/audit_logging/audit_logging.c:600:2: note: ‘snprintf’ output
       between 8 and 70 bytes into a destination of size 50
  snprintf(
  ^~~~~~~~~
   timestamp,
   ~~~~~~~~~~
   sizeof(timestamp),
   ~~~~~~~~~~~~~~~~~~
   "%s.%06ld%s",
   ~~~~~~~~~~~~~
   buffer,
   ~~~~~~~
   tv.tv_usec,
   ~~~~~~~~~~~
   tz);
   ~~~

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>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu May 17 20:17:35 CEST 2018 on sn-devel-144
2018-05-17 20:17:35 +02:00
..
addns wscript: remove executable bits for all wscript* files 2017-01-11 20:21:01 +01:00
afs waf: add --with-fake-kaserver option 2014-06-04 20:09:38 +02:00
async_req lib/async_req/async_sock.c set socket close on exec 2017-12-18 04:38:19 +01:00
audit_logging lib: Fix array size in audit_logging 2018-05-17 20:17:35 +02:00
compression lib/compression/tests: add missing #include "torture/local/proto.h" 2014-04-02 09:03:44 +02:00
crypto lib/crypto: avoid 'return void_function();' which isn't portable 2018-04-03 16:41:09 +02:00
dbwrap Convert affected by previous commit lines from DEBUG(10,..) to DBG_DEBUG(). 2018-05-16 21:29:24 +02:00
krb5_wrap Fix spelling s/allows to/allows one to/ 2018-05-12 02:09:25 +02:00
ldb lib: Hold at most 10 outstanding paged result cookies 2018-05-15 09:37:21 +02:00
ldb-samba ldb: removing prior secret from logs 2018-05-12 09:15:07 +02:00
param smbd: fileserver: Change defaults to work with EA support out of the box. 2018-05-15 12:40:48 +02:00
pthreadpool pthreadpool: Fix deadlock 2017-12-13 04:46:12 +01:00
replace replace: Check for -Wno-strict-overflow 2018-04-03 20:20:11 +02:00
smbconf Correct "occured" typos. 2017-02-22 08:26:21 +01:00
socket lib:socket: Return early if we have only one interface 2018-03-20 23:16:16 +01:00
talloc Remove extra 0x prefix for the "%p" format specifiers, avoiding 0x0x0 strings in the output. 2018-05-16 18:06:23 +02:00
tdb python: bulk replace dict.iteritems to items for py3 2018-04-13 07:27:12 +02:00
tdb_wrap tdb_wrap: Use a struct initializer 2015-07-23 14:39:18 +02:00
tdr lib: Fix 1354521 Unchecked return value 2016-03-01 21:49:44 +01:00
tevent lib/tevent: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
texpect lib:texpect: Avoid some compiler warnings 2018-03-01 04:37:41 +01:00
torture selftest: consistently produce high-res UTC time 2018-03-22 13:26:44 +01:00
tsocket tsocket: Fix typos 2018-01-04 00:37:20 +01:00
util lib:util: Fix size types in debug.c 2018-05-17 17:30:09 +02:00
README build: Move nss_wrapper to third_party 2017-11-25 10:14:13 +01:00
wscript_build Remove 'external' python module support code - use the third_party directory instead. 2015-03-06 04:41:48 +01:00

compression - Various compression algorithms (MSZIP, lzxpress)
dnspython - Python module for working with DNS.
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions 
          not provided by the host platform.
subunit - Utilities and bindings for working with the Subunit test result 
          reporting protocol.
talloc - Hierarchical pool based memory allocator 
tdb - Simple but fast key/value database library, supporting multiple writers
torture - Simple unit testing helper library