Static analysis

Issue #80 resolved
Dimitriy Ryazantcev created an issue

Checked code with PVS Studio static analyzer. Found bunch of minor(?) errors in bitwise operations etc.

Consider to check the list attached please. There are many false positive through it but I think some messages might be useful.

Comments (13)

  1. Steve Borho

    Thanks Dmytro,

    Do you happen to remember what version of the source code you ran the static analyzer on? Most of these reported line numbers are no longer usable.

  2. Deepthi Nandakumar

    entropy: fix SAO enable detection (refs #80)

    Apparently our analysis never toggles luma separately from chroma because this bug has not resulted in any bad bitstreams, that I know of. This bug was found via static analysis

    → <<cset c39538f0c59b>>

  3. Steve Borho

    y4m: use ios::good() rather than !ios::eof() (refs #80)

    This is more robust to file read failures and will prevent infinite loops in the event of a failure without EOF. good() imples !fail && !eof && !bad

    → <<cset bfc5a2e98f86>>

  4. Log in to comment