Package: belocs-locales-bin
Version: 2.3.4-4
Severity: important
Tags: patch
Without the attached patch, installing belocs-locales-data on my AMD64
system fails with
> Generating locales...
> en_US.ISO-8859-1...memory clobbered past end of allocated block
With the patch (which addresses all the suspicious-looking warnings
GCC reported), however, it has no such trouble, and seems to produce
sane output.
-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11.5
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages belocs-locales-bin depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
*** debian/patches/fix_64bit_cleanliness.diff
Index: belocs-locales-bin-2.3.4/locale/programs/ld-address.c
===================================================================
--- belocs-locales-bin-2.3.4.orig/locale/programs/ld-address.c 2005-04-03
15:34:11.000000000 -0400
+++ belocs-locales-bin-2.3.4/locale/programs/ld-address.c 2005-04-03
16:48:14.000000000 -0400
@@ -104,8 +104,7 @@
{
FILE *fp;
char *line = NULL;
- int linelength = 0;
- size_t nelem = 0;
+ size_t linelength = 0, nelem = 0;
int n, cnt, in_string;
char *cp;
struct iso639_t *tab;
@@ -186,8 +185,7 @@
{
FILE *fp;
char *line = NULL;
- int linelength = 0;
- size_t nelem = 0;
+ size_t linelength = 0, nelem = 0;
int n, cnt, in_string;
char *cp;
struct iso3166_t *tab;
Index: belocs-locales-bin-2.3.4/locale/programs/ld-collate.c
===================================================================
--- belocs-locales-bin-2.3.4.orig/locale/programs/ld-collate.c 2005-04-03
15:34:11.000000000 -0400
+++ belocs-locales-bin-2.3.4/locale/programs/ld-collate.c 2005-04-03
16:53:41.000000000 -0400
@@ -1500,7 +1500,7 @@
{
if (strcmp (collate->flow_control->name, "else") == 0)
lr_error (ldfile,
- _("%s: `else' statement at `%s:%d' cannot be followed by
another `else' statement"),
+ _("%s: `else' statement at `%s:%zd' cannot be followed by
another `else' statement"),
"LC_COLLATE", collate->flow_control->name,
collate->flow_control->line);
if (level == 0)
{
@@ -1522,7 +1522,7 @@
}
if (nowtok == tok_eof)
WITH_CUR_LOCALE (error (0, 0, _("\
-%s: unterminated `%s' flow control beginning at %s:%d"),
+%s: unterminated `%s' flow control beginning at %s:%zd"),
"LC_COLLATE", collate->flow_control->name,
collate->flow_control->file,
collate->flow_control->line));
@@ -4053,7 +4053,7 @@
if (strcmp (collate->flow_control->name, "else") == 0)
lr_error (ldfile,
- _("%s: `else' statement at `%s:%d' cannot be followed by
another `else' statement"),
+ _("%s: `else' statement at `%s:%zd' cannot be followed by
another `else' statement"),
"LC_COLLATE", collate->flow_control->name,
collate->flow_control->line);
collate->flow_control->name = "else";
collate->flow_control->file = ldfile->fname;
@@ -4111,7 +4111,7 @@
if (collate->flow_control != NULL
&& strcmp(collate->flow_control->file, ldfile->fname) == 0)
WITH_CUR_LOCALE (error (0, 0, _("\
-%s: unterminated `%s' flow control beginning at %s:%d"),
+%s: unterminated `%s' flow control beginning at %s:%zd"),
"LC_COLLATE", collate->flow_control->name,
collate->flow_control->file,
collate->flow_control->line));
Index: belocs-locales-bin-2.3.4/locale/programs/ld-monetary.c
===================================================================
--- belocs-locales-bin-2.3.4.orig/locale/programs/ld-monetary.c 2005-04-03
15:34:11.000000000 -0400
+++ belocs-locales-bin-2.3.4/locale/programs/ld-monetary.c 2005-04-03
16:55:10.000000000 -0400
@@ -169,8 +169,7 @@
{
FILE *fp;
char *line = NULL;
- int linelength = 0;
- size_t nelem = 0;
+ size_t linelength = 0, nelem = 0;
int n, cnt, in_string;
char *cp;
struct iso4217_t *tab;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]