[cups-devel] [MOD] STR #4366: "GET /admin/log/error_log" vs LogLevel debug

twaugh at redhat.com twaugh at redhat.com
Tue Feb 11 08:36:41 PST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When fetching the error_log with LogLevel set to debug, (much) more data is
sent than is expected. The reason is that the mechanics of reading the file
and writing the data to the client is logged to the error_log, and this is
also sent back in the request. con->http.data_remaining ends up becoming
negative in this situation.

This patch avoids that behaviour by noticing when more data has been read
from a file to send than data_remaining indicates should be there, and
truncating the response.

Link: https://www.cups.org/str.php?L4366
Version: 1.7.1
Attachment: https://www.cups.org/strfiles/4366/cups-get-file-truncate.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJS+lGZAAoJENujp6sI12IjqgkP/i9GK7L0zWq9f7ypz/nPXkrx
VM5ywNDF+PO4s0wt4czWCXLw5K9ZXmQRTB5v/suE2cdxrbTV3dw55OyZXkw1qBtI
egK7mngyljuqJ/VNgsfZAt9TvxOV2GuUlMaA5rm3BkaqXV/4gcTkfORjtM/H2BYF
t1L1lxOx8Lq4qXmUbeO/y+ieTWIl9Csa5X7FNPzlsJ0DsesK3AIjae9Rds8UeMyd
t8t0UWVuIXXVR73KYmRiaXtIdBTWB+e+MURZHsbOTYAGQiIRS5+zfj1gBEHeLv8B
EpJGRs221M0f62VOtky0DJ7xVALP9D8EFF6LFQVnHTQA5PMFwUfwObZd4LPucd1D
o/ELrzgM2Qr6ek8DnImumTVBbP73jq4tAZz7OcIk6/tHNbdxCVwDwrvfWY8BMcCD
r7TNNUI5CHMtOek0C7tVp4LJV1NJ9kKlYMYwP0zZ2drjo+bZTfKeMkFlxKRIPAy8
I4J2oe3dYoluVY4TEtETxk62hSsXkmwF6FL9bN/TS7D+Jsw6eifG6ZgOALsSrliF
u8/WCqZMTQaiuXS54BEbuIr/GfYnsGvuz8u3bbBMw9RhsqoDA9iESoI5fMraxzo/
isPbEO/Iz7BXZV0eZ/vYNp8/NtfV0xF7aMarCncsJpcvzMDTlZGqYRXevdY4mXnj
OfxiUMGuXquwxjbiKfru
=Yg6n
-----END PGP SIGNATURE-----




More information about the cups mailing list