The Samba-Bugzilla – Attachment 10172 Details for
Bug 10758
nstrcpy size wrong (potential overflow)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch from master
10758.patch (text/plain), 1.14 KB, created by
Volker Lendecke
on 2014-08-04 09:58:25 UTC
(
hide
)
Description:
Patch from master
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2014-08-04 09:58:25 UTC
Size:
1.14 KB
patch
obsolete
>From 2ee81a0ed51ff12f6a46ab29da2b20ee58763092 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Mon, 4 Aug 2014 07:29:14 +0200 >Subject: [PATCH] lib: Remove unused nstrcpy > >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >Bug: https://bugzilla.samba.org/show_bug.cgi?id=10758 > >Autobuild-User(master): Volker Lendecke <vl@samba.org> >Autobuild-Date(master): Mon Aug 4 09:58:16 CEST 2014 on sn-devel-104 > >Signed-off-by: Volker Lendecke <vl@samba.org> >--- > lib/util/string_wrappers.h | 5 ----- > 1 file changed, 5 deletions(-) > >diff --git a/lib/util/string_wrappers.h b/lib/util/string_wrappers.h >index 243fafc..fcc088c 100644 >--- a/lib/util/string_wrappers.h >+++ b/lib/util/string_wrappers.h >@@ -43,11 +43,6 @@ do { \ > const char *_fstrcat_src = (const char *)(s); \ > strlcat((d),_fstrcat_src ? _fstrcat_src : "",sizeof(fstring)); \ > } while (0) >-#define nstrcpy(d,s) \ >-do { \ >- const char *_nstrcpy_src = (const char *)(s); \ >- strlcpy((d),_nstrcpy_src ? _nstrcpy_src : "",sizeof(fstring)); \ >-} while (0) > #define unstrcpy(d,s) \ > do { \ > const char *_unstrcpy_src = (const char *)(s); \ >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 10758
: 10172