[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19061: [PATCH] dfa: building superset, access to unallocated memory
From: |
Norihiro Tanaka |
Subject: |
bug#19061: [PATCH] dfa: building superset, access to unallocated memory |
Date: |
Sun, 16 Nov 2014 18:18:04 +0900 |
On Sat, 15 Nov 2014 22:27:50 -0800
Jim Meyering <address@hidden> wrote:
> Thanks for confirming.
> In that case, since I see no harm in calling xnmalloc with N = 0, I
> will use a more conservative change: guard only the undefined use of
> memcpy.
> I've left your name on this amended patch.
Thanks for the ajustment. You are right, but the purpose of the code
is to make a clone of original DFA. If we do not guard xnmalloc, when
calloc is 0, charclasses is NULL in original DFA, and it is *NOT* NULL
in the superset. I think that it is not right logically.
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Norihiro Tanaka, 2014/11/15
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Jim Meyering, 2014/11/15
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Paul Eggert, 2014/11/15
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Norihiro Tanaka, 2014/11/15
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Jim Meyering, 2014/11/16
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory,
Norihiro Tanaka <=
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Jim Meyering, 2014/11/16
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Jim Meyering, 2014/11/16
- bug#19061: [PATCH] dfa: building superset, access to unallocated memory, Norihiro Tanaka, 2014/11/16