mirror of
https://github.com/google/brotli.git
synced 2026-07-09 02:08:06 +00:00
Potential "Control flow issues" detected by Coverity #249
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sylvestre on GitHub (Jul 9, 2018).
Updating to brotli 1.0.5 in Firefox, coverity discovered two new issues (CID 1437666 & 1437667)
For
https://github.com/google/brotli/blob/master/c/enc/hash_rolling_inc.h#L131
Coverity says:
And for
https://github.com/google/brotli/blob/master/c/enc/hash_rolling_inc.h#L164
As they do not seem to be false positive, I prefer to report them!
@eustas commented on GitHub (Jul 9, 2018):
Those are, actually, false-positives. https://scan.coverity.com/projects/google-brotli/view_defects
Coverity Scan, unfortunately, does not understand the concept of C89 templates.
Compiler will remove those pieces where they are really always-true, no need to worry about that.
@sylvestre commented on GitHub (Jul 9, 2018):
OK, sorry!
@eustas commented on GitHub (Jul 9, 2018):
No worries. Thanks for the heads-up!