2008-11-16 05:16:02 |
joseph |
description |
Binary package hint: metacam
Metacam seems to segfault on certain Flash Modes (I'm using Canon 350d)
I downloaded source package and applied the ubuntu diffs to it and ran through gdb. I found the following line seems to contain a problem (dpyfuncs.cc: 435)
if (v[4]) {
static char *flashmodes[] = {
"Auto", "On", "Red-Eye Reduction", "Slow Synchro",
"Auto + Red-Eye Reduction", "On + Red-Eye Reduction"
};
cerr << "vp[4] = " << v[4] << endl;
if (v[4] <= 6) //<----- Should be < (not <=) as there are only 6 elements in flashmodes ?
fmt(ctx, "Flash Mode", flashmodes[v[4]]);
else if (v[4] == 16)
fmt(ctx, "Flash Mode", "External");
} else
I think:
a) dpyfuncs.cc:435 should read: if(v[4] < 6)
or
b) There should be another element in flashmodes
Please correct me if I'm wrong, or ask for more information.
Regards,
joseph |
Binary package hint: metacam
Metacam seems to segfault on certain Flash Modes (I'm using Canon 350d)
I downloaded source package and applied the ubuntu diffs to it and ran through gdb. I found the following line seems to contain a problem (dpyfuncs.cc: 435)
if (v[4]) {
static char *flashmodes[] = {
"Auto", "On", "Red-Eye Reduction", "Slow Synchro",
"Auto + Red-Eye Reduction", "On + Red-Eye Reduction"
};
if (v[4] <= 6) //<----- Should be < (not <=) as there are only 6 elements in flashmodes ?
fmt(ctx, "Flash Mode", flashmodes[v[4]]);
else if (v[4] == 16)
fmt(ctx, "Flash Mode", "External");
} else
I think:
a) dpyfuncs.cc:435 should read: if(v[4] < 6)
or
b) There should be another element in flashmodes
Please correct me if I'm wrong, or ask for more information.
Regards,
joseph |
|