1. 19 6月, 2009 2 次提交
    • R
      upload-archive: fix infinite loop on Cygwin · 1b19fa46
      René Scharfe 提交于
      On Cygwin, poll() reports POLLIN even for file descriptors that have
      reached their end.  This caused git upload-archive to be stuck in an
      infinite loop, as it only looked at the POLLIN flag.
      
      In addition to POLLIN, check if read() returned 0, which indicates
      end-of-file, and keep looping only as long as at least one of the file
      descriptors has input.  This lets the following command finish on its
      own when run in a git repository on Cygwin, instead of it getting stuck
      after printing all file names:
      
      	$ git archive -v --remote . HEAD >/dev/null
      Reported-by: NBob Kagy <bobkagy@gmail.com>
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1b19fa46
    • P
      avoid exponential regex match for java and objc function names · 959e2e64
      Paolo Bonzini 提交于
      In the old regex
      
      ^[ \t]*(([ \t]*[A-Za-z_][A-Za-z_0-9]*){2,}[ \t]*\([^;]*)$
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      
      you can backtrack arbitrarily from [A-Za-z_0-9]* into [A-Za-z_], thus
      causing an exponential number of backtracks.  Ironically it also causes
      the regex not to work as intended; for example "catch" can match the
      underlined part of the regex, the first repetition matching "c" and
      the second matching "atch".
      
      The replacement regex avoids this problem, because it makes sure that
      at least a space/tab is eaten on each repetition.  In other words,
      a suffix of a repetition can never be a prefix of the next repetition.
      Signed-off-by: NPaolo Bonzini <bonzini@gnu.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      959e2e64
  2. 14 6月, 2009 3 次提交
  3. 25 5月, 2009 3 次提交
  4. 14 5月, 2009 2 次提交
  5. 13 5月, 2009 2 次提交
  6. 11 5月, 2009 2 次提交
  7. 09 5月, 2009 2 次提交
  8. 06 5月, 2009 10 次提交
  9. 04 5月, 2009 11 次提交
  10. 02 5月, 2009 1 次提交
  11. 30 4月, 2009 2 次提交