Skip to content

Fix some issues reported by Coverity Scan#773

Open
stweil wants to merge 2 commits into
masterfrom
coverity
Open

Fix some issues reported by Coverity Scan#773
stweil wants to merge 2 commits into
masterfrom
coverity

Conversation

@stweil

@stweil stweil commented Jul 6, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Handling ascii85flag like a boolean value makes it easier for
Coverity Scan to track the possible code branches.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This fixes two issues reported by Coverity Scan.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
@DanBloomberg

Copy link
Copy Markdown
Owner

Not sure what C.S. was complaining about with the values of ascii85flag. And it's used several other times in the file, in apparently the same way, so why didn't C.S. complain in those places?

@DanBloomberg

Copy link
Copy Markdown
Owner

(I guess C.S. was trying to protect against values other than 0 or 1 being used, which makes sense. But again, why only in lines 958 and 969?)

@DanBloomberg

Copy link
Copy Markdown
Owner

Stefan, did you want to check this in, or make any modifications?
Whatever you decide is fine with me.

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.

2 participants