summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.css
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2026-08-12 08:03:16 +0000
committerJunio C Hamano <gitster@pobox.com>2026-08-12 09:05:50 -0700
commitaf6250659514706f81266eb3a912f8fa87cff5ca (patch)
tree30331ea63f42cf9ec4eb3d0cf2bdf20d32046e84 /gitweb/gitweb.css
parent02b9662a6ed42946c32ca3e5b2aead336348748f (diff)
transport-helper: check dup() return in get_exporter
get_exporter() duplicates helper->in via dup() and stores the result in fastexport->out. If dup() fails (fd exhaustion), it returns -1. The child_process machinery interprets out = -1 as "create a pipe for stdout", which would silently change the fast-export process's output wiring: instead of sending data back through the helper's input fd, it would write to a new pipe that nobody reads from. Check the return value and report the error before proceeding. Pointed out by Coverity. Assisted-by: Claude Opus 4.6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
0 files changed, 0 insertions, 0 deletions