google / google/oss-fuzz

fix(helper): avoid an unhandled EOFError when build_image has no stdin

Open
#15,970 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
12.6k
Forks
2.9k
Avg merge
2d 2h
Merged PRs (30d)
62

Description

## Summary

`infra/helper.py build_image` prompts for a pull decision when neither `--pull`
nor `--no-pull` is provided. If the command runs without readable standard
input, the prompt raises an unhandled `EOFError` and prints a Python traceback.

This affects the plain `build_image` command shown in the reproducing and new
project guides when it is invoked by a noninteractive shell or remote runner.

## Steps to reproduce

From the OSS-Fuzz repository at current `master`:

```bash
python3 infra/helper.py build_image zlib

Contributor guide

Open the contributing guide

Research direction

Start in infra/helper.py at build_image's pull-selection parser and the raw_input call described in the issue; reproduce with python3 infra/helper.py build_image zlib

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.