|
From: Paul F. <pa...@fr...> - 2007-06-11 14:58:40
|
Hi
We're getting a "Conditional jump or move depends on uninitialised value(s)"
error detected in the following code
if ((min != _UNDEF) && (max != _UNDEF)) { /* NO ERROR HERE ?? */
if (min > max) {
toto = min;
min=max;
max = toto;
}
}
wave->upd_minmax = 0;
if (min == _UNDEF) { /* ERROR HERE */
wave->upd_minmax = 1;
wave->min_wave = loc_main_header->undef;
}
else {
wave->min_wave = min;
}
if (max == _UNDEF) { /* ANOTHER ERROR HERE */
wave->upd_minmax = 1;
wave->max_wave = loc_main_header->undef;
}
else {
wave->max_wave = max;
}
min and max are double formal parameters, which come from a call 2 levels
higher, where the actual parameters are macro instances.
I really can't see why Valgrind detects an error. Unfortunately, I haven't been
able to reproduce this with a smaller testcase (the app under test is ~1M LOC).
Any ideas where I can look, or shall I just put this one on the suppressions
file?
A+
Paul
|