Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxSize in CDFH constructor #1745

Merged
merged 1 commit into from
Jul 25, 2022
Merged

Conversation

Nikipedia
Copy link

Added a maximum length parameter to the parsing of the CDFH to detect corruptions in the CDFH length parameters (e.g. filenameLength) and to avoid reading over the end of the file.
Default argument is zero to allow for compatibility.
The CDFH "Parse" method passes the new constructor argument.

… corruptions in the CDFH length parameters (e.g. filenameLength)
@simonmichal simonmichal marked this pull request as ready for review July 25, 2022 10:48
@simonmichal
Copy link
Contributor

@Nikipedia : thanks for the PR, it looks good :-)

@simonmichal simonmichal merged commit 30bd74b into xrootd:master Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants