The Samba-Bugzilla – Attachment 5260 Details for
Bug 7063
Samba 3.4.5 on ubuntu 8.04 64 bit - Core dumps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for 3.4.x, 3.5.0 and master (slightly better)
look (text/plain), 648 bytes, created by
Jeremy Allison
on 2010-02-02 16:50:15 UTC
(
hide
)
Description:
Proposed patch for 3.4.x, 3.5.0 and master (slightly better)
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-02-02 16:50:15 UTC
Size:
648 bytes
patch
obsolete
>diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c >index b1513dd..7009b33 100644 >--- a/source3/rpc_server/srv_spoolss_nt.c >+++ b/source3/rpc_server/srv_spoolss_nt.c >@@ -7634,8 +7634,10 @@ WERROR _spoolss_EnumPrinterData(pipes_struct *p, > > /* data - counted in bytes */ > >- if (r->out.data && regval_size(val)) { >- memcpy(r->out.data, regval_data_p(val), regval_size(val)); >+ if (r->out.data && regval_data_p(val) && >+ regval_size(val) && r->in.data_offered) { >+ memcpy(r->out.data, regval_data_p(val), >+ MIN(regval_size(val),r->in.data_offered)); > } > > *r->out.data_needed = regval_size(val);
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?
(
gd
)
Actions:
View
Attachments on
bug 7063
:
5259
| 5260 |
5261
|
5262
|
5303