The Samba-Bugzilla – Attachment 9261 Details for
Bug 10190
Fix memset used with constant zero length parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
v4-1-test patch
0001-ccan-Fix-calling-memset-with-zero-length-parameter.patch (text/plain), 981 bytes, created by
Andreas Schneider
on 2013-10-09 15:48:06 UTC
(
hide
)
Description:
v4-1-test patch
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2013-10-09 15:48:06 UTC
Size:
981 bytes
patch
obsolete
>From d6ed5cc100240dc99e3458ec163c06d3c549d2e5 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Thu, 11 Jul 2013 14:57:53 +0200 >Subject: [PATCH] ccan: Fix calling memset with zero length parameter > >Signed-off-by: Volker Lendecke <vl@samba.org> >Reviewed-by: Andreas Schneider <asn@samba.org> > >Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> >Autobuild-Date(master): Thu Jul 11 16:55:49 CEST 2013 on sn-devel-104 > >Signed-off-by: Andreas Schneider <asn@samba.org> >--- > lib/ccan/tally/tally.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c >index 774373c..29f0555 100644 >--- a/lib/ccan/tally/tally.c >+++ b/lib/ccan/tally/tally.c >@@ -506,11 +506,11 @@ char *tally_histogram(const struct tally *tally, > > if (count > covered) { > count -= covered; >+ memset(p, '*', count); > } else { > count = 0; > } > >- memset(p, '*', count); > p += count; > *p = '\n'; > p++; >-- >1.8.4 >
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:
gd
:
review+
Actions:
View
Attachments on
bug 10190
: 9261