Skip to content

Conversation

@PSUdaemon
Copy link
Contributor

I made this PR due to a coverity issue where we weren't checking the return value on an EVP hash function. An alternative to this approach is just to continue to ignore that return code and convert the other usage in the code base to also ignore it.

@atsci
Copy link

atsci commented Sep 28, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/890/ for details.

@atsci
Copy link

atsci commented Sep 28, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/785/ for details.

@jpeach
Copy link
Contributor

jpeach commented Sep 28, 2016

AFAICT from OpenSS source code, the hash update never fails. I would be OK with a release or debug assert that it doesn't rather than propagating return values.

@SolidWallOfCode
Copy link
Member

I think I agree with @jpeach - it would be better to just drop the EVP return or assert() rather than changing the outer API to have more values that will be ignored. Won't Coverity complain about that after?

@PSUdaemon
Copy link
Contributor Author

Not if we check it nowhere. The problem is we check it >80% of the time in our code currently.

@PSUdaemon PSUdaemon closed this Sep 28, 2016
@PSUdaemon
Copy link
Contributor Author

See #1060

bneradt pushed a commit to bneradt/trafficserver that referenced this pull request Jan 23, 2026
Co-authored-by: yahoo-samara[bot] <40247+yahoo-samara[bot]@users.noreply.git.ouryahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants