[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Gracefully handle incompatible locale data
From: |
Andreas Schwab |
Subject: |
Re: [PATCH] Gracefully handle incompatible locale data |
Date: |
Wed, 23 Sep 2015 08:59:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> diff --git a/locale/loadlocale.c b/locale/loadlocale.c
> index fdba6e9..e04e720 100644
> --- a/locale/loadlocale.c
> +++ b/locale/loadlocale.c
> @@ -122,8 +122,9 @@ _nl_intern_locale_data (int category, const void *data,
> size_t datasize)
> {
> #define CATTEST(cat) \
> case LC_##cat: \
> - assert (cnt < (sizeof (_nl_value_type_LC_##cat) \
> - / sizeof (_nl_value_type_LC_##cat[0]))); \
> + if (cnt >= (sizeof (_nl_value_type_LC_##cat) \
> + / sizeof (_nl_value_type_LC_##cat[0]))) \
> + goto puntdata; \
> break
> CATTEST (NUMERIC);
> CATTEST (TIME);
What about the other assertion?
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- Re: [PATCH] Gracefully handle incompatible locale data, (continued)
- Re: [PATCH] Gracefully handle incompatible locale data, Roland McGrath, 2015/09/22
- Re: [PATCH] Gracefully handle incompatible locale data, Ondřej Bílka, 2015/09/22
- Re: [PATCH] Gracefully handle incompatible locale data, Ludovic Courtès, 2015/09/22
- Re: [PATCH] Gracefully handle incompatible locale data, Ondřej Bílka, 2015/09/22
- Re: [PATCH] Gracefully handle incompatible locale data, Ludovic Courtès, 2015/09/23
- Re: [PATCH] Gracefully handle incompatible locale data, Ondřej Bílka, 2015/09/24
- Re: [PATCH] Gracefully handle incompatible locale data, Ludovic Courtès, 2015/09/24
- Re: [PATCH] Gracefully handle incompatible locale data, Carlos O'Donell, 2015/09/25
- Re: [PATCH] Gracefully handle incompatible locale data, Ludovic Courtès, 2015/09/26
- Re: [PATCH] Gracefully handle incompatible locale data, Carlos O'Donell, 2015/09/29
Re: [PATCH] Gracefully handle incompatible locale data,
Andreas Schwab <=
Re: [PATCH] Gracefully handle incompatible locale data, Mark H Weaver, 2015/09/23