Opened 4 years ago

Closed 4 years ago

#6362 closed defect (fixed)

expression is always false

Reported by: Appchecker Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: nut
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no



We've checked your code with appChecker static analyzer ( and found possible bug:

   if (nut->version < NUT_MIN_VERSION &&
        nut->version > NUT_MAX_VERSION) {
        av_log(s, AV_LOG_ERROR, "Version %d not supported.\n",
        return AVERROR(ENOSYS);

nut->version can't be < NUT_MIN_VERSION (2) and > NUT_MAX_VERSION (4) at the same time.

Possible defects were found by Echelon Team with appChecker static analyzer(

Change History (1)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from ffmpeg to avformat
  • Keywords nut added; weakness expression false cwe-570 code defect removed
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 2.8.11 to git-master

Should be fixed in 20da4135

Note: See TracTickets for help on using tickets.