zlib icon indicating copy to clipboard operation
zlib copied to clipboard

gzlib: Add check for res of LSEEK

Open maks-mishin opened this issue 1 year ago • 2 comments

Return value of function LSEEK (lseek64) is not checked, but it is usually checked for this function.

Found by RASU JSC.

maks-mishin avatar Feb 29 '24 20:02 maks-mishin

@madler: Have you seen this PR?

Neustradamus avatar May 27 '24 11:05 Neustradamus

@Neustradamus @madler Good day, I am writing to kindly remind you that I am awaiting your response. Thank you for your attention.

maks-mishin avatar Jun 27 '24 12:06 maks-mishin

@maks-mishin: Why have you closed your PR?

Neustradamus avatar Aug 21 '24 05:08 Neustradamus

@Neustradamus No check is required. Since the mode GZ_APPEND is specified, the file descriptor pointer is simply moved to the end of the file.

maks-mishin avatar Dec 07 '24 23:12 maks-mishin