diff options
author | John Reilly <jreilly@samba.org> | 2001-05-28 23:30:27 +0000 |
---|---|---|
committer | John Reilly <jreilly@samba.org> | 2001-05-28 23:30:27 +0000 |
commit | 8181c6d2b3a18c1f2da49f5b4500f47a1ad1468d (patch) | |
tree | 61498e640633c478c9d09055db35c93b5db6aa04 /docs/htmldocs | |
parent | 0199be41b277466cb0e1d1231e7eafa78088a9c6 (diff) | |
download | samba-8181c6d2b3a18c1f2da49f5b4500f47a1ad1468d.tar.gz samba-8181c6d2b3a18c1f2da49f5b4500f47a1ad1468d.tar.xz samba-8181c6d2b3a18c1f2da49f5b4500f47a1ad1468d.zip |
Fix nasty malloc/free bug when setting a printer attribute with a zero length (Lexmark
drivers do this). tdb_unpack() on case 'B' was leaving the data pointer uninitialized.
This seemed OK (but bad practice) for a zero lenght buffer, but many cycles later
free_nt_printer_param() did a safe_free on the uninitialized pointer. This affected
both APPLIANCE_HEAD and 2.2 (HEAD too I expect).
2.2 only was hit by a differert aspect of the situation above. When a zero len attribute
is processed by api_spoolss_setprinterdata(), talloc (in non DEBUG_TALLOC), returns NULL
up the chain and "unable to unmarshall SPOOL_Q_SETPRINTERDATA" occurs.
JohnR
Diffstat (limited to 'docs/htmldocs')
0 files changed, 0 insertions, 0 deletions