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
Next, these variables go into the while() loop and remain there until the EOF is reached, according to the condition of the if(!feof(f)) loop at qpdf_cm.cc:23
pos variable is overwritten each time it passes the loop. So it is possible that the function input will receive a file of very large length, which will result in INTEGER_OVERFLOW.
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Slepykh.
The text was updated successfully, but these errors were encountered:
zdohnal
transferred this issue from OpenPrinting/cups-filters
Dec 1, 2023
zdohnal
added a commit
to zdohnal/libcupsfilters
that referenced
this issue
Dec 1, 2023
Values of the constant
bsize = 2048
and the variablepos
are set at qpdf_cm.cc:19 and qpdf_cm.cc:20 :https://github.com/OpenPrinting/cups-filters/blob/d72184e725591f10e2b404b36fe3bf5bc304a299/filter/pdftopdf/qpdf_cm.cc#L19-L20
Next, these variables go into the
while()
loop and remain there until the EOF is reached, according to the condition of theif(!feof(f))
loop at qpdf_cm.cc:23https://github.com/OpenPrinting/cups-filters/blob/d72184e725591f10e2b404b36fe3bf5bc304a299/filter/pdftopdf/qpdf_cm.cc#L23-L30
pos
variable is overwritten each time it passes the loop. So it is possible that the function input will receive a file of very large length, which will result in INTEGER_OVERFLOW.Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Slepykh.
The text was updated successfully, but these errors were encountered: