X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fregexec.c;h=5ad438f212061100268eb84f7965b702f794eeb1;hb=b344de996cd51f8a2f2558a3172016b64d99c622;hp=9388ac12bfd779dbf249dd49ff1d5b16887325f9;hpb=d0da3aef7d888c8222cf262fcb1346af50a41f25;p=gnulib.git diff --git a/lib/regexec.c b/lib/regexec.c index 9388ac12b..5ad438f21 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -1,6 +1,5 @@ /* 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 . @@ -3402,6 +3401,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;