]> git.ipfire.org Git - thirdparty/git.git/commit - bugreport.c
bugreport.c: replace strbuf_write_fd with write_in_full
authorRandall S. Becker <randall.becker@nexbridge.ca>
Fri, 19 Jun 2020 20:23:19 +0000 (16:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2020 20:50:25 +0000 (13:50 -0700)
commitf64b6a1f750e65ca90435f714d9350493aad836d
tree5bc7af71247250e2ed8400e8b21cceb3a9bc76d1
parent01b62aaf11a0cbaa1ddce8a9e2b9940985a103af
bugreport.c: replace strbuf_write_fd with write_in_full

The strbuf_write_fd method did not provide checks for buffers larger
than MAX_IO_SIZE. Replacing with write_in_full ensures the entire
buffer will always be written to disk or report an error and die.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bugreport.c