]> git.ipfire.org Git - thirdparty/samba.git/commit
lib: replace: snprintf - Fix length calculation for hex/octal 64-bit values.
authorLorinczy Zsigmond <lzsiga@freemail.c3.hu>
Thu, 2 Jun 2016 21:54:05 +0000 (14:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 9 Jun 2016 14:30:22 +0000 (16:30 +0200)
commita23461d2ece8cc46d3888f83a75847a7ea1736f0
treeebde6b0c6362bce8255593a3498e028c23538c3c
parent136ed0e2eb31449fbb8e6dca06a5a8531ad5d613
lib: replace: snprintf - Fix length calculation for hex/octal 64-bit values.

Prevents truncation due to buffer size being too small.

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

Signed-off-by: Lorinczy Zsigmond <lzsiga@freemail.c3.hu>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  3 03:48:58 CEST 2016 on sn-devel-144

(cherry picked from commit 8814b2556583e1f8965e8bf5a93438d46e8d43e6)

Autobuild-User(v4-3-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-3-test): Thu Jun  9 16:30:22 CEST 2016 on sn-devel-104
lib/replace/snprintf.c