tags 338800 + patch
thanks
I believe this patch solve the issue, by making sure the array size
and the array limit used to initialize it is the same. I'm uploading
a new version with this fix.
--- lsdvd-0.15.orig/lsdvd.c
+++ lsdvd-0.15/lsdvd.c
@@ -319,8 +319,9 @@
// PALETTE
if (opt_P) {
- dvd_info.titles[j].palette = malloc(16 * sizeof(int));
- for (i=1; i < 18; i++) { dvd_info.titles[j].palette[i]
= pgc->palette[i]; }
+ const int palsize = 16;
+ dvd_info.titles[j].palette = malloc(palsize *
sizeof(int));
+ for (i=1; i < palsize; i++) {
dvd_info.titles[j].palette[i] = pgc->palette[i]; }
} else {
dvd_info.titles[j].palette = NULL;
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]