diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-02-04 19:25:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-04 19:25:18 +0100 |
commit | d5365b43274779246665416caf1a51af5a29f776 (patch) | |
tree | 4964cb7640ffec8458d3a56815d0d4c21369f1f6 /commit.h | |
parent | Merge branch 'mm/add-u-A-sans-pathspec' (diff) | |
parent | logmsg_reencode: lazily load missing commit buffers (diff) | |
download | git-d5365b43274779246665416caf1a51af5a29f776.tar.xz git-d5365b43274779246665416caf1a51af5a29f776.zip |
Merge branch 'jk/read-commit-buffer-data-after-free'
Clarify the ownership rule for commit->buffer field, which some
callers incorrectly accessed without making sure it is populated.
* jk/read-commit-buffer-data-after-free:
logmsg_reencode: lazily load missing commit buffers
logmsg_reencode: never return NULL
commit: drop useless xstrdup of commit message
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -101,6 +101,7 @@ extern int has_non_ascii(const char *text); struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ extern char *logmsg_reencode(const struct commit *commit, const char *output_encoding); +extern void logmsg_free(char *msg, const struct commit *commit); extern void get_commit_format(const char *arg, struct rev_info *); extern const char *format_subject(struct strbuf *sb, const char *msg, const char *line_separator); |