[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.12-14-g34e0ada
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.12-14-g34e0ada |
Date: |
Wed, 16 May 2012 17:23:30 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 34e0adabf0cd98eb4d1c4a929acf0b8238fcfbbc (commit)
from 0da5dfc5bf682cebcb831d7f740ff58629a827e7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=34e0adabf0cd98eb4d1c4a929acf0b8238fcfbbc
commit 34e0adabf0cd98eb4d1c4a929acf0b8238fcfbbc
Author: Paul Eggert <address@hidden>
Date: Wed May 16 10:23:04 2012 -0700
grep: avoid nominal integer overflow
* src/dfa.c (add_utf8_anychar): Avoid signed integer overflow.
Although this works on all platforms we know about, strictly
speaking the behavior is undefined, and Sun C 5.8 warns about it.
diff --git a/src/dfa.c b/src/dfa.c
index a7e263a..df73a1a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -1630,7 +1630,7 @@ add_utf8_anychar (void)
static const charclass utf8_classes[5] = {
{0, 0, 0, 0, ~0, ~0, 0, 0}, /* 80-bf: non-lead bytes */
{~0, ~0, ~0, ~0, 0, 0, 0, 0}, /* 00-7f: 1-byte sequence */
- {0, 0, 0, 0, 0, 0, 0xfffffffcU, 0}, /* c2-df: 2-byte sequence */
+ {0, 0, 0, 0, 0, 0, ~3, 0}, /* c2-df: 2-byte sequence */
{0, 0, 0, 0, 0, 0, 0, 0xffff}, /* e0-ef: 3-byte sequence */
{0, 0, 0, 0, 0, 0, 0, 0xff0000} /* f0-f7: 4-byte sequence */
};
-----------------------------------------------------------------------
Summary of changes:
src/dfa.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.12-14-g34e0ada,
Paul Eggert <=