diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-05-30 14:51:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-30 14:51:28 +0200 |
commit | 7c3d15fe3113cf48db60656eedd152c46f47bf6b (patch) | |
tree | afcbf8eb2ae30d903c3649aab8093a8c3a8f4b82 /http.h | |
parent | Merge branch 'jk/config-blob-sans-repo' (diff) | |
parent | fmt_with_err: add a comment that truncation is OK (diff) | |
download | git-7c3d15fe3113cf48db60656eedd152c46f47bf6b.tar.xz git-7c3d15fe3113cf48db60656eedd152c46f47bf6b.zip |
Merge branch 'jk/snprintf-truncation'
Avoid unchecked snprintf() to make future code auditing easier.
* jk/snprintf-truncation:
fmt_with_err: add a comment that truncation is OK
shorten_unambiguous_ref: use xsnprintf
fsmonitor: use internal argv_array of struct child_process
log_write_email_headers: use strbufs
http: use strbufs instead of fixed buffers
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -207,7 +207,7 @@ struct http_pack_request { struct packed_git *target; struct packed_git **lst; FILE *packfile; - char tmpfile[PATH_MAX]; + struct strbuf tmpfile; struct active_request_slot *slot; }; @@ -219,7 +219,7 @@ extern void release_http_pack_request(struct http_pack_request *preq); /* Helpers for fetching object */ struct http_object_request { char *url; - char tmpfile[PATH_MAX]; + struct strbuf tmpfile; int localfile; CURLcode curl_result; char errorstr[CURL_ERROR_SIZE]; |