[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/10] gen-uni-tables: Check out-of-range values added to
From: |
Pádraig Brady |
Subject: |
Re: [PATCH v2 02/10] gen-uni-tables: Check out-of-range values added to 3-level tables |
Date: |
Thu, 23 Oct 2014 12:31:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 10/23/2014 09:01 AM, Daiki Ueno wrote:
> * lib/gen-uni-tables.c (output_category, output_bidi_category)
> (output_joining_type, output_ident_category): Check out-of-range
> values added to 3-level tables.
> ---
> lib/gen-uni-tables.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/lib/gen-uni-tables.c b/lib/gen-uni-tables.c
> index 6a84503..7a273fc 100644
> --- a/lib/gen-uni-tables.c
> +++ b/lib/gen-uni-tables.c
> @@ -1035,6 +1035,9 @@ output_category (const char *filename, const char
> *version)
>
> for (log2_value = 0; value > 1; value >>= 1, log2_value++);
>
> + if (log2_value > 0x1f)
> + abort ();
assert () ?
- [PATCH v2 00/10] Update libunistring-related modules to Unicode 7.0.0, Daiki Ueno, 2014/10/23
- [PATCH v2 01/10] gen-uni-tables: Minor style fixes, Daiki Ueno, 2014/10/23
- [PATCH v2 04/10] uniwbrk: Ignore Extended/Format at the beginning of the line, Daiki Ueno, 2014/10/23
- [PATCH v2 02/10] gen-uni-tables: Check out-of-range values added to 3-level tables, Daiki Ueno, 2014/10/23
- Re: [PATCH v2 02/10] gen-uni-tables: Check out-of-range values added to 3-level tables,
Pádraig Brady <=
- [PATCH v2 05/10] uniwbrk/u32-wordbreaks-tests: Test using WordBreakTest.txt from UCD, Daiki Ueno, 2014/10/23
- [PATCH v2 06/10] uniname: Make codepoint transformation more flexible, Daiki Ueno, 2014/10/23
- [PATCH v2 03/10] unictype/joininggroup-of: Switch to 3-level table, Daiki Ueno, 2014/10/23
- [PATCH v2 07/10] Update to Unicode 6.1.0, Daiki Ueno, 2014/10/23
- [PATCH v2 08/10] Update to Unicode 6.2.0, Daiki Ueno, 2014/10/23
- [PATCH v2 09/10] Update to Unicode 6.3.0, Daiki Ueno, 2014/10/23
- Re: [PATCH v2 00/10] Update libunistring-related modules to Unicode 7.0.0, Pádraig Brady, 2014/10/23