Add bounds check in PKCS7 streaming indefinite-length end-of-content parsing#10039
Add bounds check in PKCS7 streaming indefinite-length end-of-content parsing#10039anhu wants to merge 1 commit intowolfSSL:masterfrom
Conversation
|
Jenkins retest this please. |
dgarske
left a comment
There was a problem hiding this comment.
Clang-tidy: unchecked XFSEEK return values in test_pkcs7.c lines 4878 and 4880 — the PR adds calls like XFSEEK(f, 0, XSEEK_END); and XFSEEK(f, 0, XSEEK_SET); without using the return value, triggering bugprone-unused-return-value. This failed 3 of 4 clang-tidy configurations (PRB-multi-test-script #9983).
Fix: capture and check the return value, e.g.:
if (XFSEEK(f, 0, XSEEK_END) != 0) { /* handle error */ }
|
Hi! I submitted the initial ticket. Would using something like “ ExpectIntEQ” work? |
Yes, I believe so. Sorry it has taken so long for me to reply. Its been a busy weekend. :) |
No worries at all. You've been very fast to reply, take as much time as you need, happy to help! |
Fixes ZD 21399 Finding #1