diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-22 07:02:00 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-08-01 13:17:46 +0200 |
commit | cf24c8b13c500e086bb5b6aa6f80f49a36cfa901 (patch) | |
tree | de3e6c10d3de680fd215d25997e12644686b24ec /lib/util | |
parent | 7e7790f00ea6926d13c19d0b24066051b0e31669 (diff) | |
download | samba-cf24c8b13c500e086bb5b6aa6f80f49a36cfa901.tar.gz |
fix unstrcpy
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10735
CVE-2014-3560: unstrcpy macro length is invalid
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/string_wrappers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/string_wrappers.h b/lib/util/string_wrappers.h index 5f9d5684e6..243fafc27e 100644 --- a/lib/util/string_wrappers.h +++ b/lib/util/string_wrappers.h @@ -51,7 +51,7 @@ do { \ #define unstrcpy(d,s) \ do { \ const char *_unstrcpy_src = (const char *)(s); \ - strlcpy((d),_unstrcpy_src ? _unstrcpy_src : "",sizeof(fstring)); \ + strlcpy((d),_unstrcpy_src ? _unstrcpy_src : "",sizeof(unstring)); \ } while (0) #ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS |