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

Ver32C return code #1332

Closed
smithdh opened this issue Nov 20, 2020 · 4 comments
Closed

Ver32C return code #1332

smithdh opened this issue Nov 20, 2020 · 4 comments

Comments

@smithdh
Copy link
Contributor

smithdh commented Nov 20, 2020

In XrdOss/XrdOss.cc (current head 8db3054), XrdOssDF::pgWrite:

228:       if (!XrdOucCRC::Ver32C((void *)buffer, wrlen, csvec, valcs))
229:          return -EDOM;
230:      }

There are several overloaded versions of Ver32C, but I believe this one returns the index of the first mismatching checksum, so the check on line 228 is not general enough to catch all mismatches, probably it should be >= 0.

@smithdh smithdh changed the title Correct check on Ver32C return code Ver32C return code Nov 20, 2020
@abh3
Copy link
Member

abh3 commented Nov 20, 2020 via email

@smithdh
Copy link
Contributor Author

smithdh commented Nov 20, 2020

Hi Andy,

OK. I'll open a PR (in a few minutes) - not because it's an issue of wanting credit, but I guess it's a better tracked process, a place to review before merge etc.

David

@abh3
Copy link
Member

abh3 commented Nov 20, 2020 via email

@smithdh
Copy link
Contributor Author

smithdh commented Nov 20, 2020

Opened PR #1333. Will close this issue.

Thanks,
David

@smithdh smithdh closed this as completed Nov 20, 2020
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

No branches or pull requests

2 participants