https://github.com/git/git
Revision 70d19a436dfdc2375f7c80dac85bc08160f6a0f7 authored by Junio C Hamano on 04 June 2017, 01:21:01 UTC, committed by Junio C Hamano on 04 June 2017, 01:21:01 UTC
The codepath in "git am" that is used when running "git rebase"
leaked memory held for the log message of the commits being rebased.

* jk/am-leakfix:
  am: shorten ident_split variable name in get_commit_info()
  am: simplify allocations in get_commit_info()
  am: fix commit buffer leak in get_commit_info()
2 parent s 8a17b25 + 721f5f1
Raw File
Tip revision: 70d19a436dfdc2375f7c80dac85bc08160f6a0f7 authored by Junio C Hamano on 04 June 2017, 01:21:01 UTC
Merge branch 'jk/am-leakfix' into maint
Tip revision: 70d19a4
sha1-lookup.h
#ifndef SHA1_LOOKUP_H
#define SHA1_LOOKUP_H

typedef const unsigned char *sha1_access_fn(size_t index, void *table);

extern int sha1_pos(const unsigned char *sha1,
		    void *table,
		    size_t nr,
		    sha1_access_fn fn);

extern int sha1_entry_pos(const void *table,
			  size_t elem_size,
			  size_t key_offset,
			  unsigned lo, unsigned hi, unsigned nr,
			  const unsigned char *key);
#endif
back to top