You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to the reported issue in OpenPrinting/libcups#91. The use of uninitialized memory of the trailer array is found in function cups_fill of cups/file.c. Detailed code can be found below:
when vail_in is less than sizeof(trailer), the operation memcpy(trailer, fp->stream.next_in, (size_t)tbytes); will end up with uninitialized value in trailer array. The subsequent function if (read(fp->fd, trailer + tbytes, sizeof(trailer) - (size_t)tbytes) < ((ssize_t)sizeof(trailer) - tbytes)) may also inroduce unitialized value issue when read() function returns EOF or error.
The text was updated successfully, but these errors were encountered:
To reiterate my comments on the libcups issue of the same name, this isn't caused by a lack of read validation but the fact that on error we didn't call inflateEnd...
Description
Similar to the reported issue in OpenPrinting/libcups#91. The use of uninitialized memory of the trailer array is found in function
cups_fill
ofcups/file.c
. Detailed code can be found below:when
vail_in
is less thansizeof(trailer)
, the operationmemcpy(trailer, fp->stream.next_in, (size_t)tbytes);
will end up with uninitialized value intrailer
array. The subsequent functionif (read(fp->fd, trailer + tbytes, sizeof(trailer) - (size_t)tbytes) < ((ssize_t)sizeof(trailer) - tbytes))
may also inroduce unitialized value issue whenread()
function returnsEOF
or error.The text was updated successfully, but these errors were encountered: