• Show log

    Commit

  • Hash : 46bdd627
    Author : Paul Eggert
    Date : 2020-09-13T18:40:08

    dfa: avoid use of uninitialized constraint
    
    * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
    to zero here.
    (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
    use of an uninitialized constraint by later code when ! (flags[i]
    & OPT_QUEUED) means merge_nfa_state was not called to initialize
    the constraint.  Problem found by running 'valgrind src/grep -E
    '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
    

  • README

  • Please create and read the docs with
    
      $ cd doc
      $ make gnulib.html
      $ xdg-open gnulib.html
    
    or read the online manual at
    
      https://www.gnu.org/software/gnulib/manual/gnulib.html