diff options
author | Andreas Schneider <asn@samba.org> | 2018-05-16 13:59:55 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-06-20 09:22:24 +0200 |
commit | 0e3d52f547805a2ee0ea5389ced05b5237fb0eac (patch) | |
tree | 347fa9f94f2e30c924672637d8e06e169623ac72 /selftest | |
parent | fd836721cf2a3d4e08f7fa6486aa98c306a6f8cb (diff) | |
download | samba-0e3d52f547805a2ee0ea5389ced05b5237fb0eac.tar.gz |
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>
(cherry picked from commit 8b7c8eb3907e2123acee67949e88c26072afc81a)
Diffstat (limited to 'selftest')
0 files changed, 0 insertions, 0 deletions