@simonmichal commented on this pull request.
> { + if(bufferSize > 0 && bufferSize < (uint64_t)lfhBaseSize) throw bad_data();
Could you please move the throw to a new line, this makes debugging with gdb easier.
> @@ -84,6 +85,8 @@ namespace XrdZip from_buffer( uncompressedSize, buffer ); from_buffer( filenameLength, buffer ); from_buffer( extraLength, buffer ); + + if(bufferSize > 0 && (uint64_t)(lfhBaseSize + filenameLength + extraLength) > bufferSize) throw bad_data();
Could you please move the throw to a new line, this makes debugging with gdb easier.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1