Red Hat Bugzilla – Bug 162369
Last modified: 2007-11-30 17:11:09 EST
Description of problem:
I just tried to compile package libdv-0.103-4 from Redhat
Fedora Core development tree with the gcc 4.0.0 compiler and
the compiler flag -Wall.
The compiler said
encode.c:1754: warning: operation on 'i' may be undefined
The source code is
dv_enc->img_y[i] = CLAMP(dv_enc->img_y[i++], -224, 214)
I agree with the compiler. Suggest rework code to avoid reading from
variable "i" at the same time as incrementing it.
(dv_enc->img_y[i] = CLAMP( dv_enc->img_y[i], -224, 214)), ++i
is better code.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Could you please submit this to the upstream project? It is not worth the
effort to fix trivial issues like this that seemingly have no security or even
>Could you please submit this to the upstream project?
Would like to be able to, but sorry I am unable.
Suggest either we forget about this trivial bug, or we can
leave it hanging for someone else to pick up.