X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnu%2Fregexec.c;h=0f7b48c430c3437cdea72f4be8cc2ed1a04e97af;hb=1a44d77d50f4fb37c0410eed04b82303624ea2ec;hp=9c21f1294380104f825b85cb317f35c3ff985e5c;hpb=dda6367c9eac71da8f2ab1c60b3df60f19ce4755;p=debian%2Ftar diff --git a/gnu/regexec.c b/gnu/regexec.c index 9c21f129..0f7b48c4 100644 --- a/gnu/regexec.c +++ b/gnu/regexec.c @@ -1,8 +1,7 @@ /* -*- buffer-read-only: t -*- vi: set ro: */ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ /* Extended regular expression matching and search library. - Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free - Software Foundation, Inc. + Copyright (C) 2002-2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Isamu Hasegawa . @@ -3404,6 +3403,8 @@ build_trtable (const re_dfa_t *dfa, re_dfastate_t *state) { state->trtable = (re_dfastate_t **) calloc (sizeof (re_dfastate_t *), SBC_MAX); + if (BE (state->trtable == NULL, 0)) + return false; return true; } return false;