[SCM] Samba Shared Repository - branch v3-5-test updated

Karolin Seeger kseeger at samba.org
Tue Mar 16 04:06:38 MDT 2010


The branch, v3-5-test has been updated
       via  400801c... s3-spoolss: Fix value-needed calculation in_spoolss_EnumPrinterData().
      from  9280051... s3: Fix an uninitialized variable read

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 400801c2314c5effd5165e77cdefc833dee1b6b2
Author: Günther Deschner <gd at samba.org>
Date:   Tue Mar 16 10:30:04 2010 +0100

    s3-spoolss: Fix value-needed calculation in_spoolss_EnumPrinterData().
    
    Guenther
    
    Fix bug #7256 (incorrect value-needed calculation in
    _spoolss_EnumPrinterData()).

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_server/srv_spoolss_nt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b6a0616..92f37e5 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7696,7 +7696,7 @@ WERROR _spoolss_EnumPrinterData(pipes_struct *p,
 				result = WERR_NOMEM;
 				goto done;
 			}
-			*r->out.value_needed = strlen_m(regval_name(val));
+			*r->out.value_needed = strlen_m_term(regval_name(val)) * 2;
 		} else {
 			r->out.value_name = NULL;
 			*r->out.value_needed = 0;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list