Re: [PATCH] scripts/sbom: catch ValueError from malformed shell quoting

From: Greg KH

Date: Sun Jul 19 2026 - 01:24:40 EST


On Sat, Jul 18, 2026 at 03:44:57PM -0300, kadu04t wrote:
> parse_inputs_from_commands() only caught CmdParsingError and IndexError
> when dispatching to command parsers, but several parsers call
> shlex.split() internally, which raises ValueError on malformed shell
> quoting (e.g. an unterminated quote). This exception was not caught,
> so a single malformed build command would abort SBOM generation
> entirely, even with fail_on_unknown_build_command=False, defeating the
> purpose of tolerant mode.

Do we have this today in the build system?

thanks,

greg k-h